Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating kernel with UEFI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Drecker
n00b
n00b


Joined: 28 Sep 2015
Posts: 6

PostPosted: Thu May 11, 2017 1:04 pm    Post subject: Updating kernel with UEFI Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Thu May 11, 2017 7:57 pm    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Drecker
n00b
n00b


Joined: 28 Sep 2015
Posts: 6

PostPosted: Thu May 11, 2017 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Fri May 12, 2017 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Fri May 12, 2017 3:36 am    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Drecker
n00b
n00b


Joined: 28 Sep 2015
Posts: 6

PostPosted: Mon Jun 12, 2017 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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