Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic after install of uvesafb [SOLVED]
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
truthSEeker71
n00b
n00b


Joined: 15 Jun 2015
Posts: 32

PostPosted: Tue May 10, 2016 6:18 am    Post subject: Kernel panic after install of uvesafb [SOLVED] Reply with quote

Hello,
I have installed Gentoo on VirtualBox 5.0.16. After successful procedure I wanted use Gentoo mainly through CLI so I followed this guide to configure CLI in higher resolution:
https://wiki.gentoo.org/wiki/Uvesafb
Now when kernel is booting I can see higher resolution (1024x768) but I get kernel panic error:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0,0)
I didn't any changes to the kernel beside changes described in guide about uvesafb so here it's my kernel config:
http://pastebin.com/dFAJAuZN
I wasn't messing with IDE controller so this is very strange for me as this kernel panik looks like my kernel now don't see partitions. Please exeperienced users for help. :)


Last edited by truthSEeker71 on Wed May 11, 2016 11:53 am; edited 1 time in total
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7695
Location: Pelotas, BR

PostPosted: Tue May 10, 2016 12:46 pm    Post subject: Reply with quote

This looks like a GRUB snaffu. I suppose you might have changed something in the config file for the new uvesafb. What does your config looks like?

You can get it by pressing shift during boot (as far as I remember, it's been sometime) or booting from a livecd.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
truthSEeker71
n00b
n00b


Joined: 15 Jun 2015
Posts: 32

PostPosted: Wed May 11, 2016 6:21 am    Post subject: Reply with quote

I also thought that problem may be caused by grub since during boot I can see communication:
VFS: Cannot open root device
Please append a correct "root=" boot option
And after that kernel lists my all partitions.
Now I copied using livecd file /boot/grub/grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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="0"
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_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  b176a951-1f86-4891-b997-80ec7c3e48b0
else
  search --no-floppy --fs-uuid --set=root b176a951-1f86-4891-b997-80ec7c3e48b0
fi
    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=pl_PL
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=1
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-b176a951-1f86-4891-b997-80ec7c3e48b0' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root  0bace208-4244-45a8-b1d4-8808ca2a60d1
   else
     search --no-floppy --fs-uuid --set=root 0bace208-4244-45a8-b1d4-8808ca2a60d1
   fi
   echo   'Wczytywanie systemu Linux 4.4.6-gentoo...'
   linux   /vmlinuz-4.4.6-gentoo root=/dev/sda4 ro  linux video=uvesafb:1024x768-32,mtrr:3,ywrap
   echo   'Wczytywanie poczÄ…tkowego dysku RAM...'
   initrd   /initramfs-genkernel-x86_64-4.4.6-gentoo
}
submenu 'Opcje zaawansowane dla systemu Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b176a951-1f86-4891-b997-80ec7c3e48b0' {
   menuentry 'Gentoo GNU/Linux, za pomocÄ… systemu Linux 4.4.6-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo-advanced-b176a951-1f86-4891-b997-80ec7c3e48b0' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root  0bace208-4244-45a8-b1d4-8808ca2a60d1
      else
        search --no-floppy --fs-uuid --set=root 0bace208-4244-45a8-b1d4-8808ca2a60d1
      fi
      echo   'Wczytywanie systemu Linux 4.4.6-gentoo...'
      linux   /vmlinuz-4.4.6-gentoo root=/dev/sda4 ro  linux video=uvesafb:1024x768-32,mtrr:3,ywrap
      echo   'Wczytywanie poczÄ…tkowego dysku RAM...'
      initrd   /initramfs-genkernel-x86_64-4.4.6-gentoo
   }
   menuentry 'Gentoo GNU/Linux, za pomocÄ… systemu Linux 4.4.6-gentoo (tryb ratunkowy)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo-recovery-b176a951-1f86-4891-b997-80ec7c3e48b0' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root  0bace208-4244-45a8-b1d4-8808ca2a60d1
      else
        search --no-floppy --fs-uuid --set=root 0bace208-4244-45a8-b1d4-8808ca2a60d1
      fi
      echo   'Wczytywanie systemu Linux 4.4.6-gentoo...'
      linux   /vmlinuz-4.4.6-gentoo root=/dev/sda4 ro single
      echo   'Wczytywanie poczÄ…tkowego dysku RAM...'
      initrd   /initramfs-genkernel-x86_64-4.4.6-gentoo
   }
   menuentry 'Gentoo GNU/Linux, za pomocÄ… systemu Linux 4.4.6-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo.old-advanced-b176a951-1f86-4891-b997-80ec7c3e48b0' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root  0bace208-4244-45a8-b1d4-8808ca2a60d1
      else
        search --no-floppy --fs-uuid --set=root 0bace208-4244-45a8-b1d4-8808ca2a60d1
      fi
      echo   'Wczytywanie systemu Linux 4.4.6-gentoo.old...'
      linux   /vmlinuz-4.4.6-gentoo.old root=/dev/sda4 ro  linux video=uvesafb:1024x768-32,mtrr:3,ywrap
      echo   'Wczytywanie poczÄ…tkowego dysku RAM...'
      initrd   /initramfs-genkernel-x86_64-4.4.6-gentoo
   }
   menuentry 'Gentoo GNU/Linux, za pomocÄ… systemu Linux 4.4.6-gentoo.old (tryb ratunkowy)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo.old-recovery-b176a951-1f86-4891-b997-80ec7c3e48b0' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root  0bace208-4244-45a8-b1d4-8808ca2a60d1
      else
        search --no-floppy --fs-uuid --set=root 0bace208-4244-45a8-b1d4-8808ca2a60d1
      fi
      echo   'Wczytywanie systemu Linux 4.4.6-gentoo.old...'
      linux   /vmlinuz-4.4.6-gentoo.old root=/dev/sda4 ro single
      echo   'Wczytywanie poczÄ…tkowego dysku RAM...'
      initrd   /initramfs-genkernel-x86_64-4.4.6-gentoo
   }
}

