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 03-18-2024, 09:30 AM   #1
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 58

Rep: Reputation: 7
Angry Slackware64_15.0 Not booting with elilo


I tried to update the kernel 5.15.145 (generic) to kernel 5.15.152 by
following the instructions here

https://blog.paranoidpenguin.net/201...ackware-linux/

and needless to say, I really screwed it up somehow.

Right now I am trying to get back to the Kernel 5.15.145 but I am getting the following when the system tries to boot up:
------------------------------------------------
[ 3.565166] rodata_test: all test were successful
[ 3.565611] Run /init as init process
[ 3.578258] udevd[306]: starting eudev-3.2.12
/boot/initrd.gz: Loading kernel modules from initrd image:
insmod /lib/modules/5.15.145/kernel/fs/jdb2/jdb2.ko
[ 3.608569] jdb2: exports duplicate symbol jdb2__journal_restart (owned by kernel)
modprobe: ERROR: could not insert 'jdb2': Exec format error
insmod /lib/modules/5.15.145/kernel/fs/mbcache.ko
[ 3.658244] mbcache: exports duplicate symbol __mb_cache_entry_free (owned by kernel)
modprobe: ERROR: could not insert 'mbcache': Exec format error
insmod /lib/modules/5.15.145/fs/jdb2/jdb2.ko
[ 3.694984] jdb2: exports duplicate symbol jdb2__journal_restart (owned by kernel)
modprobe: ERROR: could not insert 'ext4': Exec format error
mount: mounting overlay on /mnt failed: No such device
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.

/bin/sh: can't access tty: job control turned off
/#
----------------------------------------------------------
I am not sure where to go with this as of now.

I have removed all the references to the kernel "vanilla-5.15.152" in
the /boot and the EFI System:
I have the following on this system
/dev/nvme0n1p1 EFI system (VFAT)
/dev/nvme0n1p2 / (Ext 4)
/dev/nvme0n1p2 Swap

I changed elilo.conf under /boot/efi/EFI/Slackware to now go to
"image=vmlinuz-huge-5.15.145"

This is also the same in the EFI System (VFAT) drive.

I was going to go with huge-5.15.145 as I understand it, I would not need
to run the "mkinitrd" with the huge kernel.

Any and all advise appreciated to help me recover my 5.15.145 system.
 
Old 03-18-2024, 10:22 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Code:
/boot/initrd.gz: Loading kernel modules from initrd image:
Yeah, your boot loader still references incompatible initrd generated for 5.15.145 (generic), while huge variant doesn't need an initrd.
 
Old 03-18-2024, 11:06 AM   #3
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 58

Original Poster
Rep: Reputation: 7
Well, I used my slackware64_15.0 DVD and reloaded various series and I can at least boot back up now,
however it is using the 5.15.19 kernel.

Just need to figure out how to get it to use the huge-5.15.145 kernel without the "mkinitrd".

and also for some reason it will not show or connect with my wifi router, even after running
the "rc.inet1 wlan0 start" so need to find that problem.

It is getting better.
 
Old 03-18-2024, 12:32 PM   #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,216

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Just need to figure out how to get it to use the huge-5.15.145 kernel without the "mkinitrd".
Edit your /etc/slackpkg/mirrors file and make user you have only one mirror selected for 15.0. You can then run the standard slackpkg update, slackpkg install-new, and slackpkg upgrade-all. In the list ( it should be short depending what you had installed before ) you should see the individual kernel packages listed for 145, since that is what is the newest kernel Pat has rteleased for 15.0. Let the upgrade run.

Depending if this a legacy BIOS, Or UEFI system, you will need to update the boot loader before you reboot. I always make an initrd.gz file at this point. You do not have too, as long as you have set up the boot loader to load the huge kernel.

To make an initrd, I always use the mkinitrd script. You can find it at /usr/share/mkinitrd/mkinitrd.sh. Add the -k option for 5.15.145. The command will look like "/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.145" without quotes. It outputs a line of code. Copy and paste that at the command line, press enter, and the initrd file is created.

Get that far, try your wi-fi connection. If you need more help, post back how far you have got.
 
Old 03-18-2024, 01:50 PM   #5
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 58

Original Poster
Rep: Reputation: 7
Well, I just loaded the Slackware65 15.0 DVD for the second time and my network problems seems to have now
gone away.

I did try upgrading the kernel to the "huge-5.15.145" but again when I reboot it crashes as in the 1st listing above.

