LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2018, 11:14 PM   #1
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Rep: Reputation: 38
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.

Last edited by mrapathy; 07-12-2018 at 01:10 PM. Reason: Solved
 
Old 07-10-2018, 12:33 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Augsburg
Distribution: Opensuse 15.0, Kubuntu 18.04, Win 10
Posts: 2,072

Rep: Reputation: 150Reputation: 150
The kernel is (usually) stored in /boot.
 
Old 07-10-2018, 01:45 AM   #3
Patrick59
LQ Newbie
 
Registered: Apr 2007
Location: North France
Distribution: Slackware
Posts: 12

Rep: Reputation: 5
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
 
Old 07-10-2018, 01:56 AM   #4
RadicalDreamer
Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 734

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

 
1 members found this post helpful.
Old 07-10-2018, 02:20 AM   #5
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Patrick59 View Post
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.
 
Old 07-10-2018, 02:47 AM   #6
Patrick59
LQ Newbie
 
Registered: Apr 2007
Location: North France
Distribution: Slackware
Posts: 12

Rep: Reputation: 5
Quote:
Originally Posted by mrapathy View Post
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 ?

Last edited by Patrick59; 07-10-2018 at 02:50 AM.
 
Old 07-10-2018, 04:46 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,338

Rep: Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115
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.
 
Old 07-10-2018, 05:27 AM   #8
Patrick59
LQ Newbie
 
Registered: Apr 2007
Location: North France
Distribution: Slackware
Posts: 12

Rep: Reputation: 5
Quote:
Originally Posted by Didier Spaier View Post
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 :'(
 
Old 07-10-2018, 10:42 AM   #9
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Original Poster
Rep: Reputation: 38
maybe I made a bad kernel all it does is reboot the system guess I will go recompile and try this again.
 
Old 07-10-2018, 05:44 PM   #10
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Original Poster
Rep: Reputation: 38
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.
 
Old 07-10-2018, 06:50 PM   #11
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 280

Rep: Reputation: 87
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.
 
Old 07-10-2018, 06:56 PM   #12
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Poprocks View Post
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.

Last edited by mrapathy; 07-10-2018 at 06:57 PM.
 
Old 07-10-2018, 07:15 PM   #13
phalange
LQ Newbie
 
Registered: May 2018
Distribution: Arch, Slackware, Fedora, Centos
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by mrapathy View Post
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...
 
Old 07-10-2018, 07:25 PM   #14
mrapathy
Member
 
Registered: Nov 2005
Distribution: slackware
Posts: 212

Original Poster
Rep: Reputation: 38
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

Last edited by mrapathy; 07-10-2018 at 07:26 PM.
 
Old 07-10-2018, 07:47 PM   #15
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 280

Rep: Reputation: 87
Could you run ls -l in the same directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Updating the Kernel with a UEFI BIOS. cwizardone Slackware 17 08-23-2017 01:00 PM
[SOLVED] bios to uefi BAKABON Debian 4 09-05-2016 09:34 AM
UEFI Bios should upgrading hardware wait? westzilla Linux - Desktop 3 12-06-2012 08:53 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
UEFI and BIOS: What is it really? cruiser General 10 09-27-2011 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration