upgrading kernel with uefi bios
I am used to lilo with legacy bios and old way of doings things.
Need the latest kernel for hardware support and have to patch it also but patch has nothing to do with question. Got a new to me laptop with uefi bios I went with elilo during install. how do I get the new kernel installed. I see /boot/efi/EFI/Slackware/elilo.conf Do I put my new kernel in /boot/efi/EFI/Slackware ? Do I need run anything? tried running eliloconfig but it just wiped out elilo.conf with default settings. |
The kernel is (usually) stored in /boot.
|
Hello,
Build your kernel as usual, don't use Code:
make install Backup running kernel Code:
cp /boot/efi/EFI/Slackware/vmlinuz /boot/efi/EFI/Slackware/vmlinuz_OLD Code:
cp arch/x86/boot/bzImage /boot/efi/EFI/Slackware/vmlinuz |
|
Quote:
|
Quote:
Quite strange, this is how i do when upgrading my kernel on my laptop. I also compile my own custom kernel. It's a dual boot UEFI system, windows 10 for my work and Slackware 14.2 64 bits for me. When you wrote "switch it back" it mean that you used the backup done before in /boot/efi/EFI/Slackware ? |
elilo needs to have all needed stuff: the boot loader, elilo.conf, the kernel, case occurring the initramfs, in the same directory, which is /bot/efi/EFI/Slackware.
For this reason the script eliloconfig puts there elilo.conf and copy there the kernel /boot/vmlinuz (or whatever kernel it points to if it is a symlink) and /boot/initrd.gz it it exists. But you can edit manually afterwards /boot/efi/EFI/Slint/elilo.conf as you see fit. Just bear in mind that all files it refers to should live in the same directory (symlink are not available because we are in a FAT file system). The good thing is you don't have to change the bootloader itself (elilo.efi) as it reads elilo.conf at boot time, possibly edited. For the same reason you don't need to change the boot entry in the firmware's menu if you accepted that eliloconfig write one in it when asked. So, before running eliloconfig, make sure that /boot/vmlinuz is or links to the kernel you want, or put manually what you need in /boot/efi/EFI/Slint and make sure that /boot/efi/EFI/elilo.conf mentions the files there. |
Quote:
As i don't use initrd anymore, i forgeted to speak about it >.<. It can be the reason why you did not boot properly with new kernel. My bad :'( |
maybe I made a bad kernel all it does is reboot the system guess I will go recompile and try this again.
|
It cant be corrupt files cause I just patched and recompile the kernel a bunch of times. I dont know what is going wrong.
whenever I try to boot a custom kernel the system reboots instantly. not using initrd. |
Strange. You built for the correct architecture I'm assuming?
You did copy vmlinuz to /boot/efi/EFI/Slackware and not just symlink right? Did you run ls -l on both to ensure they are the same size? Sounds like something is seriously wrong with the build. If it was a problem with your initrd missing, you'd be more likely to see the machine ATTEMPT to boot the kernel, but then give a no init found error or something like that. |
Quote:
as is I have 4 vmlinuz in /boot/efi/EFI/Slackware/ I have 3 different files trying to boot. first is stock kernel from install next two are from custom kernel /usr/src/linuz/arch/x86/boot/bzImage and the other is from /usr/src/linuxarch/x86_64/boot/bzImage my custom kernels will not boot they just do a instant reboot to bios. I have no initrd in /boot/ or /boot/efi/EFI/Slackware/ or anywhere else in the system. |
Quote:
|
heres my elilo.conf
Code:
chooser=simple |
Could you run ls -l in the same directory.
|
All times are GMT -5. The time now is 10:44 AM. |