The current state of UEFI and Linux
Feb. 1st, 2013 12:31 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Executive summary: Most things work fine.
Things we know are broken:
Not an amazingly positive list, but as far as I know that's about it - other than some Samsungs, one range of Toshibas and one range of Lenovo desktops, Linux should be fine. If you have any other UEFI system that's unable to install Fedora 18, let me know and we'll do our best to work out what's going on.
Things we know are broken:
- Some Samsung laptops. The samsung-laptop driver is a slightly weird thing. By 2010 (when it first appeared) most vendors had moved over to using some level of firmware abstraction, either using ACPI or WMI. Samsung still seemed to be stuck around a decade earlier - they were providing a region of memory at a known address, and you'd read that address to find a bunch of offsets. Then you'd write magic values based on those offsets to magic system IO ports based on those offsets and something would happen. Those writes were triggering System Management Mode, a special x86 CPU mode where the processor executes code from memory that the OS can't see, without telling the OS that it's doing so. There's nothing especially new in this (SMM first appeared in the 386sl back in 1990), but it also means that you depend on the system vendor not changing the interface without telling you. Turns out that Samsung apparently changed their platform interface when they moved to UEFI, but didn't actually do anything to prevent old drivers from breaking things - performing exactly the same series of accesses on some modern Samsung laptops gives an uncorrectable machine check exception (in the best case) or destroys your firmware (in the worst case). Given that the driver was written to Samsung's specifications, this is pretty obviously Samsung's fault, but that's probably little consolation to anyone who ended up with a dead laptop. Although, given Samsung's track record, this may not be surprising.
On the bright side, some of the machines that are affected by this predate Secure Boot, so at least it's not a Secure Boot bug. - Some Toshibas won't boot Linux. This turns out to be some staggering incompetence on the part of Toshiba (or, more likely, their third-party vendor) - they managed to leave the signing key out of the database that's used to validate binaries, and managed to leave the signature database signing key out of the database that's used to provide whitelist or blacklist updates. The good news is that this is a blatant violation of Microsoft's Windows 8 certification guidelines, and that seems to have encouraged Toshiba to actually fix their BIOS. The bad news is that any of the affected machines that are currently available are still broken, and Toshiba don't seem to be willing to actually give you the firmware update yet.
- Some Lenovos will only boot Windows or Red Hat Enterprise Linux. I recommend drinking, because as far as I know they haven't actually got around to doing anything useful about this yet.
Not an amazingly positive list, but as far as I know that's about it - other than some Samsungs, one range of Toshibas and one range of Lenovo desktops, Linux should be fine. If you have any other UEFI system that's unable to install Fedora 18, let me know and we'll do our best to work out what's going on.
Trusted Boot
Date: 2013-02-01 07:09 am (UTC)Please help :)
Re: Trusted Boot
From:Re: Trusted Boot
From: (Anonymous) - Date: 2013-06-28 02:18 pm (UTC) - ExpandRe: Trusted Boot
From:no subject
Date: 2013-02-01 09:42 am (UTC)Basically the Kernel "oopsed" and when i rebooted the motherboard turned out fried. At the time i did not report it because i did not have much information about the event and i was, and i am, still not sure what happened. Now that i read about the Samsung issue i find that very familiar. Anyway, fortunately my D30 was still under warranty and i was not able to reproduce after it was repaired.
I also was not able to boot Fedora 18 UEFI installation on both my D30 as well as my X220. I use to have Fedora 16 installed in UEFI mode and it worked fine. In Fedora 18 i was not able to make that work. When i press the Fedora item from the UEFI menu nothing happens (Nothing bootable found). It might just be me but even if so, i guess it is not as intuitive as it could be.
Some Lenovos will only boot Windows or Red Hat Enterprise Linux.
Date: 2013-02-01 11:44 am (UTC)Remove Invalid Boot Options
In case you have it enabled remove it. The "funny" thing with a firmware like this is that it autodetects all known positions of efi binaries. Like when you use the name:
EFI/Microsoft/Boot/bootmgfw.efi
it will detect Windows Boot Manager. Nice to convert normal to UEFI installs...
Re: Some Lenovos will only boot Windows or Red Hat Enterprise Linux.
From:AMI/Asrock UEFI Secure Boot Bugs
Date: 2013-02-01 12:07 pm (UTC)Re: AMI/Asrock UEFI Secure Boot Bugs
From:Does the samsung issue also exist in CSM mode?
Date: 2013-02-01 06:29 pm (UTC)Does this mean the issue is only with samsung-laptop or are there other parts of the kernel that will also cause these issues?
Does turning off UEFI (and switching to CSM/legacy mode) stop this problem?
Re: Does the samsung issue also exist in CSM mode?
From:Re: Does the samsung issue also exist in CSM mode?
From: (Anonymous) - Date: 2013-02-03 06:23 am (UTC) - ExpandFedora 28 does not work with Sony VAIO
Date: 2013-02-02 03:39 am (UTC)Re: Fedora 28 does not work with Sony VAIO
From:Re: Fedora 28 does not work with Sony VAIO
From: (Anonymous) - Date: 2013-02-02 04:09 am (UTC) - ExpandRe: Fedora 28 does not work with Sony VAIO
From:Re: Fedora 28 does not work with Sony VAIO
From: (Anonymous) - Date: 2013-02-02 04:40 am (UTC) - ExpandRe: Fedora 28 does not work with Sony VAIO
From:Macbook 4,1
Date: 2013-02-02 04:14 am (UTC)The boot option shows four items, regular (Mac OS), Fedora 18, UEFI, UEFI (yep, shows it twice). I've tried all three and it never finishes booting. If you want more info let me know.
Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From:Re: Macbook 4,1
From: (Anonymous) - Date: 2013-02-07 09:39 am (UTC) - Expandno subject
Date: 2013-02-02 11:56 am (UTC)Samsung laptop issue
Date: 2013-02-02 01:20 pm (UTC)recommended vendors?
Date: 2013-02-03 03:33 am (UTC)Do ASUS, Gigabyte, SuperMicro, MSI motherboards raise your blood-alcohol levels at most to "jolly" or "slightly tipsy", or are they all more or less equally ravaging your liver?
Any trends at all in motherboard manufacturers' firmware quality?
PXE
Date: 2013-02-04 02:09 am (UTC)Toshiba's have a BIOS setting you can change
Date: 2013-02-05 01:41 am (UTC)Lenovo
Date: 2013-02-07 08:32 pm (UTC)I was stuck on the "secure boot" loop and came to this page for a solution.
I went into BIOS (F2) and rearranged my boot order and chose the USB stick as the first choice. It displayed the "secure boot" message, but then it went into the menu, and I was able to load Mint up.
Hope this helps.
Lenovo W520 was destroyed
Date: 2013-02-19 11:00 am (UTC)last year in march i boughta Lenovo W520.
When it arrived, i equiped it with 2 OCZ Vertex and one mSATA SSD insteat of the UMTS modem.
I wanted t olearn about the new UEFI world so i decided to do a Dual boot installation, Windows7 and opensuse 12.2 Tumbleweed.
I did the last updates for the hardware and set the notebook to UEFI boot.
Everythink went well, but after one week working with the noteboot i had the first boot problems, the kernel hang during boot.
One week later the W520 was not able to boot any more :NVRAM corrupted, and it wnt into a boot loop
I sent it back to Lenovo and 4 weeks later i got a new one.
But: Same procedure, after a good week: NVRAM corrupted.
The mainboard was changed then 3 times, every time after one week: NVRAM corrupted.
Last but not least i decided to give it a try with BIOS boot.
and, guess what: since 7 month the notebook runs smoothly.
I won't touch UEFI any more!
Re: Lenovo W520 was destroyed
From: (Anonymous) - Date: 2013-03-28 05:33 pm (UTC) - ExpandAsus K55N won't boot anything in EFI mode...
Date: 2013-02-24 11:06 pm (UTC)Dual boot Windows 7 and Linux Mint
Date: 2013-03-29 03:33 pm (UTC)I recently installed both W7 and Mint 14 on a new Lenovo G580 laptop, it went straight through and Mint is a pleasure to use. The BIOS seems to have no UEFI or secure boot options.
Now I am trying to install Windows 7 on a Lenovo ThinkCentre Edge72 and have already wasted two days and exchanged it once.
I have paid good money for the thing and they have installed some new technology that makes it useless to me without any reference to it in the data sheet. I will return it.
Can anyone recommend a workstation/business type computer that I can still buy with a good old simple BIOS? According to technet, Windows 7 will install on that without problems.
Re: Dual boot Windows 7 and Linux Mint
From: (Anonymous) - Date: 2013-03-29 03:36 pm (UTC) - ExpandRe: Dual boot Windows 7 and Linux Mint
From: (Anonymous) - Date: 2013-03-29 06:21 pm (UTC) - ExpandRe: Dual boot Windows 7 and Linux Mint
From: (Anonymous) - Date: 2014-07-10 03:32 am (UTC) - ExpandRe: Dual boot Windows 7 and Linux Mint
From: (Anonymous) - Date: 2014-09-25 02:22 pm (UTC) - ExpandViolation of W8 Certification Guidelines
Date: 2013-09-17 10:53 am (UTC)Re: Violation of W8 Certification Guidelines
From:Re: Violation of W8 Certification Guidelines
From: (Anonymous) - Date: 2013-09-18 08:35 am (UTC) - Expand