View previous topic :: View next topic |
Author |
Message |
sk8harddiefast Guru
Joined: 15 Feb 2009 Posts: 335 Location: athens
|
Posted: Fri Feb 14, 2014 4:41 pm Post subject: How to setup new configured kernel on grub? |
|
|
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 |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
|
Back to top |
|
|
sk8harddiefast Guru
Joined: 15 Feb 2009 Posts: 335 Location: athens
|
Posted: Fri Feb 14, 2014 5:30 pm Post subject: |
|
|
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 |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Fri Feb 14, 2014 5:45 pm Post subject: |
|
|
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 |
|
|
sk8harddiefast Guru
Joined: 15 Feb 2009 Posts: 335 Location: athens
|
Posted: Fri Feb 14, 2014 5:56 pm Post subject: |
|
|
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 |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Fri Feb 14, 2014 6:15 pm Post subject: |
|
|
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 |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Fri Feb 14, 2014 6:38 pm Post subject: |
|
|
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 |
|
|
sk8harddiefast Guru
Joined: 15 Feb 2009 Posts: 335 Location: athens
|
Posted: Fri Feb 14, 2014 7:20 pm Post subject: |
|
|
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 |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Fri Feb 14, 2014 7:42 pm Post subject: |
|
|
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 |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 724 Location: /home
|
Posted: Fri Feb 14, 2014 9:36 pm Post subject: |
|
|
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 |
|
|
sk8harddiefast Guru
Joined: 15 Feb 2009 Posts: 335 Location: athens
|
Posted: Sun Feb 16, 2014 3:05 pm Post subject: |
|
|
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 |
|
|
|