News for hackers. Stuff that matters.
Re:LinuxBoot: Linux as Firmware by Palomides on Monday January 29, 2018 @01:55PM (#16259716)
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?
Re:LinuxBoot: Linux as Firmware by euyyn on Monday January 29, 2018 @01:58PM (#16259745)
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.

Re:LinuxBoot: Linux as Firmware by mevile on Monday January 29, 2018 @02:11PM (#16259867)
Firmware with a built in web server is pretty spooky. Why do they have that?
Re:LinuxBoot: Linux as Firmware by y0ssar1an on Monday January 29, 2018 @02:21PM (#16259936)
Most UEFI implementations have a network stack these days. It's horrible.
Re:LinuxBoot: Linux as Firmware by Hello71 on Monday January 29, 2018 @06:52PM (#16261699)
I agree, but it's not exactly like PXE didn't exist before EFI was invented, and AIUI EFI actually decided to reuse PXE instead of NIHing another overengineered non-solution, so honestly that's not even so bad.
Re:LinuxBoot: Linux as Firmware by yuhong on Monday January 29, 2018 @03:00PM (#16260182)
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 by AceJohnny2 on Monday January 29, 2018 @02:21PM (#16259934)
To administer a fleet of computers remotely. HTTP is a widely-implemented and tested protocol that fits the problem domain well.
Re:LinuxBoot: Linux as Firmware by kevin_thibedeau on Tuesday January 30, 2018 @10:07AM (#16265831)
As opposed to something like SNMP that was designed for remote management.
Re:LinuxBoot: Linux as Firmware by kodablah on Monday January 29, 2018 @02:13PM (#16259879)
> So this replaces all that crap with something lean and good.

I think the concern is about "lean". I don't think there's a lot of code yet, but I do see it will use http://u-root.tk/.

Re:LinuxBoot: Linux as Firmware by hugelgupf on Monday January 29, 2018 @02:28PM (#16259976)
LinuxBoot is trying to be agnostic to the initramfs. We don't want to prescribe what tools you use to boot your system.

When there is a build system, you'll be able to choose whatever initramfs you want to implement your boot policies. The two choices we have today are NERF (= LinuxBoot + u-root as initramfs, as you linked) and Heads (LinuxBoot with Heads kernel and runtime, see http://osresearch.net).

Re:LinuxBoot: Linux as Firmware by vanderZwan on Monday January 29, 2018 @03:54PM (#16260541)
> DigitalTermometerSensor (sic)

Heh, that gave me a chuckle

> Userland written in Go (http://u-root.tk)

So much for Go not being a systems programming language.

Re:LinuxBoot: Linux as Firmware by pjmlp on Tuesday January 30, 2018 @02:46AM (#16263601)
> So much for Go not being a systems programming language.

There are other examples already.

Fuchsia TCP/IP stack and file system driver management utilities are implemented in Go.

https://groups.google.com/d/msg/golang-dev/2xuYHcP0Fdc/tKb1P...

Android's new GPU debugger is written in Go.

https://github.com/google/gapid

An then there are some bare-metal experiments like G.E.R.T.

https://github.com/ycoroneos/G.E.R.T

Re:LinuxBoot: Linux as Firmware by vanderZwan on Tuesday January 30, 2018 @06:25AM (#16264425)
I knew about G.E.R.T. but the other two are new to me, very nice!

(I was going for a tongue-in-cheek ribbing of the Go-haters - in retrospect my wording sounds a bit passive-aggressive, probably should have ended with an exclamation mark and a smily or something)

Re:LinuxBoot: Linux as Firmware by pjmlp on Tuesday January 30, 2018 @06:55AM (#16264574)
I do share a love-hate relation to Go.

I love it is based on a mix of Oberon and Limbo, compiled to native code and an improvement for what a safe C like language should probably look like, and who knows maybe someone decides a day to do a "Goberon" OS for they OS PhD research.

Basically what Java and C# 1.0 should have been all along, about 20 years ago.

However I also dislike some of the design decisions regarding features that will never come to Go, regardless of how much we get to discuss them, even with the mirage of Go 2.0.

Re:LinuxBoot: Linux as Firmware by justincormack on Monday January 29, 2018 @04:59PM (#16261002)
Its kind if weird, they compile at runtime as Go is a bit bloated. But userspace is a good fit for Go. GC timing is not an issue, it has good libraries. Much better choice than C for almost all userspace bringup.
Re:LinuxBoot: Linux as Firmware by hugelgupf on Monday January 29, 2018 @05:22PM (#16261174)
We also have a mode that rewrites all commands' sources given so it can be compiled into one binary. It ahem needs some improvements, though :)
Re:LinuxBoot: Linux as Firmware by dbcurtis on Monday January 29, 2018 @02:47PM (#16260110)
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 by mikepurvis on Monday January 29, 2018 @02:00PM (#16259761)
Similar philosophy to Petitboot, for which the rationale is given here: https://www.youtube.com/watch?v=CQueOHKO58M

Obviously it's a heavy weight solution, but the idea of having more drivers and better support is compelling— it's a much easier path to exotic boot setups, eg over wifi, off a SAN, whatever.

Re:LinuxBoot: Linux as Firmware by AdmiralAsshat on Monday January 29, 2018 @03:42PM (#16260465)
> Obviously it's a heavy weight solution, but the idea of having more drivers and better support is compelling— it's a much easier path to exotic boot setups, eg over wifi, off a SAN, whatever.

So...this is strictly my own personal experience, but, I've always had better compatibility with my hardware in the BIOS than I have had in any OS. I can't count the number of times my K/V/M has worked in the BIOS, then suddenly stopped working once DOS/Windows/Linux started booting.

Re:LinuxBoot: Linux as Firmware by hugelgupf on Monday January 29, 2018 @02:07PM (#16259833)
UEFI is a heavy-weight solution in comparison as well. You can compile some pretty small Linux kernels.
Re:LinuxBoot: Linux as Firmware by floatboth on Monday January 29, 2018 @05:47PM (#16261311)
ehh… Sure, TianoCore extended by AMI/whoever is not that tiny, but it's still not a full multitasking multiuser kernel.

But EFI can be implemented by others. Including U-boot! Which is really lightweight.

Re:LinuxBoot: Linux as Firmware by throwaway2048 on Monday January 29, 2018 @02:01PM (#16259776)
why boot linux then boot linux again, rather than just booting linux once?
Re:LinuxBoot: Linux as Firmware by ganshun on Monday January 29, 2018 @02:10PM (#16259862)
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 second. However the bios rom memory is pretty small, and we're mostly working with about 4-8mb of free space left not including the ME region or UEFI PEI.

Re:LinuxBoot: Linux as Firmware by krylon on Monday January 29, 2018 @03:03PM (#16260207)
> 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 by hugelgupf on Monday January 29, 2018 @02:11PM (#16259868)
Chances are you don't want to re-flash your firmware on your servers just to change what kernel you run in production. The kernel in flash also has space constraints that will make it a pretty small kernel with a lot of features turned off.
Re:LinuxBoot: Linux as Firmware by BenjiWiebe on Monday January 29, 2018 @04:19PM (#16260696)
In fact, you'd have to reflash to update Firefox! Oh wait, Firefox won't even fit on the ROM chip. No wonder we don't use the ROM chip as our main storage...
Re:LinuxBoot: Linux as Firmware by hugelgupf on Monday January 29, 2018 @05:25PM (#16261193)
You could have a tiny initramfs that mounts the disk you want with your actual init and then switch_root to that. You'd have the kernel from flash, and init from disk.
Re:LinuxBoot: Linux as Firmware by euyyn on Monday January 29, 2018 @02:15PM (#16259897)
Tannenbaum is spinning in his chair.
Re:LinuxBoot: Linux as Firmware by mixmastamyk on Tuesday January 30, 2018 @11:53AM (#16266809)
So you have choice of running Windows or BSD, etc.
Re:LinuxBoot: Linux as Firmware by megous on Monday January 29, 2018 @02:06PM (#16259819)
bootstrapping