Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic after kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 9:34 am    Post subject: Kernel panic after kernel update Reply with quote

Following rfx's suggestions in https://forums.gentoo.org/viewtopic-t-1164698-highlight-.html and also in Gentoo Wiki pages, I updated the kernel to new version linux-6.4.10-gentoo, after reboot, I got:
Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I can boot only the old version linux-6.1.31-gentoo in submenu "advanced options".
except manual configurations make && make modules_install && make install I tried also genkernel all, the result is the same.
Additionally I tried also with two different sources by using eselect kernel list && eselect kernel set 1/2.
Code:
[1]   linux-6.4.10-gentoo
[2]   linux-6.4.10-gentoo-dist *

Please help me!
The following information may be useful for solving the problem:
Code:
ls /lib/modules
6.1.31-gentoo-x86_64  6.4.10-gentoo-dist  6.4.10-gentoo-x86_64

Code:
ls /usr/src
linux  linux-6.1.31-gentoo  linux-6.4.10-gentoo  linux-6.4.10-gentoo-dist  linux-6.4.7-gentoo

and /boot/grub/grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 6aa58093-efdd-4743-aa16-69a6d71f0927
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6aa58093-efdd-4743-aa16-69a6d71f0927' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_gpt
   insmod fat
   search --no-floppy --fs-uuid --set=root A022-66D9
   echo   'Loading Linux 6.4.10-gentoo-x86_64 ...'
   linux   /vmlinuz-6.4.10-gentoo-x86_64 root=PARTUUID=c4ef49ff-6c51-4e74-bf3f-43f6a35319bc ro  loglevel=4
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.4.10-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.4.10-gentoo-x86_64-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.4.10-gentoo-x86_64 ...'
      linux   /vmlinuz-6.4.10-gentoo-x86_64 root=PARTUUID=c4ef49ff-6c51-4e74-bf3f-43f6a35319bc ro  loglevel=4
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.4.10-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.4.10-gentoo-x86_64-recovery-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.4.10-gentoo-x86_64 ...'
      linux   /vmlinuz-6.4.10-gentoo-x86_64 root=PARTUUID=c4ef49ff-6c51-4e74-bf3f-43f6a35319bc ro single
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-x86_64-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo-x86_64 ...'
      linux   /vmlinuz-6.1.31-gentoo-x86_64 root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro  loglevel=4
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo-x86_64.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-x86_64-recovery-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo-x86_64 ...'
      linux   /vmlinuz-6.1.31-gentoo-x86_64 root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo-x86_64.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo-x86_64.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-x86_64.old-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo-x86_64.old ...'
      linux   /vmlinuz-6.1.31-gentoo-x86_64.old root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro  loglevel=4
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo-x86_64.img.old
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo-x86_64.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-x86_64.old-recovery-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo-x86_64.old ...'
      linux   /vmlinuz-6.1.31-gentoo-x86_64.old root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo-x86_64.img.old
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo ...'
      linux   /vmlinuz-6.1.31-gentoo root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro  loglevel=4
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-recovery-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo ...'
      linux   /vmlinuz-6.1.31-gentoo root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo.old-advanced-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo.old ...'
      linux   /vmlinuz-6.1.31-gentoo.old root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro  loglevel=4
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo.old-recovery-6aa58093-efdd-4743-aa16-69a6d71f0927' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root A022-66D9
      echo   'Loading Linux 6.1.31-gentoo.old ...'
      linux   /vmlinuz-6.1.31-gentoo.old root=UUID=6aa58093-efdd-4743-aa16-69a6d71f0927 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.1.31-gentoo.img
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Void Linux (on /dev/nvme0n1p4)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
   insmod part_gpt
   insmod ext2
   search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
   linux /boot/vmlinuz-6.3.13_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
   initrd /boot/initramfs-6.3.13_1.img
}
submenu 'Advanced options for Void Linux (on /dev/nvme0n1p4)' $menuentry_id_option 'osprober-gnulinux-advanced-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
   menuentry 'GNU/Linux (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.3.13_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.3.13_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.3.13_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.3.13_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.3.13_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.3.13_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.3.13_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.3.13_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.3.13_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.3.13_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.3.13_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.45_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.45_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.45_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.1.45_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.45_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.45_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.45_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.1.45_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.43_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.43_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.43_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.1.43_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.43_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.43_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.43_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.1.43_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.31_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.31_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.31_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.1.31_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.31_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.31_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.31_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.1.31_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.29_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.29_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.29_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.1.29_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.29_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.29_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.29_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.1.29_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.27_1 (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.27_1--5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.27_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro
      initrd /boot/initramfs-6.1.27_1.img
   }
   menuentry 'GNU/Linux, with Linux 6.1.27_1 (recovery mode) (on /dev/nvme0n1p4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.27_1-root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single-5cf0f1d1-365d-4390-a68a-4d60f0216150' {
      insmod part_gpt
      insmod ext2
      search --no-floppy --fs-uuid --set=root 5cf0f1d1-365d-4390-a68a-4d60f0216150
      linux /boot/vmlinuz-6.1.27_1 root=UUID=5cf0f1d1-365d-4390-a68a-4d60f0216150 ro single
      initrd /boot/initramfs-6.1.27_1.img
   }
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
   fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

