Live data from Hacker News

LinuxBoot: Linux as Firmware

linuxboot.org

31–40 of 187 posts

Re: LinuxBoot: Linux as Firmware

#32

wait what? using a whole linux kernel as firmware before booting another OS to improve speed, reliability, security? does this seem strange to anyone else?

Well, it depends on your definition of "whole Linux". By it's nature, it can be stripped down fairly lean, especially if you know precisely which drivers you need, and don't need a lot of user-space support libraries, etc.

It is possible for *nix to be very minimal, less so than in the old days, of course. But speaking of the old days, when I earned my bread as a CPU logic designer, I recall one grizzled OS developer's reaction to the looooong errata list for the A0 stepping of some new silicon: "Pffft. I can bring up Unix on a broken washing machine."

Re: LinuxBoot: Linux as Firmware

#33
post #12
post #4

Earlier quoted context omitted.

Check Ron Minnich's talk explaining the why: https://schd.ws/hosted_files/osseu17/84/Replace%20UEFI%20wit... (The video of the presentation is linked in the OP). There's already two and a half obscure OS's running underneath the OS for booting. So this replaces all that crap with something lean and good.

Firmware with a built in web server is pretty spooky. Why do they have that?

See https://en.wikipedia.org/wiki/Intel_Active_Management_Techno... and https://en.wikipedia.org/wiki/Intelligent_Platform_Managemen...

Re: LinuxBoot: Linux as Firmware

#34
post #12

Earlier quoted context omitted.

Firmware with a built in web server is pretty spooky. Why do they have that?

Most UEFI implementations have a network stack these days. It's horrible.

Don't forget OpenSSL. Imagine how long SSLv3 or export ciphers would last if this was done in the 1990s

Re: LinuxBoot: Linux as Firmware

#35

If we use LinuxBoot to boot Linux (desktop or server), then why don't we boot direct into Linux (desktop or server)?

I think it's because the first Linux image has to be written in the firmware ROM, so this make upgrades difficult because you have to flash a new firmware on every kernel update.

So it's more practical to have a stripped down Linux kernel that loads a complete kernel from disk.

Re: LinuxBoot: Linux as Firmware

#36
IMO, the problems that [U]EFI introduces (that far exceed the historical limitations it overcomes) should be self-evident.

IMO, he should not have to argue against having multiple, redundant copies of drivers, shells and utilties each accessible only in its own "OS" (UEFI, GRUB, OS). It should not be a debate. This is definitely not "defense in depth". IMO, whomever controls the first OS controls the computer because there is no need for the second and third OS in order to do work (make network connections, move files across the network, etc.).

These "hardware features", whether its [U]EFI or ME or whatever acronym, IMO is a land grab by hardware vendors over what we know as the "OS". Less computer owner control, more vendor control. The sum effect of all these "features" is that verification that something is the way that the owner wants it and has not been modified is far too complex and is ultimately under control of the vendor, not the computer owner.

I do most work on the commandline in text-mode (no graphics layer) and as such I only need one OS, with some basic utilities. When the news came that new computers would have [U]EFI, I considered whether I should just switch from the OS I am using to [U]EFI. It seemed to have all the utilities I would need to do work, along with the ability to extend with new programs.

I only need one OS to boot to a working environment. I should be able to choose that OS. I hope that Minnich and Hudson and others will consider that the user may want to choose a kernel other than Linux as a source for drivers, e.g., BSD, Plan9, others incl. future OS not yet written, etc., even if it today it has inferior driver support compared to Linux, or Intels UEFI, or whatever.

The speaker seemed a bit perplexed when someone in the audience questioned whether Linux is a "TCB". What is and what is not a "TCB" should be the computer owners decision, and not anyone elses. If the computer owner wants to cede authority for that decision to a third party, then she can make that choice. But IMO it should be a choice made by the computer owner, and not anyone else.

Re: LinuxBoot: Linux as Firmware

#37
post #11

Earlier quoted context omitted.

why boot linux then boot linux again, rather than just booting linux once?

The current way an x86 platform is booted to linux today uses mostly closed source UEFI DXE drivers, so the current boot flow is really (simplified) like this: UEFI DXE loads disk/network -> Linux We're doing Linux (with commonly used open source drivers)-> Linux It's possible that if your end goal is a Linux system without too many requirements, you could stop at the first Linux system without ever booting the secon…

> you could stop at the first Linux system without ever booting the second

Someone did that! Well, something like it, anyway.I have an Asus EeeBox sitting on my desk, gathering dust, that has something called "SplashTop" - if I hit the right key during the POST screen, it boots into a minimalistic Linux desktop in about 2 seconds.

There is networking and a browser. I haven't used it in ages, but I think the problem was that it could not access the file system, so one could not do very much, and I think settings did not persist across reboots. But the general idea seemed appealing at the time.

Re: LinuxBoot: Linux as Firmware

#38

IMO, the problems that [U]EFI introduces (that far exceed the historical limitations it overcomes) should be self-evident . IMO, he should not have to argue against having multiple, redundant copies of drivers, shells and utilties each accessible only in its own "OS" (UEFI, GRUB, OS). It should not be a debate. This is definitely not "defense in depth". IMO, whomever controls the first OS controls the computer becaus…

This is in the hands of the firmware/hardware manufacturers. AFAIK, for instance, the version of Minix that serves as Intel's ME will continue to be operational even if the UEFI is replaced by Linux.

The issue is that 'firmware' actually means many different blobs of software in various ROMs spread throughout the system, from disk controllers to GPUs to memory controllers to NIC and so on.

You will never be able to verify you have full control over your system unless all these firmware have the ability to be reflashed/replaced. LinuxBoot/Coreboot are a step in the direction, but without major concessions from hardware vendors this is an uphill battle.

Re: LinuxBoot: Linux as Firmware

#40
post #39

> Typically makes boot 20 times faster Really? That means my current Fedora boot on an T430 with SSD of 20s would go down to 1s? Seems unbelievable.

We should clarify that. Our example is an OCP Winterfell node, where boot time went from 8 minutes to 20 seconds.
Post reply on HN