Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel with efistub fails to boot after Windows 10 upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 205

PostPosted: Tue Dec 12, 2017 5:36 pm    Post subject: Kernel with efistub fails to boot after Windows 10 upgrade Reply with quote

Yesterday, Windows 10 upgraded to version 1709. Since then Linux does not boot anymore.

I have the following configuration: UEFI boot (no CSM), refind as the boot manager, Windows 10 and Linux kernel with efistub support. The UEFI starts refind and then refind either invokes the Windows 10 or Linux EFI-bootloader. Since the Windows 10 upgrade, refind is still started from the UEFI but if I pick Linux as an option I get
Code:
EFI stub: ERROR: Failed to read file
Trying to load files to higher address
EFI stub: ERROR: Failed to read file
The same happens, if I try to directly load the Linux kernel via the boot manager that is integrated into my UEFI, i.e. if I bypass refind.

Initially, I thought that my Linux kernel image has become corrupted (for some unknown reason). So I jumped into the EFI shell and copied the kernel configuration onto an external USB drive. (Luckily, I always keep a copy of the kernel config in the ESP partition alongside the kernel image itself.) I used that config file to re-compile the same kernel again on another machine and then copied back the new kernel image. However, the fresh kernel image was binary identical to the existing kernel image. There has been no file corruption and the error still remains.

Any ideas?
Back to top
View user's profile Send private message
V-Li
Retired Dev
Retired Dev


Joined: 03 Jan 2006
Posts: 613

PostPosted: Mon Dec 25, 2017 1:56 pm    Post subject: Reply with quote

I noticed the exact same message after the Windows upgrade, the installed kernel has been 4.12.12, but from the boot menu I could start an old entry for 4.12.5 just fine. So I updated to 4.14.8-r1 and hope to get EFI in line again. Unfortunately the same message appears, while 4.12.5 still boots fine.

My command line is the following, Initramfs is dracut-created.
Code:

efibootmgr --create --part 1 --label "Gentoo 4.14.8.1" --loader "\EFI\Boot\kernel-4.14.8-gentoo" -u initrd="\\EFI\\Boot\\initramfs-4.12.5"
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Mon Dec 25, 2017 2:52 pm    Post subject: Re: Kernel with efistub fails to boot after Windows 10 upgra Reply with quote

nagmat84 wrote:
(Luckily, I always keep a copy of the kernel config in the ESP partition alongside the kernel image itself.)

Make sure to have a proper setup of your ESP with the Gentoo kernel stub in the Gentoo subdirectory. Then create an UEFI boot item for it. Check if it can boot from the UEFi menu directly.
Back to top
View user's profile Send private message
V-Li
Retired Dev
Retired Dev


Joined: 03 Jan 2006
Posts: 613

PostPosted: Sat Jan 20, 2018 1:52 pm    Post subject: Reply with quote

What I can tell is that the kernel file is loaded when I omit the "-u" option in efibootmgr. Now I have at least a kernel panic to work with.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Sat Jan 20, 2018 4:05 pm    Post subject: Reply with quote

V-Li wrote:
What I can tell is that the kernel file is loaded when I omit the "-u" option in efibootmgr. Now I have at least a kernel panic to work with.
efibootmgr? Did you forget to mount -o remount,rw?
Back to top
View user's profile Send private message
V-Li
Retired Dev
Retired Dev


Joined: 03 Jan 2006
Posts: 613

PostPosted: Thu Feb 15, 2018 5:42 pm    Post subject: Reply with quote

No, this would throw an error message right away. I can generate an entry in UEFI, but it either shows above mentioned "File not found" (with -u option) or a kernel panic (root not found) (without -u option). So the latter brings me further and I suspect a problem with my encrypted filesystem and the dracut initramfs. Up to now I did not have enough free time in one go to further debug as long as my old kernel boots.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum