Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
5 Series/3400 Series Chipset HECI Controller: Problem
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 3:52 pm    Post subject: Reply with quote

here is the output:
Code:

# ls -l /boot
total 88825
-rw-r--r-- 1 root root   145268 Nov  3 12:11 config-4.4.26-gentoo
drwxr-xr-x 6 root root     1024 Oct 17 14:40 grub
-rw-r--r-- 1 root root 32282072 Oct 18 01:34 initramfs-genkernel-x86_64-4.4.21-gentoo
-rw-r--r-- 1 root root 32002572 Nov  3 11:43 initramfs-genkernel-x86_64-4.4.26-gentoo
-rw-r--r-- 1 root root  4950944 Oct 18 01:00 kernel-genkernel-x86_64-4.4.21-gentoo
-rw-r--r-- 1 root root  5680656 Nov  3 10:14 kernel-genkernel-x86_64-4.4.26-gentoo
drwx------ 2 root root    12288 Oct 10 19:06 lost+found
-rw-r--r-- 1 root root  3414571 Nov  3 12:11 System.map-4.4.26-gentoo
-rw-r--r-- 1 root root  3002417 Oct 18 01:00 System.map-genkernel-x86_64-4.4.21-gentoo
-rw-r--r-- 1 root root  3414571 Nov  3 10:14 System.map-genkernel-x86_64-4.4.26-gentoo
-rw-r--r-- 1 root root  5680656 Nov  3 12:11 vmlinuz-4.4.26-gentoo

I did use the genkernel when inticially installing the system.

My plan was then to move backwards through the kernel unchecking what was not needed.


Last edited by kkinkouu on Sat Nov 05, 2016 4:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 3:54 pm    Post subject: Reply with quote

Thanks, will be more attentive next time :-)
Quote:

You can't just follow that wiki page without understanding the steps as some of it is already done and some of it isn't.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Sat Nov 05, 2016 4:15 pm    Post subject: Reply with quote

kkinkouu wrote:
thanks for the tip:
Quote:

Tip:
I do not trust grub-mkconfig,

Why is it, that you don't trust it? and should i use bzimage or is this just your preference.

It is my preference, you can name your kernels whatever you like. I dislike the whole Grub2 and use other bootloaders, Lilo, syslinux, Grub legacy, rEFInd for UEFI setups.
Back to top
View user's profile Send private message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 4:16 pm    Post subject: Reply with quote

OK cool, i'll keep that in mind 8)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 05, 2016 4:26 pm    Post subject: Reply with quote

kkinkouu,

You have a matching set
Code:
Nov  3 10:14 kernel-genkernel-x86_64-4.4.26-gentoo
Nov  3 11:43 initramfs-genkernel-x86_64-4.4.26-gentoo

so grub-mkconfig should find them.

The original set Oct 18 01:00 kernel-genkernel-x86_64-4.4.21-gentoo is still there too.

Run grub-mkconfig and reboot. You should have a choice of two kernels.
The new one may not be the default, so after the reboot, run
Code:
uname -a

It will tell the version and build time of the kernel in use.

Once you are sure you are running the new kernel, test your bluetooth.

I'm more cynical than Buffoon, I don't trust grub2.
_________________
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
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 4:42 pm    Post subject: Reply with quote

I ran:
Code:

# grub-mkconfig
Generating grub configuration file ...
#
# 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="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_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
else
  search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
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=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 ###
Found linux image: /boot/vmlinuz-4.4.26-gentoo
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8491cd66-8259-43c2-836f-87d2b5172e10' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt4'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
   else
     search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
   fi
   echo   'Loading Linux 4.4.26-gentoo ...'
   linux   /boot/vmlinuz-4.4.26-gentoo root=/dev/sda4 ro 
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8491cd66-8259-43c2-836f-87d2b5172e10' {
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.26-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-gentoo-advanced-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.26-gentoo ...'
      linux   /boot/vmlinuz-4.4.26-gentoo root=/dev/sda4 ro 
   }
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.26-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-gentoo-recovery-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.26-gentoo ...'
      linux   /boot/vmlinuz-4.4.26-gentoo root=/dev/sda4 ro single
   }
Found linux image: /boot/vmlinuz-4.4.26-gentoo.old
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.26-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-gentoo.old-advanced-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.26-gentoo.old ...'
      linux   /boot/vmlinuz-4.4.26-gentoo.old root=/dev/sda4 ro 
   }
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.26-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-gentoo.old-recovery-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.26-gentoo.old ...'
      linux   /boot/vmlinuz-4.4.26-gentoo.old root=/dev/sda4 ro single
   }
Found linux image: /boot/vmlinuz-4.4.21-gentoo
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.21-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.21-gentoo-advanced-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.21-gentoo ...'
      linux   /boot/vmlinuz-4.4.21-gentoo root=/dev/sda4 ro 
   }
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.21-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.21-gentoo-recovery-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.21-gentoo ...'
      linux   /boot/vmlinuz-4.4.21-gentoo root=/dev/sda4 ro single
   }
