View previous topic :: View next topic |
Author |
Message |
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Mon May 05, 2003 4:58 pm Post subject: Question about trying another kernel |
|
|
I am currently running the vanilla-sources kernel and want to try the gentoo-sources without disturbing what I have now. My understanding is that I should:
(1) # emerge sys-kernel/gentoo-sources
(2) # make dep && make clean bzImage modules modules_install
(3) # mount /boot
(4) #cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-gentoo
(or something different than bzImage)
(5) add an entry in the /boot/grub/grub.conf like this:
Code: |
title=Linux - gentoo sources kernelk
root (hd0,0)
kernel (hd0,0)/boot/bzImage-gentoo root=/dev/hda3
|
and reboot. Is this about right? Did I leave anything out?
Thanks
-Jeff |
|
Back to top |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Mon May 05, 2003 5:43 pm Post subject: Re: Question about trying another kernel |
|
|
jkcunningham wrote: | (2) # make dep && make clean bzImage modules modules_install |
Make sure that you do this in the /usr/src/linux directory (and that /usr/src/linux is properly linked to the kernel version you wish to be running).
I also think there's a grub command you need to run after changing the config file, but I could be wrong seeing as I don't use grub myself. |
|
Back to top |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Tue May 06, 2003 12:00 am Post subject: |
|
|
you also need to
Code: | rm /usr/src/linux
ln -s /usr/src/linux-xxxx/ /usr/src/linux | (linux-xxx being the version) |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Tue May 06, 2003 12:11 am Post subject: |
|
|
and to save some time..
Code: | cd /usr/src; cp linux-2.4.20/.config linux-2.4.20-gentoo/; cd linux-2.4.20-gentoo; make oldconfig; make menuconfig |
_________________ a.k.a port001
Found a bug? Please report it: Gentoo Bugzilla |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Tue May 06, 2003 12:28 am Post subject: |
|
|
There is no need to make any symbolic links to /usr/src/linux. This is ancient
Just leave the directory as is when emerging the new kernel source.
Here is how my /usr/src directory looks today:
Code: |
drwxr-xr-x 15 root root 4096 Mar 4 19:06 linux-2.4.20-ck4
drwxr-xr-x 14 root root 4096 Apr 9 14:03 linux-2.4.20-ck5
drwxr-xr-x 14 root root 4096 Apr 16 13:22 linux-2.4.20-ck6
drwxr-xr-x 15 root root 4096 May 5 20:24 linux-2.4.20-gaming-r3
drwxr-xr-x 19 root root 4096 Apr 10 17:52 linux-2.5.67-mm1
drwxr-xr-x 19 root root 4096 Apr 14 16:32 linux-2.5.67-mm2
drwxr-xr-x 19 root root 4096 Apr 17 15:30 linux-2.5.67-mm3
drwxr-xr-x 18 root root 4096 Apr 18 13:05 linux-2.5.67-mm4
drwxr-xr-x 18 root root 4096 Apr 24 16:31 linux-2.5.68-mm1
drwxr-xr-x 19 root root 4096 Apr 29 16:55 linux-2.5.68-mm2
drwxr-xr-x 19 root root 4096 May 2 14:51 linux-2.5.68-mm4
|
I would strongly recommend using a different name for each kernel in /boot. And never remove a kernel that you know works, just add entires to your grub.conf file. Grub can handle a lot more kernels than you can compile and put in /boot
Don't be afraid to play around with new/other kernels. They are not going to damage your system (if you are lucky! )
No, seriously, just keep known working kernels around, because from time to time, you may encounter a kernel that will not boot your system or that is missing something you need. Always, always and I can't stress this enough, keep working kernels around.
Have fun!
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue May 06, 2003 12:35 am Post subject: |
|
|
Actually, not quite. You need a /usr/src/linux symlink to emerge lm_sensors (and maybe others).
ebrostig wrote: | There is no need to make any symbolic links to /usr/src/linux. This is ancient
...
Erik |
|
|
Back to top |
|
|
Megaptera Tux's lil' helper
Joined: 29 Jul 2002 Posts: 145
|
Posted: Tue May 06, 2003 1:14 am Post subject: |
|
|
I find that nVidia drivers and alsa both have hissy fits if the kernel I'm booting is not symlinked to /usr/src/linux. Somewhat offtopic, is there a way to set up an independent module directory for things like them -- /usr/src/modules for example, that would keep externally compiled modules in one central location for different kernels to access? |
|
Back to top |
|
|
|