I do not know what is going on as I had the "generic-5.15.145" running prior to this.

Right now I am on 5.15.19 from the DVD and it is working fine, but I would like to get the 5.15.145 series back up
and running.

question - modify the file /boot/efi/EFI/Slackware/elilo.conf should I add "image=vmlinuz-huge-5.15.145" and also
to the file v-fat drive under /EFI/Slackware?

When I modify both of those for the "huge-5.15.145" kernel, do I need to run "mkinitrd -c -k 5.15.145 -m ext4" or not?

when I get all of the above done, I then run "eliloconfig" - so does any of this really change just to use the "huge-5.15.145" kernel??

Thanks
 
Old 03-18-2024, 03:47 PM   #6
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,216

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
WIth elilo, you need to move the kernels and your new initrd.gz to /boot/efi/EFI/Slackware and modify elilo.conf to match the kernel(s) you may wish to boot.

I will list what mine looks like. First the list of files.

Code:
ls -l
total 29856
-rwxr-xr-x 1 root root     2170 Feb 19 08:05 General-blue.msg
-rwxr-xr-x 1 root root     2170 Feb 19 08:06 Params-blue.msg
-rwxr-xr-x 1 root root      518 Feb 19 08:17 elilo.conf
-rwxr-xr-x 1 root root   238531 Jun 12  2018 elilo.efi
-rwxr-xr-x 1 root root 10889967 Dec 26 06:46 initrd-145.gz
-rwxr-xr-x 1 root root     2228 Feb 19 06:20 textmenu-message-blue.msg
-rwxr-xr-x 1 root root  7812416 Dec 26 06:47 vmlinuz-generic-5.15.145
-rwxr-xr-x 1 root root 11622048 Dec 26 06:47 vmlinuz-huge-5.15.145
Note, I have set up menues so I can select either kernel. You do not need to do that. You need elilo.conf, elilo.efi,
the initrd file, and at least 1 kernel.

My elilo.conf file.

Code:
chooser=textmenu
f1=General-blue.msg
f2=Params-blue.msg
default=generic
delay=50
timeout=50
prompt
#
message=textmenu-message-blue.msg
#
image=vmlinuz-generic-5.15.145
        label=generic
        initrd=initrd-145.gz
        read-only
        append="root=/dev/nvme0n1p3 vga=0x034c rcu-nocbs=0-11 ro nvidia-drm.modeset=1 resume=UUID=f0256f8b-7a1d-46e0-b8cd-228182c84bfc"

image=vmlinuz-huge-5.15.145
      label=huge
      read-only
      append="root=/dev/nvme0n1p3 vga=791 rcu-nocbs=0-11 ro nvidia-drm.modeset=1"
You can use the simple chooser. The key parts are:

Code:
image=vmlinuz-generic-5.15.145
        label=generic
        initrd=initrd-145.gz
        read-only
for the generic kernel and

Code:
image=vmlinuz-huge-5.15.145
      label=huge
      read-only
for the huge kernel. FYI, the append= line allows you to pass parameters to the kernel. Try without using an append line. Also, I change the name of an initrd.gz file so I can tell what kernel it is for. That is not necessary, it just helps me know what initrd file belongs to what kernel.

Hope this helps.

Last edited by camorri; 03-18-2024 at 04:07 PM.
 
Old 03-18-2024, 04:15 PM   #7
ccoffee
Member
 
Registered: Mar 2003
Location: Lake City, South Carolina
Distribution: Slackware 15 and current
Posts: 58

Original Poster
Rep: Reputation: 7
Thank you Cliff, that really helps.

Right now I have the kernel 5.15.19 but everything else is up to date on 15.0

Tomorrow I will try and the slackpkg upgrade for the Kernels.

If that goes well, then I will mark this solved.

Thanks again

Chuck
 
Old 03-18-2024, 04:16 PM   #8
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,216

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Happy to help.
 
  


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] Slackware64_15, Virtualbox 6.1.34: All Windows 10 guests BSOD slacker_et Slackware 29 10-14-2022 01:51 PM
tigervnc: starting a server on slackware64_15.0 via rc.local gives me an empty plasma desktop _peter Slackware 5 04-09-2022 12:53 PM
[SOLVED] Internet security and slackware64_15.0 slacnovitz Slackware 23 03-01-2022 10:43 AM

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

All times are GMT -5. The time now is 06:39 AM.

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