News for hackers. Stuff that matters.
Re:Debian and firmware by fxtentacle on Tuesday April 19, 2022 @03:09AM (#31080391)
I believe there should be an official non-free repository (akin to Ubuntu's) which users can enable offline, meaning it needs to be stored on the official CD.

Enabling it should display a big scary warning about handing over partial control of your machine to greedy faceless megacorps who will throw you under the bus in a heartbeat if that makes them money. Maybe add an illustration of a robot terminator, to really drive the point home.

Yes, I agree that a default Debian configuration should be clean. But I also know the reality of needing at least Atheros (Wifi), Intel (Ethernet), and NVIDIA firmware blobs to get my tower to boot correctly. Not including any firmware repository on the CD or on a fully installed system is just a recipe for users to get frustrated while they are trying to follow a half-outdated tutorial on one of those spammy tech support blogs.

So in my opinion, the most common blobs should be cached by default, but not activated by default. If the machine boots without them, they can be deleted upon first reboot. If not, we can let the user decide if they are willing to compromise their principles in order to boot the system ;)

Re:Debian and firmware by bayindirh on Tuesday April 19, 2022 @08:29AM (#31082196)
> I believe there should be an official non-free repository (akin to Ubuntu's) which users can enable offline, meaning it needs to be stored on the official CD.

There's already a "non-free" section under official "dists" ([0] for stable). It's just not added to the ISOs. Netinstall directly asks that whether you want non-free enabled during installation too.

The only thing is whether building CDs with it or not. Actually there are Zip files containing all firmware for a release, which can be added to a USB drive and added during install, but it's not well documented.

Maybe, this Zip files can be made more prominent, and using them can be better documented. Yes, it's not including firmware in the CD, but it's a good compromise.

What about a nice tool (akin to GRML2USB) which writes the ISO to USB and leaves a mountable FAT32 partition where user can drop in the firmware.zip file, so it becomes self contained if user wants?

[0]: http://ftp.tr.debian.org/debian/dists/stable/non-free/

Re:Debian and firmware by derefr on Tuesday April 19, 2022 @10:19AM (#31083492)
A better tool would slipstream the data into the ISO image, I would think, since you might want/need the drivers available at install time in order to even boot certain non-free hardware, and you might only be getting the thing to boot in the first place using e.g. a PXE server.
Re:Debian and firmware by bayindirh on Tuesday April 19, 2022 @12:19PM (#31085246)
In my proposition, the installer will find the ZIP file automatically, extract and use the required firmware files (This mechanism works already). It might be already working under Preseed + PXE too. I need to look into it.
Re:Debian and firmware by pabs3 on Wednesday April 20, 2022 @01:42AM (#31093266)
There are ISOs with firmware available on them for many years now:

https://cdimage.debian.org/cdimage/unofficial/non-free/image...

Re:Debian and firmware by bayindirh on Wednesday April 20, 2022 @03:56AM (#31093993)
I know they're present, but they're "Unofficial ISOs", and most people don't get these (incl. me, when I need them).

The blog post is putting the idea of adding the firmware blobs into the official ISO files, and as a Debian user, I'm not comfortable with that.

So, I'm offering another trade-off: "Make inclusion of firmware blobs to installation media on the fly easier, keep firmware off the official ISOs". It's a bit of a DIY solution, but it doesn't need flexing policies, DFSG and the values Debian is standing for.

It's a thin but important line to cross for me.

Re:Debian and firmware by pabs3 on Wednesday April 20, 2022 @04:05AM (#31094042)
IIRC there are ways to use the firmware blobs with the official free ISOs, but I have never bothered with that, just having them present in the ISO and not having to fiddle around with putting them where they are expected is easier.
Re:Debian and firmware by bayindirh on Wednesday April 20, 2022 @04:09AM (#31094066)
You can just add the firmware.zip file (or extract it, I don't remember clearly) to a USB drive, and the installer will just mount and use it during installation. So, if there's a tool to merge both easier, or better documentation for the current situation, the problem will solve itself, in my opinion.
Re:Debian and firmware by mschuster91 on Tuesday April 19, 2022 @04:14AM (#31080723)
I get the trouble for networking chipsets, but not for the video card - all x86 systems should be able to fall back to ye goode olde days of at least a text console using the old BIOS interface. A default setup of any Linux distribution should in my opinion at least automatically detect if there is something lacking for a framebuffer console or a GUI, and fall back to a plain console.
Re:Debian and firmware by tremon on Tuesday April 19, 2022 @06:33AM (#31081436)
This isn't what the radeon driver does for AMD gpu's, and hasn't for years: loading the driver automatically enables the full rendering engine and disables the VESA modes, even if no firmware has been loaded. Which means that on a normal system with radeon.ko present but not the firmware files, you get a few seconds of kernel output followed by a black screen. For the systems where I don't want the firmware (servers), I must be very careful to blacklist the radeon driver or I completely lose the local console.

This has been the case since the SI chipsets in 2012. I'm not sure if the fault lies fully with the driver, maybe the hardware doesn't allow querying the state of the engine firmware before enabling the engine.

Re:Debian and firmware by anthk on Tuesday April 19, 2022 @06:53AM (#31081535)
The Radeon module works on non-accelerated mode with the modesetting driver instead of the xorg Radeon one.

At /usr/share/X11/xorg.conf.d/10-radeon.conf:

     Section "Device"
 identifier "Radeon"
 Driver "modesetting"
    EndSection
Bugs may arise, maybe it could be a good idea to disable the Composite extension too.
Re:Debian and firmware by tremon on Tuesday April 19, 2022 @11:05AM (#31084122)
I guess I confused the issue by referring it as the "radeon driver", but I meant to implicate the radeon.ko kernel module, not the radeon(4) Xorg driver. The servers I'm talking about don't even have X installed (they're Ceph OSD nodes).
Re:Debian and firmware by anthk on Tuesday April 19, 2022 @11:09AM (#31084181)
Linux libre here. I ran Trisquel on TTY mode to debug issues, I modprobed the radeon module and KMS switched the resolution to a native one in a laptop. Starting X with the radeon driver for X messes everything garbled up. The modesetting driver works, but no GL.

TTY works well before and after KMS.

Re:Debian and firmware by stragies on Tuesday April 19, 2022 @05:06AM (#31081007)
Because of the very common issue with network card firmware (wired&wireless) I have taken to always providing initial network access during install through me hooking up my phone via USB-tethering. No Firmware needed.

Then select "expert mode", enable "non-free" repo, maybe "backports", go through base install only, reboot, re-enable USB-tethering a last time on the phone, install needed network card firmware, reboot, disconnect phone, run "tasksel", select whatever you want to install to finish install.

Having done this "detour" for many years now, it's "automatic" for me, and takes barely 3 minutes longer than the "normal" install from the IsoWithNonFree. I usually want "backports" enabled, so going into "expert mode" is required anyway.

Re:Debian and firmware by eptcyka on Tuesday April 19, 2022 @07:12AM (#31081653)
This is such a solvable issue it deeply disturbs me you need to dance this dance. Whilst you might not be complaining about it, this is exactly the kind of stuff that deters people from using more FOSS. Not only are selecting non-default options every time you install a debian system, you've also spent the time to learn this ritual and you've had to comprehend the complexities of what, how and why to do this. Just to install an OS. I understand the FOSS advocacy angle, but this is impractically stupid. You're not the only one who has learned to deal with this, so I'd wager there's months if not years of waking hours lost to what could easily be automated away.
Re:Debian and firmware by stragies on Tuesday April 19, 2022 @10:05AM (#31083279)
The other reason I do it like this, is because many years ago I got a comment from an auditor about an item on the install-log: "Used CD-Image from https://cdimage...", because he spotted the "/unofficial/non-free/" part of the URL. The resulting discussion is what I wanted to avoid in future.
Re:Debian and firmware by eptcyka on Tuesday April 19, 2022 @11:31AM (#31084498)
That must have been a nasty discussion you had there.
Re:Debian and firmware by stragies on Tuesday April 19, 2022 @11:51AM (#31084803)
Not nasty, but unnessesary, for the both of us. He was a non-technical auditor, and was hoping to put something damning on his report to justify the expense. He "cleared" that item after discussion, but I did not want to have that talk about the "unofficial.iso" again. And since I +-always take expert mode for other reasons anyway, having to select "non-free" repo on devices with non-free components from inside the standard installer is no big detour.
Re:Debian and firmware by usrn on Tuesday April 19, 2022 @09:01AM (#31082510)
This kind of attitude is what makes FOSS good compared to (for example) ChromeOS though. It's hard to see when you've got one singular problem in front of you but once you abandon your principles and change all these things you're left with what is essentially Windows lite. It might be popular but it's hardly an improvement.
Re:Debian and firmware by eptcyka on Tuesday April 19, 2022 @10:02AM (#31083225)
I don't think equating FOSS with tedious rituals does any good to any one. You can still have Debian installers be the way they are, with the addition of having a button that enabled non-free firmware to remove the need for USB tethering and three reboots. FOSS has a problem with UX design, and this is definitely one symptom.
Re:Debian and firmware by usrn on Tuesday April 19, 2022 @10:13AM (#31083405)
>You can still have Debian installers be the way they are, with the addition of having a button that enabled non-free firmware

Like I said, each thing is just "fix this one thing by compromising principles." If you do that with all the UX problems you literally end up with ChromeOS. Different distros are on different places along the spectrum between Debian and ChromeOS. Ubuntu is further along for example, so you get applications in containers and other things like that.

Re:Debian and firmware by eptcyka on Tuesday April 19, 2022 @11:31AM (#31084487)
Allowing one to make the choice in a pragmatic manner instead of wasting time dancing around to praise the FOSS gods to achieve the same end goal is stupid. Just having an option in the installer to allow non-free firmware and drivers won't move Debian to be any closer to ChromeOS. It will make it easier to use for a lot of people. Stop with this false dichotomy that bad UX implies giving up freedoms. All I'm arguing for is allowing users to make their choices about their own freedoms easier.
Re:Debian and firmware by usrn on Tuesday April 19, 2022 @11:47AM (#31084733)
>Compromising on freedom doesn't result in a loss of freedom

This is an immediate and direct contradiction.

Re:Debian and firmware by eptcyka on Tuesday April 19, 2022 @12:13PM (#31085138)
The freedom is already lost, it just takes users more time to get their machine to have a working network connection.
Re:Debian and firmware by LtWorf_ on Wednesday April 20, 2022 @08:59AM (#31096214)
If you don't jump the hoops you're just left with a machine that only runs windows.

The choice is literally between the non free firmware or your wifi and ethernet cards will not work.

Re:Debian and firmware by fxtentacle on Tuesday April 19, 2022 @06:16AM (#31081358)
You're correct, there might be a text-mode fallback. It's just that it is effectively useless for me. If I don't have network access, how am I going to install the firmware for the network card?

That's why I believe the most common firmware .deb packages should be cached during installation so that they are on-disk in case they are needed.

Re:Debian and firmware by Nextgrid on Tuesday April 19, 2022 @04:27AM (#31080802)
In some cases there might be bugs there.

Back in my early Linux days I had an issue where the default Ubuntu/Debian installer would come up with a garbled display and I'd have to use `vga=...` or `nomodeset` (or similar, can't remember) to get a proper console going. Once installed I would install a package and it would "just work".

A way to directly boot into an environment with non-free firmware available could help and the user doesn't lose any more freedom if they're already determined to use non-free firmware post-install anyway.

Re:Debian and firmware by julian-klode on Tuesday April 19, 2022 @04:36AM (#31080844)
They even should all be supporting efifb?
Re:Debian and firmware by derefr on Tuesday April 19, 2022 @10:17AM (#31083458)
> meaning it needs to be stored on the official CD

Wouldn't this imply per-seat IP licenses for things like embedded H.264 software fallback decoding in GPU drivers? I.e. the reason that Ubuntu (that doesn't really care about "proprietary" software by itself) still doesn't ship media codecs on the CD, nor driver blobs that could include them?