LinuxQuestions.org
Visit Jeremy's Blog.
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 09-15-2021, 12:49 PM   #1
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 526

Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
kernel panic after make install of fresh kernel compile


Houston, We have a problem.

I made a fresh compile of kernel 5.14.3

Luckily, was able to restore /boot from backup.

Here's what I found is happening after make install.
__________________________________________________________________

Before make install

total 41540
lrwxrwxrwx 1 root root 38 Sep 15 12:41 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
lrwxrwxrwx 1 root root 22 Sep 15 12:41 System.map -> System.map-huge-5.14.3
-rw-r--r-- 1 root root 6793590 Sep 12 15:09 System.map-huge-5.14.3
-rw-r--r-- 1 root root 512 Aug 23 2013 boot.0800
-rw-r--r-- 1 root root 512 Aug 16 2016 boot.0810
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0820
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0830
-rw-r--r-- 1 root root 512 Aug 5 02:02 boot.0840
-rw-r--r-- 1 root root 137 Aug 22 2013 boot_message.txt
lrwxrwxrwx 1 root root 22 Sep 15 12:41 config -> config-huge-5.14.3.x64
-rw-r--r-- 1 root root 237671 Sep 12 14:02 config-huge-5.14.3.x64
-rwxr-xr-x 1 root root 216219 Jun 12 2018 elilo-ia32.efi*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo-x86_64.efi*
-rw-r--r-- 1 root root 23610361 Sep 12 2020 initrd.gz
-rw-r--r-- 1 root root 22578 Feb 13 2021 inside.bmp
-rw-r--r-- 1 root root 432 Feb 13 2021 inside.dat
-rw------- 1 root root 344576 Sep 15 12:45 map
-rw-r--r-- 1 root root 6878 Feb 13 2021 onlyblue.bmp
-rw-r--r-- 1 root root 424 Feb 13 2021 onlyblue.dat
-rw-r--r-- 1 root root 64 Apr 23 16:04 part.0810
-rw-r--r-- 1 root root 64 Aug 12 2016 part.0820
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rw-r--r-- 1 root root 33192 Feb 13 2021 tuxlogo.bmp
-rw-r--r-- 1 root root 423 Feb 13 2021 tuxlogo.dat
lrwxrwxrwx 1 root root 19 Sep 15 12:41 vmlinuz -> vmlinuz-huge-5.14.3
lrwxrwxrwx 1 root root 19 Sep 15 12:41 vmlinuz-huge -> vmlinuz-huge-5.14.3
-rw-r--r-- 1 root root 10944672 Sep 12 15:10 vmlinuz-huge-5.14.3


____________________________________________________________________________________________________ _____

After make install

total 53592
lrwxrwxrwx 1 root root 38 Sep 15 12:41 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
-rw-r--r-- 1 root root 5051807 Sep 15 13:25 System.map
-rw-r--r-- 1 root root 6793590 Sep 12 15:09 System.map-huge-5.14.3
lrwxrwxrwx 1 root root 22 Sep 15 12:41 System.old -> System.map-huge-5.14.3
-rw-r--r-- 1 root root 512 Aug 23 2013 boot.0800
-rw-r--r-- 1 root root 512 Aug 16 2016 boot.0810
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0820
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0830
-rw-r--r-- 1 root root 512 Aug 5 02:02 boot.0840
-rw-r--r-- 1 root root 137 Aug 22 2013 boot_message.txt
lrwxrwxrwx 1 root root 22 Sep 15 12:41 config -> config-huge-5.14.3.x64
-rw-r--r-- 1 root root 237671 Sep 12 14:02 config-huge-5.14.3.x64
-rwxr-xr-x 1 root root 216219 Jun 12 2018 elilo-ia32.efi*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo-x86_64.efi*
-rw-r--r-- 1 root root 23610361 Sep 12 2020 initrd.gz
-rw-r--r-- 1 root root 22578 Feb 13 2021 inside.bmp
-rw-r--r-- 1 root root 432 Feb 13 2021 inside.dat
-rw------- 1 root root 308736 Sep 15 13:26 map
-rw-r--r-- 1 root root 6878 Feb 13 2021 onlyblue.bmp
-rw-r--r-- 1 root root 424 Feb 13 2021 onlyblue.dat
-rw-r--r-- 1 root root 64 Apr 23 16:04 part.0810
-rw-r--r-- 1 root root 64 Aug 12 2016 part.0820
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rw-r--r-- 1 root root 33192 Feb 13 2021 tuxlogo.bmp
-rw-r--r-- 1 root root 423 Feb 13 2021 tuxlogo.dat
-rw-r--r-- 1 root root 7323488 Sep 15 13:25 vmlinuz
lrwxrwxrwx 1 root root 19 Sep 15 12:41 vmlinuz-huge -> vmlinuz-huge-5.14.3
-rw-r--r-- 1 root root 10944672 Sep 12 15:10 vmlinuz-huge-5.14.3
lrwxrwxrwx 1 root root 19 Sep 15 12:41 vmlinuz.old -> vmlinuz-huge-5.14.3