### 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 ###
### END /etc/grub.d/30_os-prober ###

### 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 ###

and file /etc/default/grub
Code:
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

# Default menu entry
GRUB_DEFAULT=0

# Boot the default entry this many seconds after the menu is displayed
GRUB_TIMEOUT=1
#GRUB_TIMEOUT_STYLE=menu

# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"

# Append parameters to the linux kernel command line for non-recovery entries
GRUB_CMDLINE_LINUX_DEFAULT="linux video=uvesafb:1024x768-32,mtrr:3,ywrap"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y

# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1"

I doubt that problem is with IDE controller because as I mentioned earlier kernel list all my partitions. If kernel panic is caused by invalid "root" option in grub I have to say by now I don't know how to inform kernel which "root" option is correct one for proper booting.
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7695
Location: Pelotas, BR

PostPosted: Wed May 11, 2016 10:47 am    Post subject: Reply with quote

I am not seeing anything obviously wrong... have you tried to update both your initramfs and grub?

Code:

update-initramfs -u 
update-grub2 


You can do that in a chroot from a livecd or from a root shell in grub, as far as I remember.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Wed May 11, 2016 11:07 am    Post subject: Reply with quote

You sure VBox is set up to offer IDE controller to the virtual machine? Your error looks like your kernel is not able to talk/find the controller at all.
Back to top
View user's profile Send private message
truthSEeker71
n00b
n00b


Joined: 15 Jun 2015
Posts: 32

PostPosted: Wed May 11, 2016 11:50 am    Post subject: Reply with quote

VBox is set up fine. :)
Commands
Code:
update-initramfs -u
update-grub2

wasn't available from livecd but I generated initramfs with genkernel once more and also installed grub once more with making grub config once more. And now uvesafb is working with 1024x768 resolution and kernel boots properly. The only strange thing for me now is I don't know why now it's working. Although problem seems to be solved.
Thank you for help. :)
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7695
Location: Pelotas, BR

PostPosted: Wed May 11, 2016 11:58 am    Post subject: Reply with quote

truthSEeker71 wrote:
VBox is set up fine. :)
Commands
Code:
update-initramfs -u
update-grub2

wasn't available from livecd but I generated initramfs with genkernel once more and also installed grub once more with making grub config once more. And now uvesafb is working with 1024x768 resolution and kernel boots properly. The only strange thing for me now is I don't know why now it's working. Although problem seems to be solved.
Thank you for help. :)


Probably something with either the former initramfs or grub installation after the new kernel was built.

Nice that you got it fixed though.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
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