It is stransge that it has insmod ext2, it should be fat since I formated the /dev/nvme0n1p1 with vfat.
I tried also paste here the file /usr/src/linux/.config, it is too long. And I tried to use wgetpaste, failed. If necessary I will try alter again.
Back to top
View user's profile Send private message
sMueggli
l33t
l33t


Joined: 03 Sep 2022
Posts: 628

PostPosted: Wed Aug 16, 2023 2:34 pm    Post subject: Reply with quote

For your kernel 6.4.10 there is no initramfs loaded whereas for kernel 6.1.31 you have an initramfs (initramfs-6.1.31-gentoo-x86_64.img). I suggest that you create an initramfs also for the newest kernel and regenerate the Grub configuration.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23701

PostPosted: Wed Aug 16, 2023 2:39 pm    Post subject: Reply with quote

Your panic says that your kernel cannot access the relevant hardware. There is an FAQ about this in the forum: KC13: I just installed a new kernel and it won't boot. Possible causes include:
  • Your new kernel set the required driver as =n.
  • Your new kernel set the required driver as =m, but did not include the module in the initramfs.
  • Your new kernel set the required driver as =m and the module is in the initramfs, but as sMueggli notes, your initramfs is not used.
To understand more, it would help to see a pastebin of your kernel's .config, and to know what hardware hosts your root filesystem.
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 3:00 pm    Post subject: Reply with quote

Quote:
To understand more, it would help to see a pastebin of your kernel's .config, and to know what hardware hosts your root filesystem.

Thansk. Here is the .conf:
http://dpaste.com/4GL5KJ8NV
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 3:16 pm    Post subject: Reply with quote

sMueggli wrote:
For your kernel 6.4.10 there is no initramfs loaded whereas for kernel 6.1.31 you have an initramfs (initramfs-6.1.31-gentoo-x86_64.img). I suggest that you create an initramfs also for the newest kernel and regenerate the Grub configuration.

Thanks. But I indeed tried with the tools dracut, genkernel, as well as manual method make && make modules_install && make install to create the initramfs, and then run grub-mkconfig -o /boot/grub/grub.cfg to update the grub. All these are not sucessful. Can you give some more detailed suggestions?
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 3:35 pm    Post subject: Reply with quote

Hu wrote:
Your panic says that your kernel cannot access the relevant hardware. There is an FAQ about this in the forum: KC13: I just installed a new kernel and it won't boot. Possible causes include:
  • Your new kernel set the required driver as =n.
  • Your new kernel set the required driver as =m, but did not include the module in the initramfs.
  • Your new kernel set the required driver as =m and the module is in the initramfs, but as sMueggli notes, your initramfs is not used.
To understand more, it would help to see a pastebin of your kernel's .config, and to know what hardware hosts your root filesystem.

I have pasted the .conf. I hope you can find something wrong in it and give me some more concrete suggestions. I would appreciate your help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55459
Location: 56N 3W

PostPosted: Wed Aug 16, 2023 3:51 pm    Post subject: Reply with quote

sumati,

The PC Boot Process aims to give an overview of what happens during kernel startup and handing over to /sbin/init after root is mounted.
It also tries to explain why some kernel option need to be set in certain ways.

As well as the kernel .config file, we need
Code:
lspci -nnk
to see what hardware you have.

Code:
CONFIG_BLK_DEV_SD=m
CONFIG_SATA_AHCI=m
needs to be =y if you boot from SATA.

Code:
CONFIG_NVME_CORE=m
CONFIG_BLK_DEV_NVME=m
need to be =y to boot from NVMe.

There may well be more ... but we need your
Code:
lspci -nnk

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 4:07 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sumati,

The PC Boot Process aims to give an overview of what happens during kernel startup and handing over to /sbin/init after root is mounted.
It also tries to explain why some kernel option need to be set in certain ways.

As well as the kernel .config file, we need
Code:
lspci -nnk
to see what hardware you have.

Code:
CONFIG_BLK_DEV_SD=m
CONFIG_SATA_AHCI=m
needs to be =y if you boot from SATA.

Code:
CONFIG_NVME_CORE=m
CONFIG_BLK_DEV_NVME=m
need to be =y to boot from NVMe.

There may well be more ... but we need your
Code:
lspci -nnk