____________________________________________________________________________________________________ _____


The problem looks to be with the new /boot/System.map

Last edited by glennmcc; 09-15-2021 at 12:50 PM.
 
Old 09-15-2021, 01:06 PM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 457

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Did the new kernel need an initrd? The one on the new list is still from September 12th.
 
Old 09-15-2021, 02:08 PM   #3
marco70
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 103

Rep: Reputation: 39
kernel-huge will rather boot without initrd.

Code:
menuentry 'Slackware64-15.0 GNU/Linux, with Linux 5.14.3' --class slackware64_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.3-advanced-37937c0d-aa62-4a3c-8e12-9235e2d0e028' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 37937c0d-aa62-4a3c-8e12-9235e2d0e028
	echo	'Ładowanie systemu Linux 5.14.3 ...'
	linux	/boot/vmlinuz-huge-5.14.3 root=/dev/nvme0n1p2 ro loglevel=3 quiet
}
Example from the grub.
 
Old 09-15-2021, 02:23 PM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,816

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
The size of your vmlinuz dated Sep 15 is so small that it's not huge. And the date of
initrd.gz is Sep 12 2020. Nothing uses System.map, but it seems ok. Its size is exactly the same as Slackware64-current has for System.map-generic-5.14.3 (smaller than System.map-huge-5.14.3).
 
Old 09-15-2021, 02:32 PM   #5
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 457

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by Petri Kaukasoina View Post
And the date of initrd.gz is Sep 12 2020.
Oh, jeez, I thought it was from a few days ago. Just what I get for not wearing my glasses.
 
Old 09-15-2021, 02:35 PM   #6
marco70
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 103

Rep: Reputation: 39
You are doing something wrong.
In the directory /usr/src/5.14.3/.config
comes with kernel-generic by default
You need to copy config from /boot/config-huge-5.14.3.x64 to /usr/src/5.14.3/.config

Make copies of your files before playing.
 
Old 09-15-2021, 03:28 PM   #7
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 526

Original Poster
Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
Step 1) copied /boot/config-huge-5.14.3.x64 to /usr/src/liunx-5.14.3/.config

Step 2) make menuconfig (did not make any changes, simply exited the menu)

Step 3) make

Step 4) make modules_install

Step 5) make install (lilo was automatically executed to update the boot loader)

Step 6) reboot

Result... kernel panic due to unable to mount root file system


Ah ha.... looking closer at the directory listing after make install....
looks like the symlinks are not being correctly created.

__________

Oh yeah, BTW.... all of this was done while logged-in as root...
not as a non-root user via su nor sudo

_____________

Well, well, well...

Looking at the contents of http://mirrors.kernel.org/slackware/...3-x86_64-1.txz

It does in-fact look like what got build and placed into /boot is in-fact the generic kernel.

This _should_ not be happening when what was used is /boot/config-huge-5.14.3.x64 copied to /usr/src/liunx-5.14.3/.config

Last edited by glennmcc; 09-15-2021 at 04:27 PM.
 
Old 09-15-2021, 04:49 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Why not just run the scripts provided by Patrick Volkerding here?
 
