LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Switch to a generic kernel error. (https://www.linuxquestions.org/questions/slackware-14/switch-to-a-generic-kernel-error-4175656164/)

slackw1zard 06-21-2019 08:04 PM

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.

Skaendo 06-21-2019 08:16 PM

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.

slackw1zard 06-21-2019 08:57 PM

Quote:

Originally Posted by Skaendo (Post 6007884)
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


Richard Cranium 06-21-2019 09:44 PM

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.

TheTKS 06-22-2019 11:15 PM

Quote:

Originally Posted by slackw1zard (Post 6007879)
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

svim 06-23-2019 01:58 PM

Quote:

Originally Posted by slackw1zard (Post 6007879)
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.

slackw1zard 06-23-2019 03:40 PM

Quote:

Originally Posted by Richard Cranium (Post 6007905)
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.

slackw1zard 06-23-2019 03:43 PM

Quote:

Originally Posted by TheTKS (Post 6008146)
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.

slackw1zard 06-23-2019 03:44 PM

Quote:

Originally Posted by svim (Post 6008273)
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.

khronosschoty 06-23-2019 03:51 PM

Quote:

Originally Posted by slackw1zard (Post 6008301)
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.

Alien Bob 06-23-2019 03:52 PM

Quote:

Originally Posted by slackw1zard (Post 6008298)
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/

slackw1zard 06-23-2019 04:00 PM

Quote:

Originally Posted by Alien Bob (Post 6008307)
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?

khronosschoty 06-23-2019 04:05 PM

Quote:

Originally Posted by slackw1zard (Post 6008309)
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.

Alien Bob 06-23-2019 04:26 PM

Quote:

Originally Posted by slackw1zard (Post 6008309)
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.

slackw1zard 06-23-2019 05:33 PM

Quote:

Originally Posted by Alien Bob (Post 6008316)
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.


All times are GMT -5. The time now is 07:26 PM.