LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-20-2022, 09:58 AM   #16
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45

I have not yet upgraded the newest reinstall of Slackware. I wanted to test workflow first, to see what it does and and how it works out

Quote:
Originally Posted by Tonus View Post
I would go with
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k $kernel_version
where $kernel_version is the last you installed with according modules.

That yielded the following:
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 5.15.19
mkinitrd -c -k 5.15.19 -f ext4 -r /dev/nvme0n1p4 -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.gz
Quote:
If it's ok this will create the initrd.gz
Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k $kernel_version)
Then edit elilo.conf

If you have multiple kernel and initrds add
Code:
-o /boot/initrd-$version.gz
at the previous command
Code:
# $(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 5.15.19) -o /boot/initrd-5.15.19.gz
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/xhci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/xhci-pci-renesas.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/xhci-pci.ko added.
WARNING:  Could not find firmware "/lib/firmware/renesas_usb_fw.mem"
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ohci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ohci-pci.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ehci-pci.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/xhci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/uhci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/i2c/i2c-core.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/i2c-hid/i2c-hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-generic.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/acpi/video.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/platform/x86/wmi.ko added.
OK: /lib/modules/5.15.19/kernel/net/rfkill/rfkill.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/input/sparse-keymap.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/acpi/battery.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/acpi/platform_profile.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/platform/x86/asus-wmi.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-asus.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-cherry.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-logitech.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-logitech-dj.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-logitech-hidpp.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-lenovo.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-microsoft.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.19/kernel/drivers/hid/hid-multitouch.ko added.
OK: /lib/modules/5.15.19/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.15.19/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.15.19/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.15.19/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.15.19/kernel/fs/ext4/ext4.ko added.
58216 blocks
/boot/initrd-5.15.19.gz created.
Be sure to run lilo again if you use it.
Do this look ok?

As far as I understand, I need a vmlinuz and a corresponding initrd, which was just generated. The one that comes with a fresh install, has no version number. Do the system just pick the one it can find?
 
Old 03-20-2022, 10:31 AM   #17
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by Wed View Post
Do this look ok?
Looks OK to me. No errors at any rate.
Quote:
As far as I understand, I need a vmlinuz and a corresponding initrd, which was just generated. The one that comes with a fresh install, has no version number. Do the system just pick the one it can find?
No, you have to tell elilo what to boot using the elilo.conf file. If you mount your ESP (usually it gets mounted on /boot/efi) and look at elilo.conf, you will see a stanza telling elilo the name of the kernel and of the matching initrd that it is to boot. If you have multiple kernels and initrds you must give them more specific names (for instance vmlinuz-5.15.27 and initrd-5.15.27) and then create an elilo entry for each pair. I like to do this in an ordinary hand edit so I know what I am doing.
 
Old 03-20-2022, 10:45 AM   #18
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
15.0 includes a new script to generate the initrd
Code:
$ which geninitrd
/usr/sbin/geninitrd
I always do slackpkg, then geninitrd, then a few manual cp commands.
Code:
root:~# cd /boot
root:/boot# cp vmlinuz-generic  efi/EFI/Slackware/vmlinuz 
root:/boot# cp initrd
initrd-tree/ initrd.gz    
root:/boot# cp initrd.gz efi/EFI/Slackware/initrd.gz
Anything more fancy than that is an excellent excercise for the user
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 12:40 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

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

All times are GMT -5. The time now is 12:43 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