Found linux image: /boot/vmlinuz-4.4.21-gentoo.old
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.21-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.21-gentoo.old-advanced-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.21-gentoo.old ...'
      linux   /boot/vmlinuz-4.4.21-gentoo.old root=/dev/sda4 ro 
   }
   menuentry 'Gentoo GNU/Linux, with Linux 4.4.21-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.21-gentoo.old-recovery-8491cd66-8259-43c2-836f-87d2b5172e10' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt4'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  8491cd66-8259-43c2-836f-87d2b5172e10
      else
        search --no-floppy --fs-uuid --set=root 8491cd66-8259-43c2-836f-87d2b5172e10
      fi
      echo   'Loading Linux 4.4.21-gentoo.old ...'
      linux   /boot/vmlinuz-4.4.21-gentoo.old root=/dev/sda4 ro single
   }
}

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

The .26 kernel seems to be present and found.

I then rebooted the system and when moving in to Grub Advanced; I'm only presented with .21, .26 is no where to be found?

Shell i go through the following article before doing so? https://wiki.gentoo.org/wiki/Kernel/Upgrade

Thanks! [/quote]
Back to top
View user's profile Send private message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 4:46 pm    Post subject: Reply with quote

Quote:

I'm more cynical than Buffoon, I don't trust grub2.

Should i be worried about grub2 then, and if so, what would you recommend? :)
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Sat Nov 05, 2016 4:52 pm    Post subject: Reply with quote

See all that cruft you posted, still wondering why I wouldn't use grub-mkconfig?
You can use even Grub2, with a small handcrafted grub.cfg. And never run that horrible grub-mkconfig again. :roll:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 05, 2016 5:01 pm    Post subject: Reply with quote

kkinkouu,

Don't get hung up about grub2. Trust but verify.
Use grub-mkconfig but when you reboot, verify that it did what you expected.

Did you have /boot mounted?
Did you redirect the output to a file?

That grub.cfg looks broken. I don't see any lines to load the initramfs-genkernel-x86_64-4.4.26-gentoo
_________________
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
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 5:15 pm    Post subject: Reply with quote

Quote:

Did you have /boot mounted?
Did you redirect the output to a file?

I mounted /boot and then ran:
Code:

grub-mkconfig

I did not redirect the output file or was not given an option to do so; please elaborate.

Then rebooted the system and .21 is still present and .26 is not.

On login, i then ran:
Code:

# uname -a
Linux gen-traibr 4.4.21-gentoo #1 SMP Tue Oct 18 00:59:51 BST 2016 x86_64 Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz GenuineIntel GNU/Linux

Should reinstall grub and then perform the above again? seeing as though you think the grub is corrupted?
Back to top
View user's profile Send private message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 5:21 pm    Post subject: Reply with quote

Quote:

You can use even Grub2, with a small handcrafted grub.cfg. And never run that horrible grub-mkconfig again. :roll:

Thanks for the link, will differently look into this when ive resolved this initial problem first :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 05, 2016 5:37 pm    Post subject: Reply with quote

kkinkouu,

grub-mkconfig, like a lot of linux tool outputs to stdout (standard output) by default. stdout is normally the console.
This is a good thing because stdout can be piped to the input of other commands or redirected to a file.

Running grub-mkconfig shows the output on the screen but does not save it anywhere.

The command you quoted earlier was
Code:
grub-mkconfig -o /boot/grub/grub.cfg

Warning: I think running that will render your system unbootable as the grub.cfg you showed did not load the initramfs.
You should save /boot/grub/grub.cfg before you test that and have a boot USB/CD to hand in case I'm correct.

Read
Code:
man grub-mkconfig
to see what the -o does.
_________________
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
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 5:45 pm    Post subject: Reply with quote

i have run the following:
Code:

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-genkernel-x86_64-4.4.26-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-4.4.26-gentoo
Found linux image: /boot/kernel-genkernel-x86_64-4.4.21-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-4.4.21-gentoo
Found linux image: /boot/vmlinuz-4.4.26-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-4.4.26-gentoo
done

I have a usb boot disk, so if anything happens; I guess, i'll have to remove grub via LiveCD and reinstall it, if worse comes to worse!

fingers crossed! won't be a minute and if haven't replied in that time, you know why lol
Back to top
View user's profile Send private message
kkinkouu
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2015
Posts: 95
Location: United Kingdom

PostPosted: Sat Nov 05, 2016 6:00 pm    Post subject: Reply with quote

Back! .26 had numerous service failures, but managed to boot to command line.... so not to bad; so the .config file associated to .26 is pants, and not configured correctly.

Moved back to .21 and everything is back to normal.

I'll have to go through https://wiki.gentoo.org/wiki/Kernel/Upgrade article

will get back to you guys asap with my results

Again thanks for the help guys!
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
Goto page Previous  1, 2
Page 2 of 2

 
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