Old 09-15-2021, 05:00 PM   #9
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 526

Original Poster
Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
OK.... just now done with the same step on my older setup to build a new 4.4.276 kernel.

Before make install

total 12200
lrwxrwxrwx 1 root root 37 Sep 14 10:43 README.initrd -> /usr/doc/mkinitrd-1.4.8/README.initrd
lrwxrwxrwx 1 root root 23 Sep 15 15:57 System.map -> System.map-huge-4.4.276
-rw-r--r-- 1 root root 3998131 Jul 21 00:24 System.map-huge-4.4.276
-rw-r--r-- 1 root root 512 Sep 15 16:06 boot.0800
-rw-r--r-- 1 root root 137 Sep 14 11:11 boot_message.txt
-rw-r--r-- 1 root root 426 Apr 21 2016 coffee.dat
lrwxrwxrwx 1 root root 23 Sep 15 15:57 config -> config-huge-4.4.276.x64
-rw-r--r-- 1 root root 160180 Jul 21 00:22 config-huge-4.4.276.x64
-rwxr-xr-x 1 root root 214120 Mar 29 2013 elilo-ia32.efi*
-rwxr-xr-x 1 root root 239720 Apr 1 2016 elilo-x86_64.efi*
drwxr-xr-x 2 root root 4096 Jun 12 2016 grub/
-rw-r--r-- 1 root root 22578 Apr 21 2016 inside.bmp
-rw-r--r-- 1 root root 432 Apr 21 2016 inside.dat
-rw-r--r-- 1 root root 6878 Apr 21 2016 onlyblue.bmp
-rw-r--r-- 1 root root 424 Apr 21 2016 onlyblue.dat
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rw-r--r-- 1 root root 33192 Apr 21 2016 tuxlogo.bmp
-rw-r--r-- 1 root root 423 Apr 21 2016 tuxlogo.dat
lrwxrwxrwx 1 root root 20 Sep 15 15:57 vmlinuz -> vmlinuz-huge-4.4.276
lrwxrwxrwx 1 root root 20 Sep 15 15:57 vmlinuz-huge -> vmlinuz-huge-4.4.276
-rw-r--r-- 1 root root 7751712 Jul 21 00:24 vmlinuz-huge-4.4.276
____________________________________________________________________________________________________ __

After make install

total 35048
lrwxrwxrwx 1 root root 37 Sep 14 10:43 README.initrd -> /usr/doc/mkinitrd-1.4.8/README.initrd
-rw-r--r-- 1 root root 3998051 Sep 15 17:49 System.map
-rw-r--r-- 1 root root 3998131 Jul 21 00:24 System.map-huge-4.4.276
-rw-r--r-- 1 root root 3998051 Sep 15 17:49 System.old
-rw-r--r-- 1 root root 512 Sep 15 16:06 boot.0800
-rw-r--r-- 1 root root 137 Sep 14 11:11 boot_message.txt
-rw-r--r-- 1 root root 426 Apr 21 2016 coffee.dat
lrwxrwxrwx 1 root root 23 Sep 15 15:57 config -> config-huge-4.4.276.x64
-rw-r--r-- 1 root root 160180 Jul 21 00:22 config-huge-4.4.276.x64
-rwxr-xr-x 1 root root 214120 Mar 29 2013 elilo-ia32.efi*
-rwxr-xr-x 1 root root 239720 Apr 1 2016 elilo-x86_64.efi*
drwxr-xr-x 2 root root 4096 Jun 12 2016 grub/
-rw-r--r-- 1 root root 22578 Apr 21 2016 inside.bmp
-rw-r--r-- 1 root root 432 Apr 21 2016 inside.dat
-rw-r--r-- 1 root root 6878 Apr 21 2016 onlyblue.bmp
-rw-r--r-- 1 root root 424 Apr 21 2016 onlyblue.dat
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rw-r--r-- 1 root root 33192 Apr 21 2016 tuxlogo.bmp
-rw-r--r-- 1 root root 423 Apr 21 2016 tuxlogo.dat
-rw-r--r-- 1 root root 7693760 Sep 15 17:49 vmlinuz
lrwxrwxrwx 1 root root 20 Sep 15 15:57 vmlinuz-huge -> vmlinuz-huge-4.4.276
-rw-r--r-- 1 root root 7751712 Jul 21 00:24 vmlinuz-huge-4.4.276
-rw-r--r-- 1 root root 7693760 Sep 15 17:49 vmlinuz.old

