Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble Upgrading Kernel (first upgrade) [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
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Sat Oct 31, 2015 8:44 am    Post subject: Trouble Upgrading Kernel (first upgrade) [Solved] Reply with quote

Hi guys,

It's my first time upgrading my kernel, trying to upgrade to the new 4.0.9 version. I've been following the wiki but it seems I've hit a wall, or something I've missed.
Here are the steps I took..

Code:

1. emerged the new version
2. cd /usr/src/linux
3. cp .config ~/kernel-config`uname -r`
4. change symlink with eselect
5. cp /usr/src/linux-3.14.14-gentoo/.config /usr/src/linux/
6. make olddefconfig
7. make -> make modules_install -> make install
8. grub2-mkconfig -o /boot/grub/grub.cfg
9. reboot


here is the output of #8
Code:
Generating grub configuration file ...
Found linux image: /boot/kernel-genkernel-x86_64-4.0.5-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-4.0.5-gentoo
Found linux image: /boot/vmlinuz-4.0.9-gentoo
done


It just rebooted back into kernel 4.0.5. So I thought I'd just come and check I was moving in the right direction before deleting 4.0.5 and --depclean'ing it.


Last edited by HungGarTiger on Sat Nov 14, 2015 11:16 pm; edited 1 time in total
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 Oct 31, 2015 10:48 am    Post subject: Reply with quote

I do not know what is wrong (I do everything by hand to keep it simple), but this is odd
Code:
5. cp /usr/src/linux-3.14.14-gentoo/.config /usr/src/linux/

I thought you were running 4.0.5?
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Sat Oct 31, 2015 11:04 am    Post subject: Reply with quote

Buffoon wrote:
I do not know what is wrong (I do everything by hand to keep it simple), but this is odd
Code:
5. cp /usr/src/linux-3.14.14-gentoo/.config /usr/src/linux/

I thought you were running 4.0.5?


Yeah I am, just copied that directly from the guide is all.
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Sat Oct 31, 2015 7:03 pm    Post subject: Reply with quote

What about your initramfs? Do you still need one? It looks like you might be moving from Genkernel to a custom kernel, or no?

Depending on your configuration Grub(2) will automatically select an entry with a delay of something like 0-10 seconds. If you have this delay hit ESC or TAB (I forget which one exactly but you can try both) and this will allow you to select a kernel. See if your 4.0.9 kernel actually boots but just isn't being selected by Grub by default. If this is the case then you can change it -- perhaps with:

Quote:

Setting configuration parameters

The following variables in /etc/default/grub are the most common ones to set to control how GRUB2 will function:

GRUB_DEFAULT Defines the default menu entry selected on boot. May be a numeric index, a menu title, or "saved". Defaults to first detected entry.

GRUB_TIMEOUT Delay (in seconds) before booting default menu entry. Set to 0 to boot immediately or -1 to wait indefinitely.



https://wiki.gentoo.org/wiki/GRUB2

So it looks like maybe the first detected entry for whatever reason is your older kernel and maybe you just need to change that?
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 319
Location: 39.885° N. -88.913° W.

PostPosted: Sun Nov 01, 2015 1:57 am    Post subject: Reply with quote

HungGarTiger

I think that you needed this command between number 7 and 8

Code:
cp arch/x86_64/boot/bzImage /boot/kernel-4.0.9-gentoo


The arc/x86_64 might be different on your computer though.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Sun Nov 01, 2015 2:15 am    Post subject: Reply with quote

tryn wrote:
HungGarTiger

I think that you needed this command between number 7 and 8

Code:
cp arch/x86_64/boot/bzImage /boot/kernel-4.0.9-gentoo


The arc/x86_64 might be different on your computer though.

Nah, this is if you want everything to go as you want. There is fancy make install ... I wonder if this make install actually verifies whether /boot is mounted or not.
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 319
Location: 39.885° N. -88.913° W.

PostPosted: Sun Nov 01, 2015 3:07 am    Post subject: Reply with quote

Buffoon

I did have that in mind also. The thing about /boot being mounted that is.

But did hope that this wasn't the case.
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Tue Nov 03, 2015 12:39 am    Post subject: Reply with quote

davidm wrote:
What about your initramfs? Do you still need one? It looks like you might be moving from Genkernel to a custom kernel, or no?

Depending on your configuration Grub(2) will automatically select an entry with a delay of something like 0-10 seconds. If you have this delay hit ESC or TAB (I forget which one exactly but you can try both) and this will allow you to select a kernel. See if your 4.0.9 kernel actually boots but just isn't being selected by Grub by default. If this is the case then you can change it -- perhaps with:

Quote:

Setting configuration parameters

The following variables in /etc/default/grub are the most common ones to set to control how GRUB2 will function:

GRUB_DEFAULT Defines the default menu entry selected on boot. May be a numeric index, a menu title, or "saved". Defaults to first detected entry.

GRUB_TIMEOUT Delay (in seconds) before booting default menu entry. Set to 0 to boot immediately or -1 to wait indefinitely.



https://wiki.gentoo.org/wiki/GRUB2

So it looks like maybe the first detected entry for whatever reason is your older kernel and maybe you just need to change that?


I'm not consciously moving to a custom kernel...

I tried selecting the option for the new kernel and it just panics. Not sure what my next move should be to be honest. :?
Back to top
View user's profile Send private message
*_-=Banana=-_*
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 202
Location: Germany

PostPosted: Tue Nov 03, 2015 8:15 am    Post subject: Reply with quote

Any error messages would be helpful. From dmesg, kernel or even /var/log/everything.

use
Code:
wgetpaste -t FILENAME
and then copy the URL in your reply.
_________________
My personal space
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Sat Nov 14, 2015 11:16 pm    Post subject: Reply with quote

Problem solved, I just had the run
Code:
genkernel all
in order to build initramfs and reboot.
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