LinuxQuestions.org
Visit Jeremy's Blog.
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 06-17-2024, 07:21 AM   #1
samtsco
Member
 
Registered: Sep 2010
Location: Pittsburgh
Distribution: Slackware
Posts: 78

Rep: Reputation: 3
15.0 Boot Failure after Attempt to Add Generic Kernel to lilo, Upgraded to 5.15.145


Have been running 15.0 on a small profile Dell Optiplex 980 for some time. It overheats and shuts down in an ambient temperature of 74F-80F, so I bought a refurb 980 with a conventional size box and installed 15.0 on it using the same installation stick my son had made for me to install it on the small box. I then successfully booted up with the Huge kernel and ran Tabs Window Manager.

Next, I downloaded kernel-generic-5.15.145-i586-1.txz from a University of Utah mirror and used upgradepkg to change /boot/*5.15.19* --> /boot/*5.15.145*:

# upgradepkg kernel-generic-5.15.19-x86_64-2%kernel-generic-5.15.145-i586-1.txz

Then issued the following commands per the recipe found at https://docs.slackware.com/howtos:sl...e_for_generic:

# $(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)

# /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-5.15.145

# /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-5.15.145 >> /etc/lilo.conf

# cd /sbin
# ./lilo

I rebooted, selecting the generic kernel, then got a complaint at a point that the program needed to access /lib/modules/5.15.145

Not knowing a lot about what I was doing, I then downloaded linux-5.15.145/kernel-modules-5.15.145-i586-1.txz from the same mirror, and

# mkdir /lib/modules/5.15.145
# tar -Jxvf kernel-modules-5.15.145-i586-1.txz -C /lib/modules/5.15.145

Rebooted, selected generic kernel, and it hung up. Rebooted, selected huge kernel, and it hung up, I think in the same place, with the same output as for the generic:

[ 25.264933] Run /etc/init as init process
[ nn.nnnnnn] Run /bin/init as init process
[ nn.nnnnnn] Run /bin/sh as init process
[ nn.nnnnnn] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
[ nn.nnnnnn] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for than 5 seconds now
[ nn.nnnnnn] Starting init: /bin/sh exists but couldn't execute it (error -8)
[ nn.nnnnnn] Kernel panic - not syncing: no working init found. Try passing init = option 2 kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ nn.nnnnnn] CPU: 0 PID: 1 COMM: swapper Not tainted 5.15.145 #1
[ nn.nnnnnn] Hardware name: Dell Inc. OptiPlex 980 /0D441T, BIOS A05 11/03/2010
[ nn.nnnnnn] Call Trace:
[ nn.nnnnnn] ? panic+0x9e/0x224
[ nn.nnnnnn] ? rest_init+0x80/0x80
[ nn.nnnnnn] ? kernel_init+0xf2/0x100
[ nn.nnnnnn] ? ret_from_fork+0x1c/0x30
[ nn.nnnnnn] Kernel Offset: disabled
[ 30.385557] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

I can always just start over and use 5.15.19 but I am curious about what I have done wrong and/or omitted.
 
Old 06-17-2024, 08:04 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 2,511

Rep: Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122
i586 means 32 bits. You "upgraded" your 64-bit system to run on a 32-bit kernel.
 
1 members found this post helpful.
Old 06-17-2024, 11:58 PM   #3
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 362

Rep: Reputation: Disabled
Quote:
Originally Posted by samtsco View Post
I rebooted, selecting the generic kernel, then got a complaint at a point that the program needed to access /lib/modules/5.15.145
So use the find command to first locate the modules for *5.15.145 then move them to /lib/modules/

Code:
[   30.385557] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel.  See Linux Documentation/admin-guide/init.rst for guidance.  ]---
So where is the initrd file?

Once you find the initrd file make sure that it is pointed to in the relevant part of your lilo.conf file.

Under you may be interested, I upgraded my kernel to 5.15.160 two days ago.So 5.15.145 is not the current kernel for 15 stable.

And under just curious is the computer running elilo or lilo?
 
Old 06-18-2024, 01:50 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 2,511

Rep: Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122
Quote:
Originally Posted by quickbreakfast View Post
Code:
[   30.385557] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel.  See Linux Documentation/admin-guide/init.rst for guidance.  ]---
A 32-bit kernel can't execute the 64-bit /sbin/init.
 
Old 06-19-2024, 10:29 PM   #5
samtsco
Member
 
Registered: Sep 2010
Location: Pittsburgh
Distribution: Slackware
Posts: 78

Original Poster
Rep: Reputation: 3
I marked this as solved but the reader should know that I was omitting something else, i.e., I had not installed the new version modules, only placed them in a directory. I am not planning on completing this upgrade soon, so I will not try to give more detail.

Yes, I am running lilo. On one of the last BIOS machines, I guess.
 
Old 06-20-2024, 06:36 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 2,511

Rep: Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122
No more detail is needed. It's certain that kernel-generic-5.15.145-i586-1.txz can't work. You need kernel-generic-5.15.145-x86_64-1.txz.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Boot failure on LM 21 after upgrading to 5.15.0-112-generic from 5.15.0-107-generic beachboy2 Linux Mint 2 06-14-2024 04:56 AM
Thought I had done an geninitrd for new .145 kernel... FTIO Slackware 6 01-10-2024 06:11 AM
[SOLVED] Boot failure after kernel upgrade to 5.15.145 (Slackware-15.0) kgha Slackware 3 12-26-2023 12:59 PM
[SOLVED] linux-image-generic-hwe-18.04 and linux-generic-hwe-18.04 upgrade failure on Linux Mint 19.3 anon091 Linux - Distributions 6 04-12-2020 10:15 AM

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

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