Many thanks for your insightful comments. Here is the .config file: http://dpaste.com/4GL5KJ8NV I will make the changes accordingly. And the output of lspci -nnk:
Code:
sumati@voidmati:~$ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers [8086:9b43] (rev 05)
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-S GT2 [UHD Graphics 630] [8086:9bc5] (rev 05)
   DeviceName: Onboard IGD
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: i915
   Kernel modules: i915
00:12.0 Signal processing controller [1180]: Intel Corporation Comet Lake PCH Thermal Controller [8086:06f9]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: intel_pch_thermal
   Kernel modules: intel_pch_thermal
00:14.0 USB controller [0c03]: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller [8086:06ed]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
00:14.2 RAM memory [0500]: Intel Corporation Comet Lake PCH Shared SRAM [8086:06ef]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
00:16.0 Communication controller [0780]: Intel Corporation Comet Lake HECI Controller [8086:06e0]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: mei_me
   Kernel modules: mei_me
00:16.3 Serial controller [0700]: Intel Corporation Comet Lake Keyboard and Text (KT) Redirection [8086:06e3]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: serial
00:17.0 SATA controller [0106]: Intel Corporation Comet Lake SATA AHCI Controller [8086:06d2]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: ahci
   Kernel modules: ahci
00:1b.0 PCI bridge [0604]: Intel Corporation Comet Lake PCI Express Root Port #21 [8086:06ac] (rev f0)
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Q470 Chipset LPC/eSPI Controller [8086:0687]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel, snd_sof_pci_intel_cnl
00:1f.4 SMBus [0c05]: Intel Corporation Comet Lake PCH SMBus Controller [8086:06a3]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller [8086:06a4]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: intel-spi
   Kernel modules: spi_intel_pci
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (11) I219-LM [8086:0d4c]
   DeviceName: Onboard Lan
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: e1000e
01:00.0 Non-Volatile memory controller [0108]: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Subsystem: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Kernel driver in use: nvme
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3162

PostPosted: Wed Aug 16, 2023 5:25 pm    Post subject: Reply with quote

sumati wrote:
sMueggli wrote:
For your kernel 6.4.10 there is no initramfs loaded whereas for kernel 6.1.31 you have an initramfs (initramfs-6.1.31-gentoo-x86_64.img). I suggest that you create an initramfs also for the newest kernel and regenerate the Grub configuration.

Thanks. But I indeed tried with the tools dracut, genkernel, as well as manual method make && make modules_install && make install to create the initramfs, and then run grub-mkconfig -o /boot/grub/grub.cfg to update the grub. All these are not sucessful. Can you give some more detailed suggestions?



The grub config file you've posted is clearly missing initrd line for your 6.4 kernel. Had you used dracut, grub-mkconfig would have detected the initramfs and included it in grub's configuration file. Post the contents of your /boot directory. If it's on a separate partition, do not forget to mount the partition first.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55459
Location: 56N 3W

PostPosted: Wed Aug 16, 2023 6:00 pm    Post subject: Reply with quote

sumati,

As we don't know if you booh from NVMe or ahci, you have both.
Code:
00:17.0 SATA controller [0106]: Intel Corporation Comet Lake SATA AHCI Controller [8086:06d2]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: ahci
   Kernel modules: ahci
01:00.0 Non-Volatile memory controller [0108]: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Subsystem: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Kernel driver in use: nvme   

You need one of the changes above but we don't know which - so doing both is safe.

All of your filesystem drivers are set as modules. The one required for the root filesystem must be set to =y.
I didn't as about that. The kernel cannot load modules until root is mounted.

Code:
CONFIG_DRM_I915=m
is a good choice. It will load firmware from /lib/firmware.

Code:
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
one of those will be used to drive the console until I915 loads.

Everything else looks good enough to get you booted ... or as others have said, use an initrd, so that the kernel can load modules before the real root is mounted.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 8:01 pm    Post subject: Reply with quote

logrusx wrote:
sumati wrote:
sMueggli wrote:
For your kernel 6.4.10 there is no initramfs loaded whereas for kernel 6.1.31 you have an initramfs (initramfs-6.1.31-gentoo-x86_64.img). I suggest that you create an initramfs also for the newest kernel and regenerate the Grub configuration.

Thanks. But I indeed tried with the tools dracut, genkernel, as well as manual method make && make modules_install && make install to create the initramfs, and then run grub-mkconfig -o /boot/grub/grub.cfg to update the grub. All these are not sucessful. Can you give some more detailed suggestions?

The grub config file you've posted is clearly missing initrd line for your 6.4 kernel. Had you used dracut, grub-mkconfig would have detected the initramfs and included it in grub's configuration file. Post the contents of your /boot directory. If it's on a separate partition, do not forget to mount the partition first.
Best Regards,
Georgi

