3 ms·
it's ridiculously overcomplicated and the market is littered with terrible implementations because of that complexity That's the impression I got when I first
by userbinator 12y ago
it's ridiculously overcomplicated and the market is littered with terrible implementations because of that complexity
That's the impression I got when I first heard of UEFI and decided to look at the specs/features, and it's the impression I had again when I read this article: A horrible mess of complexity that introduces even more bugs while trying to solve a very simple problem, and somehow the author is trying to justify it by enumerating some theoretical "problems" of legacy BIOS that I don't think really existed. Here are some rebuttals to pieces from the article...
which is that there’s no reliable convention for where the first partition should begin, so it’s difficult to be sure there’ll be enough space.
The MBR layout has been pretty much standardised, even if not officially - just look at the partition entries in it.
The only way to do this, in the BIOS/MBR world, is for the bootloaders to handle it; but there’s no widely accepted convention for the right way to do this.
It doesn't matter, you just have to figure out what each OS's bootloaders do, and whether you can chain them (most of them do.)
another advantage of UEFI booting: it provides a standard way for booting from, for instance, a remote server.
PXE does this and it's been in traditional BIOSes for a long time...
There’s no mechanism for levels above the firmware to configure the firmware’s boot behaviour.
I'd consider that a good thing.
Hopefully it’s clear why this is a better design: instead of having to write bootloader code to the ‘magic’ space at the start of an MBR disk, operating systems and so on can just create, format and mount partitions in a widely understood format and put bootloader code and anything else that they might want the firmware to read there.
The firmware shouldn't need to incorporate a filesystem driver, because that is a higher-level functionality. Its job should just be to initialise the hardware, boot from a disk/network/etc., and get out of the way. In this regard, the traditional and very elegantly simple "read the first 512 bytes from the selected boot device (it need not be a disk, PXE does this) into memory at 7c00h and jump to it" is probably the best way to do it.
“Any firmware is crap code”. Usually pretty accurate.
Ironic, since with UEFI there's plenty more code to go wrong than there is with traditional BIOS. I agree with Linus Torvalds' opinion of it:
http://yarchive.net/comp/linux/efi.html http://yarchive.net/comp/linux/efi.html