____________________________________________________________________________________________________ __

As we see... it did in-fact result in a fresh build of the huge kernel.

The only thing it did not do was to create the symlinks to that fresh build.
 
Old 09-15-2021, 11:51 PM   #10
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 526

Original Poster
Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
Please accept my apologies for wasting everyone's time on this.

Started from scratch and it worked correctly this time
resulting in a fresh build of the huge kernel.
________________________________________________________________________________

root@glennmcc-i7:/usr/src/linux-5.14.3# make install
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
sh ./arch/x86/boot/install.sh \
5.14.3 arch/x86/boot/bzImage \
System.map "/boot"
Added SlackWare64 *

root@glennmcc-i7:/usr/src/linux-5.14.3# ls -l /boot
total 58864
lrwxrwxrwx 1 root root 38 Sep 15 19:11 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
-rw-r--r-- 1 root root 6793590 Sep 16 00:30 System.map
-rw-r--r-- 1 root root 6793590 Sep 12 15:09 System.map-huge-5.14.3
lrwxrwxrwx 1 root root 22 Sep 15 20:38 System.old -> System.map-huge-5.14.3
-rw-r--r-- 1 root root 512 Aug 23 2013 boot.0800
-rw-r--r-- 1 root root 512 Aug 16 2016 boot.0810
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0820
-rw-r--r-- 1 root root 512 Aug 5 2016 boot.0830
-rw-r--r-- 1 root root 512 Aug 5 02:02 boot.0840
-rw-r--r-- 1 root root 137 Aug 22 2013 boot_message.txt
lrwxrwxrwx 1 root root 22 Sep 15 20:38 config -> config-huge-5.14.3.x64
-rw-r--r-- 1 root root 237671 Sep 12 14:02 config-huge-5.14.3.x64
-rwxr-xr-x 1 root root 216219 Jun 12 2018 elilo-ia32.efi*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo-x86_64.efi*
-rw-r--r-- 1 root root 23610361 Sep 12 2020 initrd.gz
-rw-r--r-- 1 root root 22578 Feb 13 2021 inside.bmp
-rw-r--r-- 1 root root 432 Feb 13 2021 inside.dat
-rw------- 1 root root 344576 Sep 16 00:31 map
-rw-r--r-- 1 root root 6878 Feb 13 2021 onlyblue.bmp
-rw-r--r-- 1 root root 424 Feb 13 2021 onlyblue.dat
-rw-r--r-- 1 root root 64 Apr 23 16:04 part.0810
-rw-r--r-- 1 root root 64 Aug 12 2016 part.0820
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rw-r--r-- 1 root root 33192 Feb 13 2021 tuxlogo.bmp
-rw-r--r-- 1 root root 423 Feb 13 2021 tuxlogo.dat
-rw-r--r-- 1 root root 10943776 Sep 16 00:30 vmlinuz
lrwxrwxrwx 1 root root 19 Sep 15 20:38 vmlinuz-huge -> vmlinuz-huge-5.14.3
-rw-r--r-- 1 root root 10944672 Sep 12 15:10 vmlinuz-huge-5.14.3
lrwxrwxrwx 1 root root 19 Sep 15 20:38 vmlinuz.old -> vmlinuz-huge-5.14.3

root@glennmcc-i7:/usr/src/linux-5.14.3#
 
  


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
Kernel Panic After Fresh Install Kk2 Slackware - Installation 15 12-20-2018 08:24 PM
[SOLVED] No device nodes with fresh kernel (was Kernel panic after fsck) roberto967 Slackware 4 12-04-2011 03:05 PM
kernel panic after fresh install of 10.2 mosca Slackware 15 09-25-2005 02:03 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM
Kernel Panic on fresh install CyberLord_7 Linux - General 9 09-24-2003 09:38 AM

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

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