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
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2019, 08:04 PM   #1
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Rep: Reputation: Disabled
Lightbulb Switch to a generic kernel error.


I am trying to preform a complete install and I am getting a kernel related error:
Code:
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh
Modules for kernel 4.4.14 aren't installed.
I know a generic kernel is suggested but is it needed and what, if anything, could go wrong with contending with the "huge" kernel. Some input would be appreciated.
 
Old 06-21-2019, 08:16 PM   #2
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Assuming you are running 14.2,

Did you update before trying to switch to the generic kernel?

If so, the kernel version is 4.4.182.
 
Old 06-21-2019, 08:57 PM   #3
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Skaendo View Post
Assuming you are running 14.2,

Did you update before trying to switch to the generic kernel?

If so, the kernel version is 4.4.182.
I am assuming I am using 14.2
I "updated" in that I ran:

Code:
# slackpkg update gpg
# slackpkg update

# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all
# slackpkg clean-system
after having uncommitted the "generic" mirror that automatically finds the closest mirror I am rather certain.
Code:
bash-4.3# uname -a
Linux slackbox 4.4.14 #2 Fri Jun 24 15:20:18 CDT 2016 i686 AMD FX(tm)-8300 Eight-Core Processor AuthenticAMD GNU/Linux
bash-4.3# cat /proc/version
Linux version 4.4.14 (root@hive) (gcc version 5.3.0 (GCC) ) #2 Fri Jun 24 15:20:18 CDT 2016
 
Old 06-21-2019, 09:44 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
There have been several kernel updates since the original release.

You would have been better served by completing the installation, rebooting, and then upgrading. IMO, anyways.

Try...

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.182
...and perhaps next time pay attention to the text that flies by when running slackpkg upgrade-all, which might have alerted you to the kernel upgrade.
 
3 members found this post helpful.
Old 06-22-2019, 11:15 PM   #5
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, OpenBSD, OpenWRT
Posts: 361

Rep: Reputation: 243Reputation: 243Reputation: 243
Quote:
Originally Posted by slackw1zard View Post
I am trying to preform a complete install and I am getting a kernel related error:
Code:
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh
Modules for kernel 4.4.14 aren't installed.
I know a generic kernel is suggested but is it needed and what, if anything, could go wrong with contending with the "huge" kernel. Some input would be appreciated.
If Richard Cranium's suggestion doesn't work:

I ran into the same problem when upgrading this week, except I was already on generic kernel 4.4.172. Here's how I got to the latest generic kernel.

