LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-04-2024, 06:08 PM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
Getting a new kernel to boot


Still a continuation from my elilo woes. I think I'm nearly there. However I stumble on the finish line.

At reboot, the new kernel (5.15.145) couldn't find its modules. Right now, the system is up with the USB boot stick, so I can connect to it over the network.

I temporarily recommented the kernel entries in the blacklist and downloaded the kernel packages.

Code:
# cd /var/cache/packages/patches/packages/linux-5.15.145/
# installpkg kernel-headers-5.15.145-x86-1.txz
# cd ..
# upgradepkg kernel-firmware-20231222_a7dee43-noarch-1.txz
Yes I ran installpkg on all the kernel packages.

Code:
# cd /boot
# cp vmlinuz-generic-5.15.145 efi/EFI/Slackware/
# cp vmlinuz-huge-5.15.145 efi/EFI/Slackware/
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.145
# mkinitrd -c -k 5.15.145 -f ext4 -r /dev/nvme0n1p3 -m xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd-5.15.145.gz
# cp initrd-5.15.145.gz efi/EFI/Slackware/
I added the version to the output file.


Code:
# ls /boot
README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
System.map -> System.map-generic-5.15.145
System.map-generic-5.15.145
System.map-generic-5.15.19
System.map-huge-5.15.145
System.map-huge-5.15.19
config -> config-generic-5.15.145.x64
config-generic-5.15.145.x64
config-generic-5.15.19.x64
config-huge-5.15.145.x64
config-huge-5.15.19.x64
efi/
elilo-ia32.efi*
elilo-x86_64.efi*
grub/
initrd-5.15.145.gz
initrd-tree/
initrd.gz
inside.bmp
inside.dat
onlyblue.bmp
onlyblue.dat
slack.bmp
tuxlogo.bmp
tuxlogo.dat
vmlinuz -> vmlinuz-generic-5.15.145
vmlinuz-generic -> vmlinuz-generic-5.15.145
vmlinuz-generic-5.15.145
vmlinuz-generic-5.15.19
vmlinuz-huge-5.15.145
vmlinuz-huge-5.15.145
vmlinuz-huge-5.15.19
Code:
# ls efi/EFI/Slackware/
elilo.conf*
elilo.efi*
initrd-5.15.145.gz*
initrd.gz*
vmlinuz*
vmlinuz-generic-5.15.145*
vmlinuz-huge-5.15.145*
I figured a pure copy of the first entry would do, but add the version number as I had generated them earlier.

Code:
# nano elilo.conf 

chooser=simple
delay=1
timeout=1
#
image=vmlinuz
	label=vmlinuz
        initrd=initrd.gz
        read-only
        append="root=/dev/nvme0n1p3 vga=normal ro"

image=vmlinuz-5.15.145
        label=vmlinuz-5.15.145
        initrd=initrd-5.15.145.gz
        read-only
        append="root=/dev/nvme0n1p3 vga=normal ro"
Is there anything simple I missed, or screwed up? A space or , in the wrong spot? Something I can do to make my system bootable?
 
Old 02-04-2024, 11:28 PM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by Wed View Post
Code:
# ls efi/EFI/Slackware/
elilo.conf*
elilo.efi*
initrd-5.15.145.gz*
initrd.gz*
vmlinuz*
vmlinuz-generic-5.15.145*
vmlinuz-huge-5.15.145*
Code:
# nano elilo.conf 

chooser=simple
delay=1
timeout=1
#
image=vmlinuz
	label=vmlinuz
        initrd=initrd.gz
        read-only
        append="root=/dev/nvme0n1p3 vga=normal ro"

image=vmlinuz-5.15.145
        label=vmlinuz-5.15.145
        initrd=initrd-5.15.145.gz
        read-only
        append="root=/dev/nvme0n1p3 vga=normal ro"
You don't have vmlinuz-5.15.145 in the efi directory.
 
Old 02-08-2024, 02:52 PM   #3
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 270

Rep: Reputation: Disabled
Did you install the kernel-modules-5.15.145 package?

Last edited by lazardo; 02-08-2024 at 02:53 PM.
 
Old 02-08-2024, 07:35 PM   #4
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
In your code post /efi/EFI/Slackware , you have the symbol * after every file, which isn't in your elilo.conf.

try removing the *'s.

For your reference here is my elilo.conf

Code:
chooser=simple
prompt
timeout=50
default=flop
#
image=vmlinuz-generic-5.15.117
        label=ops
        initrd=initrd.gz
        read-only
        append="root=/dev/sda2"  
 
image=vmlinuz-huge-5.15.117
        label=flop
        initrd=initrd.gz
        read-only
        append="root=/dev/sda2 vga=normal ro"
Yes I know I am not using the current kernel. And I have ro -read only- repeats. But since typing either "ops" or "flop" boots I am too much of a slacker to fix it.
 
  


Reply



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
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
GRUB won't boot new kernel? Do I have a new kernel? Help! ttnunam Linux - General 8 11-15-2006 09:02 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
/boot/boot/boot/boot/boot/ muddywaters SUSE / openSUSE 1 09-10-2005 06:08 AM
A new kernel is out! A new kernel is out! A new kernel is out! Aussie Linux - General 9 11-29-2002 08:31 AM

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

All times are GMT -5. The time now is 09:20 PM.

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
Open Source Consulting | Domain Registration