Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to setup new configured kernel on grub?
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
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Feb 14, 2014 4:41 pm    Post subject: How to setup new configured kernel on grub? Reply with quote

I finally download the latest Linux Kernel and I configure it. But how to boot from it?
I make emerge-sources
I eselect kernel list and set it to the newest kernel
I go to /usr/src/linux
I run make xconfig
I compile kernel (make, make modules_install, make install)
I cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/kernel-3.13.2-gentoo
I rebooted but still boot the previous generic kernel
How to make it boot my new configured kernel?
_________________
Compile The Universe
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Feb 14, 2014 4:58 pm    Post subject: Reply with quote

Which bootloader do you use?

Maybe you just forgot to configure it?

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Feb 14, 2014 5:30 pm    Post subject: Reply with quote

I use grub2. As far as I remember I run this:
Installing GRUB2
Code:

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

Grub configure my genkernel but now I want to change to newone and remove the old kernel when I will be sure that my new kernel work fine.
_________________
Compile The Universe
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Feb 14, 2014 5:45 pm    Post subject: Reply with quote

You need to:
Code:
mount /boot
grub2-mkconfig -o /boot/grub/grub.cfg


If you are afraid that this will destroy your previous config backup /boot/grub/grub.cfg first.
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Feb 14, 2014 5:56 pm    Post subject: Reply with quote

Ok. I made it and found the new kernel. But still boot the old.
Remove the old kernel from /boot and run again the command or this is a bad idea?
On my /boot now I have this:
Code:
ember@gentoo /boot $ ls
config-3.13.2-gentoo
grub
initramfs-genkernel-x86_64-3.10.25-gentoo
kernel-genkernel-x86_64-3.10.25-gentoo
linux-3.13.2-gentoo
lost+found
System.map-3.13.2-gentoo
System.map-genkernel-x86_64-3.10.25-gentoo
vmlinuz-3.13.2-gentoo

_________________
Compile The Universe
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Feb 14, 2014 6:15 pm    Post subject: Reply with quote

Have a look at /etc/default/grub: GRUB_DEFAULT=0 means boot first entry, you can use GRUB_DEFAULT=saved to boot last used entry.

Remember to run grub2-mkconfig -o /boot/grub/grub.cfg each time you modify /etc/default/grub

And definitely read: http://wiki.gentoo.org/wiki/GRUB2 (you may find also some EFI related answers there)
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Feb 14, 2014 6:38 pm    Post subject: Reply with quote

PS: of course you can remove old kernel, but first make sure that the new one works fine.
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Feb 14, 2014 7:20 pm    Post subject: Reply with quote

Ok. I made it. But now I have no X. It tells me than nvidia not found. I have nvidia-drivers installed and modprobe nvidia tells me that not found. Any idea?
_________________
Compile The Universe
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Feb 14, 2014 7:42 pm    Post subject: Reply with quote

You made new kernel, now it is time to rebuild the modules. You have nvidia-drivers installed, but for old kernel.
Code:
emerge --ask @module-rebuild

https://wiki.gentoo.org/wiki/Kernel/Upgrade
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 722
Location: /home

PostPosted: Fri Feb 14, 2014 9:36 pm    Post subject: Reply with quote

Also, I recommend you to read https://forums.gentoo.org/viewtopic-t-982630.html since newest nvidia-drivers dont go hand-in-hand with newest kernel-sources (>3.13). Works fine with 3.12 and 3.10 though.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sun Feb 16, 2014 3:05 pm    Post subject: Reply with quote

You are too late. I already made the mistake :( I have messed all the system :(
Nvidia gave me acpi_os_event error but I fix that. Compiled ok. Modprobe also load it. I tried to rebuild everything and now gobject-introspection refuses to be built :(
See here: https://forums.gentoo.org/viewtopic-t-984222.html
_________________
Compile The Universe
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