LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   upgrading kernel with uefi bios (https://www.linuxquestions.org/questions/slackware-14/upgrading-kernel-with-uefi-bios-4175633661/)

mrapathy 07-09-2018 11:14 PM

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.

Keruskerfuerst 07-10-2018 12:33 AM

The kernel is (usually) stored in /boot.

Patrick59 07-10-2018 01:45 AM

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
Install new one
Code:

cp arch/x86/boot/bzImage /boot/efi/EFI/Slackware/vmlinuz
Nothing else to do, reboot to test your new config ;)

RadicalDreamer 07-10-2018 01:56 AM

https://docs.slackware.com/howtos:sl...fi_and_elilo?s[]=uefi
https://docs.slackware.com/howtos:sl...on_slackware?s[]=elilo

:D

mrapathy 07-10-2018 02:20 AM

Quote:

Originally Posted by Patrick59 (Post 5877584)
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
Install new one
Code:

cp arch/x86/boot/bzImage /boot/efi/EFI/Slackware/vmlinuz
Nothing else to do, reboot to test your new config ;)

My system didnt like that. Just rebooted I just had to use dvd to switch it back to default kernel.

Patrick59 07-10-2018 02:47 AM

Quote:

Originally Posted by mrapathy (Post 5877592)
My system didnt like that. Just rebooted I just had to use dvd to switch it back to default kernel.

Hello,


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 ?

Didier Spaier 07-10-2018 04:46 AM

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.

Patrick59 07-10-2018 05:27 AM

Quote:

Originally Posted by Didier Spaier (Post 5877618)
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.

Damn !!
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 :'(

mrapathy 07-10-2018 10:42 AM

maybe I made a bad kernel all it does is reboot the system guess I will go recompile and try this again.

mrapathy 07-10-2018 05:44 PM

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.

Poprocks 07-10-2018 06:50 PM

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.

mrapathy 07-10-2018 06:56 PM

Quote:

Originally Posted by Poprocks (Post 5877955)
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.

I copied vmlinuz to /boot and to /boot/efi/EFI/Slackware/
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.

phalange 07-10-2018 07:15 PM

Quote:

Originally Posted by mrapathy (Post 5877956)
I have no initrd in /boot/ or /boot/efi/EFI/Slackware/ or anywhere else in the system.

You may have tried this, but elilo gave me trouble when I used a full path to the kernel in my elilo.conf, even though the path was correct. So with the kernel in the same directory as elilo.conf, it's just image=vmlinuz... rather than image=/path/to/vmlinuz...

mrapathy 07-10-2018 07:25 PM

heres my elilo.conf

Code:

chooser=simple
delay=120
timeout=120
#
image=vmlinuz
        label=vmlinuz
        read-only
        append="root=/dev/sda6 vga=normal ro"

#
image=vmlinuz-old
        label=vmlinuz-old
        read-only
        append="root=/dev/sda6 vga=normal ro"
#
image=vmlinuz-tv
        label=vmlinuz-tv
        read-only
        append="root=/dev/sda6 vga=normal ro"
#
image=vmlinuz-tv2
        label=vmlinuz-tv2
        read-only
        append="root=/dev/sda6 vga=normal ro"

I should remove vmlinuz-old its just same file as vmlinuz

Poprocks 07-10-2018 07:47 PM

Could you run ls -l in the same directory.


All times are GMT -5. The time now is 10:44 AM.