Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
stuck in grub with kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 368

PostPosted: Sat Dec 22, 2018 4:40 pm    Post subject: stuck in grub with kernel update Reply with quote

I have a BIOS based PC that I boot using grub2. I booted (and still do) gentoo-sources-4.9.140 without initrd without problems, so everything that is required (ext2, console) is built into the kernel.
I am now trying to update to gentoo-sources 4.14.83. The method I use is:

Code:
cd /usr/src/linux-4.14.83
zcat /proc/configs.gz > .config
make oldconfig # simply accept all default values
make clean && make && make modules_install && make install

# copy the previous grub menuitem exactly and only change the kernel version
# reboot and choose the new menuitem in grub.


This method works well. I used it to go from 4.9.6 -> 4.9.140. However, when I try to use it with 4.14.83, I see grub saying
'Loading Linux 4.14.83-gentoo ...'

And on the next line, there is just a non-blinking cursor.
No error message, no indication if grub attempts to load the kernel, or if the kernel for some reason refuses to boot. I have diffed the configs to see if anything critical is required in the new kernel, but could not see anything.
My suspicion is that somehow grub has an error but refuses to show it.
1. How could I get grub verbose to prove it at least attempts to load the kernel ?
2. if it is not grub, what could be required to get the new kernel to run ?
here is the .config for the running kernel 4.9.140: https://pastebin.com/vQitznYF
and of the problematic kernel: 4.14.83: https://pastebin.com/fMC5qKcN
(and for convenience the diff of both: https://pastebin.com/knL8KdJs[/quote]


Below is my grub.cfg
Code:
### 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="1"
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='hd2,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
else
  search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
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=nl_BE
  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 'GNU/Linux 4.9.6' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        else
          search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        fi
        echo    'Loading Linux 4.9.6-gentoo-r1 ...'
        linux   /boot/vmlinuz-4.9.6-gentoo-r1 root=/dev/sda5 ro
}
menuentry 'GNU/Linux 4.9.140' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.140' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        else
          search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        fi
        echo    'Loading Linux 4.9.140-gentoo ...'
[b]        linux   /boot/vmlinuz-4.9.140-gentoo root=/dev/sda5 ro[/b]
}
menuentry 'GNU/Linux 4.14.83' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2336ffcf-66f1-4e39-a9e7-c1ea3e5afb16' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        else
          search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        fi
        echo    'Loading Linux 4.14.83-gentoo ...'
[b]        linux   /boot/vmlinuz-4.14.83-gentoo root=/dev/sda5 ro[/b]
}


and ls -l /boot showing that the kernel is present

Code:
-rw-r--r-- 1 root root 3016640 15 sep  2013 bzImage
-rw-r--r-- 1 root root   86077  1 mrt  2017 config-3.12.21
-rw-r--r-- 1 root root  104996 21 dec 23:47 config-4.14.83-gentoo
-rw-r--r-- 1 root root  114812 21 dec 22:29 config-4.14.83-gentoo-close-to-4.9.140
-rw-r--r-- 1 root root  114812 20 dec 19:35 config-4.14.83-gentoo.old
-rw-r--r-- 1 root root  100269 20 dec 13:07 config-4.9.140-gentoo
-rw-r--r-- 1 root root   83600 15 dec 20:14 config-4.9.6-gentoo-r1
-rw-r--r-- 1 root root  100617 20 dec 15:08 config-4.9.6-gentoo-r1-new
drwxr-xr-x 6 root root    4096 21 dec 22:29 grub
-rw-r--r-- 1 root root 1810070 21 dec 23:47 System.map-4.14.83-gentoo
-rw-r--r-- 1 root root 1830685 20 dec 19:35 System.map-4.14.83-gentoo.old
-rw-r--r-- 1 root root 1714026 20 dec 13:07 System.map-4.9.140-gentoo
-rw-r--r-- 1 root root 3569408 13 okt  2013 vmlinuz-3.10.7-gentoo
-rw-r--r-- 1 root root 2978096 15 sep  2013 vmlinuz-3.10.7-gentoo.old
-rw-r--r-- 1 root root 3665872  3 jun  2014 vmlinuz-3.10.7-gentoo-r1
-rw-r--r-- 1 root root 3685808  1 jul  2014 vmlinuz-3.12.21-gentoo-r1
-rw-r--r-- 1 root root 4134224  8 feb  2016 vmlinuz-4.1.12-gentoo
[b]-rw-r--r-- 1 root root 5123504 21 dec 23:47 vmlinuz-4.14.83-gentoo[/b]
-rw-r--r-- 1 root root 5167568 20 dec 19:35 vmlinuz-4.14.83-gentoo.old
[b]-rw-r--r-- 1 root root 4327504 20 dec 13:07 vmlinuz-4.9.140-gentoo[/b]
-rw-r--r-- 1 root root 4284000  8 mrt  2017 vmlinuz-4.9.6-gentoo-r1
Back to top
View user's profile Send private message
ribx
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 219
Location: germany

PostPosted: Mon Jan 07, 2019 12:43 am    Post subject: Reply with quote

I would try to install the latest grub version to the hard disk and recreate the grub config with the latest grub-mkconfig command.

Code:

 # grub-install /dev/sda
 # grub-mkconfig -o /boot/grub/grub.cfg


If that does not help, try to remove all grafik related stuff from the kernel and boot with that one, if it works, readd the stuff until it breaks.
_________________
The adopt an unanswered post initiative
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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