View previous topic :: View next topic |
Author |
Message |
Drecker n00b
Joined: 28 Sep 2015 Posts: 6
|
Posted: Thu May 11, 2017 1:04 pm Post subject: Updating kernel with UEFI |
|
|
Hi,
I recently came to my laptop that had quite old gentoo system. I tried to updated the system with standard emerge @world, unfortunatelly my /usr/src/linux (supposedly 4.4.6) was somehow broken (eg. when "emerging" nvidia-drivers it complines about "Could not find a Make file in the krenel source directory.", "Kernel not configured; no .config found" etc.) So fix those problems with updating kernel. I downloaded newest stable kernel (4.9.16) via emerge gentoo-sources. I configured it, "made" it and copied vmlinuz into "/dev/sda1"/efi/boot/bootx64.efi overriding previous kernel. But when I rebooted the system the PC just gets stuck on either "Lenovo"-logo screen or black screen (even before anything else is displayed). When i override back the bootx64.efi by old kernel image the linux boots without problem. Am I missing anything obvious? To be honest I have no idea what to do next since it doesn't even print an error-message.
Any advice is very welcome.
The newest kernel has been installed by (please note that I use UEFI's implicit bootloader, as of https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Alternative_2:_efibootmgr):
Code: |
# eselect kernel set 5 # 4.9.16
# cd /usr/src/linux
# # ...configuring kernel...
# mount /boot
# make -j10
# make modules_install
# make install
# cp /boot/vmlinuz-4.9.16-gentoo /boot/efi/boot/bootx64.efi
|
Content of .config of kernel 4.9.16, see: https://pastebin.com/KYBBWgDT |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Thu May 11, 2017 7:57 pm Post subject: |
|
|
Make sure your kernel image is an EFI binary (make sure the EFI stub is enabled in your kernel config).
Also make sure EFI console is enabled.
Perhaps pastebin your kernel config so that someone could inspect it? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Drecker n00b
Joined: 28 Sep 2015 Posts: 6
|
Posted: Thu May 11, 2017 9:14 pm Post subject: |
|
|
Thanks for the reply
eccerr0r wrote: | Perhaps pastebin your kernel config so that someone could inspect it? |
It's the very last thing I mentioned in the initial post (https://pastebin.com/KYBBWgDT), or did you mean anything else? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri May 12, 2017 1:36 am Post subject: |
|
|
try menuconfig to get
CONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_NVIDIA_I2C is not set
# CONFIG_FB_NVIDIA_DEBUG is not set
# ONFIG_FB_NVIDIA_BACKLIGHT is not set _________________ Defund the FCC. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri May 12, 2017 3:36 am Post subject: |
|
|
Oops yeah didn't see that. Yeah I think DONAHUE got the setting that needs to be set so you can see your bootup console, though if you have nvidia compiled, it should still load automatically without FB_EFI set... Better to set it so at least you can see the boot diagnostics.
Also setting CONFIG_EARLY_PRINTK_EFI can be helpful too. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Drecker n00b
Joined: 28 Sep 2015 Posts: 6
|
Posted: Mon Jun 12, 2017 8:33 pm Post subject: |
|
|
Thanks for help, everybody and sorry for the late reply
Just in case somebody stumble upon similar problem -- there were nothing wrong with UEFI setup what was wrong was actually setting FB_NVIDIA. The kernel booted normally by the screen wasnt updated so I tought booting stuck at manufacturer logo. |
|
Back to top |
|
|
|