LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-26-2022, 08:45 PM   #1
mr4121
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Rep: Reputation: 0
slackware:beginners_guide: Switch to a generic kernel: two fails: no mouse/keyboard under Xfce


Hello,

I followed the guide here: https://docs.slackware.com/slackware:beginners_guide

# /usr/share/mkinitrd/mkinitrd_command_generator.sh returns
no modules for kernel 5.15.19

inxi -F says the current kernel is 5.15.19

I used Ventoy and slackware64-15.0-install-dvd.iso for the install.

Can someone explain the steps for the "Switch to a generic kernel" section @ https://docs.slackware.com/slackware:beginners_guide or point me to a tutorial?

I have followed this guide twice; I end up without a working mouse and keyboard when Xfce starts.
 
Old 08-27-2022, 04:23 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
First of all, welcome to the forum.

Quote:
no modules for kernel 5.15.19
The way you installed is not the standard way to install a system. Once you are familiar with Slackware, installing the way you did works well; if you have experience and can figure things out yourself. The standard way to install is from official install media. either burned to a DVD, or burned to a USB stick.

To help you out, we need some information on the system you are installing to.

Is it an older BIOS based system or a newer UEFI system?

Is it partitioned as mbr or gpt? Did you partition the disk?

It might help if you posted exactly when and what .iso file you used for this install.

To find out if the modules for 5.15.19 are installed, open a terminal and run the command:

Quote:
ls -l /var/lib/pkgtools/packages | grep kernel
it will give you a listing of the packages you have installed. This example is from my system.

Quote:
-rw-r--r-- 1 root root 105K Jan 25 2022 kernel-firmware-20220124_eb8ea1b-noarch-1
-rw-r--r-- 1 root root 979 Aug 26 09:37 kernel-generic-5.15.63-x86_64-1
-rw-r--r-- 1 root root 31K Aug 26 09:37 kernel-headers-5.15.63-x86-1
-rw-r--r-- 1 root root 975 Aug 26 09:37 kernel-huge-5.15.63-x86_64-1
-rw-r--r-- 1 root root 323K Aug 26 09:38 kernel-modules-5.15.63-x86_64-1
-rw-r--r-- 1 root root 4.8M Aug 26 09:41 kernel-source-5.15.63-noarch-1
Notice the kernel-modules package. For you it needs to be 5.15.19 if that is the kernel you have.

Slackware has moved on to kernel 5.15.63 in the last few days. The mirrors will all have 5.15.63 now. There is a UK mirror that preserves older packages. I have not used it, but many other users have. You could find the correct modules package on that mirror.

The official media has files to help with UEFI systems. You can find them on any mirror. There is a README.initrd file, a README.uefi.txt file etc. You can find the url's for any mirror in the file /etc/slackpkg/mirrors. Have a look there for assistance.

Last edited by camorri; 08-27-2022 at 04:27 AM.
 
1 members found this post helpful.
Old 08-27-2022, 10:49 AM   #3
mr4121
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the welcome and reply.

This is a Lenovo E545 64-bit
UEFI/Legacy Boot (both)/Legacy first).

This time I DD'd (USB drive):

https://mirrors.slackware.com/slackw...nstall-dvd.iso

Checksum matched.


I partitioned the drive using Slackware:

/dev/sda1 16G swap
/dev/sda2 40G boot
/dev/sda3 409G


After "You may now login as 'root'", Linux 5.15.19 is displayed.

bash-5.1# ls -l /var/lib/pkgtools/packages/ | grep kernel

-rw-r--r-- 1 root root 106573 Aug 26 05:48 kernel-firmware-20220124_eb8ea1b-noarch-1
-rw-r--r-- 1 root root 1002 Aug 26 05:48 kernel-generic-5.15.19-x86_64-2
-rw-r--r-- 1 root root 30933 Aug 26 05:50 kernel-headers-5.15.19-x86-2
-rw-r--r-- 1 root root 1000 Aug 26 05:48 kernel-huge-5.15.19-x86_64-2
-rw-r--r-- 1 root root 330483 Aug 26 05:48 kernel-modules-5.15.19-x86_64-2
-rw-r--r-- 1 root root 4996908 Aug 26 05:53 kernel-source-5.15.19-noarch-2

I have not rebooted.

From here, I can resume @ "Installing updates using slackpkg" (https://docs.slackware.com/slackware:beginners_guide)?

Last edited by mr4121; 08-27-2022 at 10:51 AM.
 
Old 08-27-2022, 11:06 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Yes, the beginners guide does not deal with UEFI, however it looks like you want to boot in legacy mode. (You did not create a fat32 partition.)

Thats fine, you will have to use either lilo, or grub as the boot loader.

When you try to create a initrd.gz file, us it with a -k parameter. With -k it makes sure it is looking for modules for 5.15.19. I would recommend you do that before you update the installation. I was wondering if on the first attempt you had updated the install, in which case you would not have modules for 5.15.19 installed. The man page is good if you need help with the initrd.
 
Old 08-27-2022, 05:14 PM   #5
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Just in case... https://docs.slackware.com/howtos:sl..._uefi_hardware
 
Old 08-27-2022, 05:49 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Are you booted into the usb or the installed system?
 
Old 09-03-2022, 07:58 PM   #7
mr4121
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Camorri,

Thanks, I will re-install again and run the script before

# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all

colorpurple21859,

Yes, I was booted into the installed OS; everything worked fine all week until a few minutes ago --- updating the system before # /usr/share/mkinitrd/mkinitrd_command_generator.sh seemed logical.
 
Old 09-24-2022, 07:14 PM   #8
mr4121
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Finally made it back.

I'm new to manual kernel maintenance. After several attempts, I just realized
that the kernel in the message I've been getting after running

# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all

is the same kernel version --- 5.15.19 x86_64 --- I successfully switched to following the steps here:
https://docs.slackware.com/slackware:beginners_guide

During the upgrade kernel-generic-5.15.63-x86_64-1.txz (headers, huge, modules, and source) are downloaded, but /usr/share/mkinitrd/mkinitrd_command_generator.sh isn't detecting the new kernel.

It replies with:

bash-5.1# /usr/share/mkinitrd/mkinitrd_command_generator.sh
Modules for kernel 5.15.19 aren't installed.

How do I get the script to detect the new kernel after install/upgrade?
 
Old 09-24-2022, 09:16 PM   #9
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
The command should look like this- /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.63

you just tell the generator to look for modules for 5.15.63.

Last edited by camorri; 09-24-2022 at 09:18 PM.
 
  


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] Problem upgrading to new kernel 5.3.0-45-generic from 4.18.0-25-generic fgonza1971 Linux - Laptop and Netbook 1 04-01-2020 02:54 PM
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
Update from 2.6.27-13-generic to 2.6.27-14-generic fails bobreeves Linux - Kernel 1 03-19-2009 09:02 AM

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

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