many thanks! This must be an important point. I have a separated partition, i.e., /dev/nvme0n1p1, formatted with vfat and mount on /boot. And I found initramfs-6.4.10-gentoo-x86_64.img in the /boot folder, how can I include it in the grub.cfg? grub-mkconfig did not seem work. The output of ls -a /boot is:
Code:
System.map-6.4.10-gentoo-x86_64.old  config-6.1.38-gentoo-dist      efi                                   initramfs-6.4.10-gentoo-x86_64.img.old  vmlinuz-6.4.10-gentoo-dist
..    System.map-6.4.4-gentoo-dist         config-6.4.10-gentoo-dist      grub                                  initramfs-6.4.4-gentoo-dist.img         vmlinuz-6.4.10-gentoo-dist.old
System.map-6.1.31-gentoo-dist      System.map-6.4.6-gentoo-dist         config-6.4.10-gentoo-dist.old  initramfs-6.1.31-gentoo-dist.img      initramfs-6.4.6-gentoo-dist.img         vmlinuz-6.4.10-gentoo-x86_64
System.map-6.1.31-gentoo-x86_64    System.map-6.4.7-gentoo-dist         config-6.4.10-gentoo-x86_64    initramfs-6.1.31-gentoo-x86_64.img    initramfs-6.4.7-gentoo-dist.img         vmlinuz-6.4.10-gentoo-x86_64.old
System.map-6.1.38-gentoo-dist      System.map-6.4.8-gentoo-dist         config-6.4.4-gentoo-dist       initramfs-6.1.38-gentoo-dist.img      initramfs-6.4.8-gentoo-dist.img         vmlinuz-6.4.4-gentoo-dist
System.map-6.4.10-gentoo-dist      amd-uc.img                           config-6.4.6-gentoo-dist       initramfs-6.4.10-gentoo-dist.img      vmlinuz-6.1.31-gentoo-dist              vmlinuz-6.4.6-gentoo-dist
System.map-6.4.10-gentoo-dist.old  config-6.1.31-gentoo-dist            config-6.4.7-gentoo-dist       initramfs-6.4.10-gentoo-dist.img.old  vmlinuz-6.1.31-gentoo-x86_64            vmlinuz-6.4.7-gentoo-dist
System.map-6.4.10-gentoo-x86_64    config-6.1.31-gentoo-x86_64          config-6.4.8-gentoo-dist       initramfs-6.4.10-gentoo-x86_64.img    vmlinuz-6.1.38-gentoo-dist              vmlinuz-6.4.8-gentoo-dist
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Wed Aug 16, 2023 8:07 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sumati,

As we don't know if you booh from NVMe or ahci, you have both.
Code:
00:17.0 SATA controller [0106]: Intel Corporation Comet Lake SATA AHCI Controller [8086:06d2]
   Subsystem: Hewlett-Packard Company Device [103c:8712]
   Kernel driver in use: ahci
   Kernel modules: ahci
01:00.0 Non-Volatile memory controller [0108]: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Subsystem: KIOXIA Corporation NVMe SSD Controller BG4 (DRAM-less) [1e0f:0001]
   Kernel driver in use: nvme   

You need one of the changes above but we don't know which - so doing both is safe.

All of your filesystem drivers are set as modules. The one required for the root filesystem must be set to =y.
I didn't as about that. The kernel cannot load modules until root is mounted.

Code:
CONFIG_DRM_I915=m
is a good choice. It will load firmware from /lib/firmware.

Code:
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
one of those will be used to drive the console until I915 loads.

Everything else looks good enough to get you booted ... or as others have said, use an initrd, so that the kernel can load modules before the real root is mounted.

thanks for the clear explanation. I will change the configuration.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55459
Location: 56N 3W

PostPosted: Wed Aug 16, 2023 8:13 pm    Post subject: Reply with quote

sumati,

Move your initrd to the right place then remake the grub.cfg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3162

PostPosted: Thu Aug 17, 2023 5:20 am    Post subject: Reply with quote

sumati wrote:

many thanks! This must be an important point. I have a separated partition, i.e., /dev/nvme0n1p1, formatted with vfat and mount on /boot. And I found initramfs-6.4.10-gentoo-x86_64.img in the /boot folder, how can I include it in the grub.cfg?



Code:
grub-mkconfig -o /boot/grub/grub.cfg


Be careful not to install kernels in /boot (or run the above command for that matter) without the partition being mounted.

Best Regards,
Georgi
Back to top
View user's profile Send private message
sumati
Apprentice
Apprentice


Joined: 10 Nov 2019
Posts: 187

PostPosted: Thu Aug 17, 2023 8:51 am    Post subject: Reply with quote

Thanks so much for all of you who gave helps! Your excellent idea and really helpful suggestions solved my problem. My Gentoo system is now successfully updated to the new version!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum