Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about trying another kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Mon May 05, 2003 4:58 pm    Post subject: Question about trying another kernel Reply with quote

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
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Mon May 05, 2003 5:43 pm    Post subject: Re: Question about trying another kernel Reply with quote

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
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Tue May 06, 2003 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Tue May 06, 2003 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Tue May 06, 2003 12:28 am    Post subject: Reply with quote

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 :lol:

Don't be afraid to play around with new/other kernels. They are not going to damage your system (if you are lucky! :twisted: )

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue May 06, 2003 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Megaptera
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2002
Posts: 145

PostPosted: Tue May 06, 2003 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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