kernel panic after make install of fresh kernel compile
by glennmcc from LinuxQuestions.org on (#5PK44)
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
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