View previous topic :: View next topic |
Author |
Message |
triad Apprentice
Joined: 10 Jul 2003 Posts: 234 Location: Dark Side of the Moon
|
Posted: Sun Aug 17, 2003 6:34 pm Post subject: Multiple Kernel Suggestions with NVidia and ALSA support |
|
|
Howdy all,
Just did an emerge -u world today and noticed one of the items to be updated was my gentoo-sources from r5 to r6. This is my 1st time updating the kernel so wanted to keep -r5 in place just in case if I FUBARED my system. So this is what I did.
Code: |
1. cd /usr/src/linux-2.4.20-gentoo-r6
2. Make menuconfig (Configured exactly like previous kernel -r5)
3. make dep && make clean bzImage modules modules_install
4. cp /usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot/bzImage /usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot/bzImager6
5. mount /boot
6. cp /usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot/bzImager6 /boot
7. nano -w /boot/grub/grub.conf
8. added these lines to grub.conf:
title=Gentoo Linux Kernel r6
root (hd1,0)
kernel (hd1,0)/boot/bzImager6 root=/dev/hdb3
9. Saved grub.conf and umount /boot
|
To enable NVidia and ALSA sound in new kernel:
Code: |
10. cp -R /lib/modules/2.4.20-gentoo-r5/video /lib/modules/2.4.20-gentoo-r6
11. cp -R /lib/modules/2.4.20-gentoo-r5/kernel/sound /lib/modules/2.4.20-gentoo-r6/kernel
|
Rebooted system then from Grub selected "Gentoo Linux Kernel r6". Kernel boots up fine and I have both ALSA sound and NVidia support in new kernel.
Please let me know if I will have any issues or if there is anything else I need to consider. Thanks for the info in advance.
Triad |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Sun Aug 17, 2003 6:48 pm Post subject: |
|
|
you need to change the /usr/src/linux symlink to your current kernel, because there are packages that need the current kernel sources.
Code: | $ cd /usr/src
$ rm linux
$ ln -sf linux-2.4.20-gentoo-r6 linux
|
that's it. _________________ Markus Nigbur |
|
Back to top |
|
|
triad Apprentice
Joined: 10 Jul 2003 Posts: 234 Location: Dark Side of the Moon
|
Posted: Sun Aug 17, 2003 8:40 pm Post subject: |
|
|
Thanks for the help pYrania! But..... This presents another question. I would like to setup the system so I can select the proper kernel to run via GRUB and then linux would boot under the selected kernel. But if I have to symlink to /usr/src/linux each time then reboot into linked kernel this can be a little pain in the tush. So is there anyway to automate this?
I know for the scenario I stated above this is probably overkill but eventually I would like to try out other kernel sources.
Any help or guidance will be greatly appreciated.
Triad |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Sun Aug 17, 2003 11:10 pm Post subject: |
|
|
you just have to change this symlink if you're sure you'll stick with this kernel for a while. (or you're going to compile some packages depending on the kernel sources, eg. lm-sensors)
and no, there is no way to automate it. _________________ Markus Nigbur |
|
Back to top |
|
|
triad Apprentice
Joined: 10 Jul 2003 Posts: 234 Location: Dark Side of the Moon
|
Posted: Sun Aug 17, 2003 11:26 pm Post subject: |
|
|
Gotcha! Me understand now. Thanks again pYrania.
Triad |
|
Back to top |
|
|
|