After updgrading the kernel and running the same command you did above, my output was:
Code:
Modules for kernel 4.4.172 aren't installed.
So I searched and found a link that explained running a modified command like this (hinted at in the link at the bottom of this post, but I didn't understand what it was doing when I read it the first (few) time(s).)
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh /boot/vmlinuz-generic-4.4.182
Which gave me this output (abbreviated here):
Code:
mkinitrd -c -k 4.4.182 -f ext4 -r [ ... and a whole bunch of other stuff here in the middle ... ] /boot/initrd.gz
Which I ran as root. I got a bunch of "OK" messages, closing with
Code:
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
And so I was on 4.4.182 generic.

I don't use lilo, I have a multiboot system where Xubuntu's grub is the boss. I update booting an easy way by signing into Xubuntu and running sudo update-grub, instead of manually editing grub.

If you use lilo, use the steps here
https://docs.slackware.com/slackware...[]=generic
Read the "Switch to a generic kernel" section. More than once if needed.

Of course, you can just use the huge kernel until you get comfortable upgrading to generic. I used huge until switching to generic with 4.4.172 just to learn how to do it, not because I saw any great advantage to generic.

TKS

Last edited by TheTKS; 06-22-2019 at 11:16 PM.
 
1 members found this post helpful.
Old 06-23-2019, 01:58 PM   #6
svim
Member
 
Registered: Feb 2015
Distribution: Slackware 14.2-64bit
Posts: 62

Rep: Reputation: Disabled
Quote:
Originally Posted by slackw1zard View Post
I am trying to preform a complete install and I am getting a kernel related error:
[CODE]
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh
Modules for kernel 4.4.14 aren't installed.
.....
You've apparently got a 'partially' upgraded system where the huge kernel and supporting files like modules are different versions. Try doing your complete install so it's working and stable, then go here:
http://www.slackware.com/security/viewer.php?l=slackware-security&y=2019&m=slackware-security.1029019
and be sure to manually upgrade not just the huge and generic kernels but also the appropriate firmware, headers, modules, source. etc. so they're all on the same version. This should at least get you up-to-date to 4.4.182 (running huge). With that done, now go through the process to switch from huge to generic.
 
Old 06-23-2019, 03:40 PM   #7
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
There have been several kernel updates since the original release.

You would have been better served by completing the installation, rebooting, and then upgrading. IMO, anyways.

Try...

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.182
...and perhaps next time pay attention to the text that flies by when running slackpkg upgrade-all, which might have alerted you to the kernel upgrade.
Code:
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.182
Modules for kernel 4.4.182 aren't installed.
Mind you I am using the princeton mirror for current.
 
Old 06-23-2019, 03:43 PM   #8
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TheTKS View Post
If Richard Cranium's suggestion doesn't work:

I ran into the same problem when upgrading this week, except I was already on generic kernel 4.4.172. Here's how I got to the latest generic kernel.

After updgrading the kernel and running the same command you did above, my output was:
Code:
Modules for kernel 4.4.172 aren't installed.
So I searched and found a link that explained running a modified command like this (hinted at in the link at the bottom of this post, but I didn't understand what it was doing when I read it the first (few) time(s).)
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh /boot/vmlinuz-generic-4.4.182
Which gave me this output (abbreviated here):
Code:
mkinitrd -c -k 4.4.182 -f ext4 -r [ ... and a whole bunch of other stuff here in the middle ... ] /boot/initrd.gz
Which I ran as root. I got a bunch of "OK" messages, closing with
Code:
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
And so I was on 4.4.182 generic.

I don't use lilo, I have a multiboot system where Xubuntu's grub is the boss. I update booting an easy way by signing into Xubuntu and running sudo update-grub, instead of manually editing grub.

If you use lilo, use the steps here
https://docs.slackware.com/slackware...[]=generic
Read the "Switch to a generic kernel" section. More than once if needed.

Of course, you can just use the huge kernel until you get comfortable upgrading to generic. I used huge until switching to generic with 4.4.172 just to learn how to do it, not because I saw any great advantage to generic.

TKS
Code:
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh /boot/vmlinuz-generic-4.4.182
File /boot/vmlinuz-generic-4.4.182 not found!
This is my output for the command.
 
Old 06-23-2019, 03:44 PM   #9
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by svim View Post
You've apparently got a 'partially' upgraded system where the huge kernel and supporting files like modules are different versions. Try doing your complete install so it's working and stable, then go here:
http://www.slackware.com/security/vi...curity.1029019
and be sure to manually upgrade not just the huge and generic kernels but also the appropriate firmware, headers, modules, source. etc. so they're all on the same version. This should at least get you up-to-date to 4.4.182 (running huge). With that done, now go through the process to switch from huge to generic.
Can someone please define to me what the hell a complete install infers? I keep hearing it and the slackdocuments really don't give a concrete logical definition of a complete install.
 
1 members found this post helpful.
Old 06-23-2019, 03:51 PM   #10
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by slackw1zard View Post
Can someone please define to me what the hell a complete install infers? I keep hearing it and the slackdocuments really don't give a concrete logical definition of a complete install.
It means every packages present in the slackware64 (or slackware on 32 bit) folder (on the installation disk); that is with the exception of the kdei -- that series doesn't need to be installed.
 
Old 06-23-2019, 03:52 PM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by slackw1zard View Post
Code:
bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.182
Modules for kernel 4.4.182 aren't installed.
Mind you I am using the princeton mirror for current.
The 4.4.x kernels are shipped with Slackware 14.2. In Slackware -current you will find 4.19 kernels.
Looks to me that you started off with installing Slackware 14.2 and then told slackpkg to use a package mirror meant for Slackware -current.
That is usually not going anywhere nice.

Your posts contain too little information to give good answers, but not all the answers given in this thread are going to help you if you are this new to Slackware.
I'd like you to start with a reboot of your computer, in the hope of course that it will reboot into your fresh Slackware, and then provide us with answers to the following questions cq. commands you need to run:

Code:
uname -a
Code:
cat /etc/os-release
Code:
ls -l /var/log/packages/kernel*
Code:
ls -l /var/log/packages/glibc*
Code:
ls -l /var/log/packages/gcc*
Code:
cat /etc/slackpkg/mirrors | grep -v "^ *#"
Code:
ls -l /boot/
 
4 members found this post helpful.
Old 06-23-2019, 04:00 PM   #12
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
The 4.4.x kernels are shipped with Slackware 14.2. In Slackware -current you will find 4.19 kernels.
Looks to me that you started off with installing Slackware 14.2 and then told slackpkg to use a package mirror meant for Slackware -current.
That is usually not going anywhere nice.

Your posts contain too little information to give good answers, but not all the answers given in this thread are going to help you if you are this new to Slackware.
I'd like you to start with a reboot of your computer, in the hope of course that it will reboot into your fresh Slackware, and then provide us with answers to the following questions cq. commands you need to run:

Code:
uname -a
Code:
cat /etc/os-release
[CODE]ls -l /var/log/packages/kernel*
Code:
cat /etc/slackpkg/mirrors | grep -v "^ *#"
Code:
ls -l /boot/
Okay will do - I am somewhat familiar with slackware but heaven knows I am not new to Linux lol. I figured I downloaded 14.2 and used current - if that will be an issue in any internal manner I am willing to reinstall with the current ISO if you provide me the link. I will reboot now:

[reboot info] I just installed the latest current version from alien bob and ran; slackpkg update, install-new, upgrade-all and clean-system getting little results which I assume is good:


Code:
bash-5.0# slackpkg install-new

Looking for NEW packages to install. Please wait... DONE

No packages match the pattern for install. Try:

	/usr/sbin/slackpkg upgrade|reinstall 


bash-5.0# slackpkg upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

	/usr/sbin/slackpkg install|reinstall 


bash-5.0# slackpkg clean-system

Looking for packages to remove. Please wait... DONE

No packages match the pattern for clean-system
bash-5.0# slackpkg update gpg

You have selected a mirror for Slackware -current in /etc/slackpkg/mirrors,
but Slackware version 14.2+ appears to be installed.

Slackware -current is the development (i.e. unstable) tree.

Is this really what you want?

To confirm your choice, press Y, else press N. Then, press Enter: y

Slackpkg will not show this warning again unless you remove the
/var/lib/slackpkg/current file. 

			Downloading https://mirrors.slackware.com/slackware/slackware64-current/GPG-KEY...
--2019-06-23 18:27:33--  https://mirrors.slackware.com/slackware/slackware64-current/GPG-KEY
Resolving mirrors.slackware.com (mirrors.slackware.com)... 207.223.116.213
Connecting to mirrors.slackware.com (mirrors.slackware.com)|207.223.116.213|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572 (1.5K)
Saving to: ‘/tmp/slackpkg.yDu2yA/gpgkey’

/tmp/slackpkg.yDu2y 100%[===================>]   1.54K  --.-KB/s    in 0s      

2019-06-23 18:27:34 (110 MB/s) - ‘/tmp/slackpkg.yDu2yA/gpgkey’ saved [1572/1572]

			Slackware Linux Project's GPG key added

bash-5.0# slackpkg update
....


2019-06-23 18:28:14 (103 MB/s) - ‘/tmp/slackpkg.tLyixJ/testing-PACKAGES.TXT’ saved [727/727]

	Formatting lists to slackpkg style...
		Package List: using CHECKSUMS.md5 as source
		Package descriptions

bash-5.0# slackpkg install-new

Looking for NEW packages to install. Please wait... DONE

No packages match the pattern for install. Try:

	/usr/sbin/slackpkg upgrade|reinstall 


bash-5.0# slackpkg upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

	/usr/sbin/slackpkg install|reinstall 


bash-5.0# slackpkg clean-system

Looking for packages to remove. Please wait... DONE

No packages match the pattern for clean-system


bash-5.0#
I am assuming I am up to date and this version of slackware looks much more better and clean and works better I am to feel. Shall we call this solved?

Last edited by slackw1zard; 06-23-2019 at 05:33 PM.
 
Old 06-23-2019, 04:05 PM   #13
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by slackw1zard View Post
Okay will do - I am somewhat familiar with slackware but heaven knows I am not new to Linux lol. I figured I downloaded 14.2 and used current - if that will be an issue in any internal manner I am willing to reinstall with the current ISO if you provide me the link. I will reboot now:

[reboot info]
Slackware current is the unreleased development branch of Slackware. When you use Slackware current you are by definition beta or alpha testing. Slackware 14.2 is the latest stable release of Slackware. If you want to use Slackware current you'll need to create your own iso or boot media from the Slackware current tree; or find and use something like AlienBob's Slackware current live disk.

Last edited by khronosschoty; 06-23-2019 at 04:07 PM.
 
Old 06-23-2019, 04:26 PM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by slackw1zard View Post
Okay will do - I am somewhat familiar with slackware but heaven knows I am not new to Linux lol. I figured I downloaded 14.2 and used current - if that will be an issue in any internal manner I am willing to reinstall with the current ISO if you provide me the link.
See https://slackware.nl/slackware/slackware64-current-iso/
Note that this ISO is automatically (re-)generated when an update in Slackware-current occurs. No human involvement. Check the file "mkisofs-dvd.log" in that directory for any errors in generating the ISO.
Generally speaking, Slackware-current is stable, but that is not a guarantee. Things sometimes cause breakage in software which is not part of the distro itsrlf. So always check the ChangeLog.txt first before applying future updates. Possible breakages of 3rd party packages or software is usually announced in the ChangeLog.txt entry.
 
1 members found this post helpful.
Old 06-23-2019, 05:33 PM   #15
slackw1zard
Member
 
Registered: Jun 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
See https://slackware.nl/slackware/slackware64-current-iso/
Note that this ISO is automatically (re-)generated when an update in Slackware-current occurs. No human involvement. Check the file "mkisofs-dvd.log" in that directory for any errors in generating the ISO.
Generally speaking, Slackware-current is stable, but that is not a guarantee. Things sometimes cause breakage in software which is not part of the distro itsrlf. So always check the ChangeLog.txt first before applying future updates. Possible breakages of 3rd party packages or software is usually announced in the ChangeLog.txt entry.
Will do - I like this version best. Thanks Bob.
 
  


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] 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
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM
GART TLB error generic level generic Clydesdale Linux - Software 1 08-13-2007 06:47 PM
GART TLB error generic level generic Clydesdale Linux - Hardware 0 08-13-2007 06:18 PM

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

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