Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
short but hard
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
rakoon13
n00b
n00b


Joined: 09 Sep 2005
Posts: 9
Location: ga

PostPosted: Tue Mar 07, 2006 4:17 am    Post subject: short but hard Reply with quote

Ok. I have a short but hard - at least for me - question.

How do I install multiple kernel versions alongside one another without causing problems?? 8O

I've try all but the right choice.... or maybe it's not possibile... but it must be ... hmmmm
_________________
dr. Steven Dale
Oncologist
www.gsm-talk.net
www.katavia.net
www.open-health.net
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Tue Mar 07, 2006 4:29 am    Post subject: Reply with quote

If you mean multiple kernel images (e.g., 2.6.15.6 and 2.6.12.1), just install the sources, edit the symlink successively to point at a given kernel source tree, configure, make, and install modules (these will be contained in /lib/modules/<kernel version>), and copy the image (giving it a unique name) to the boot partition. Repeat this for as many different kernels at you like. Organize these choices in your boot loader (grub or lilo). Having 2.4 alongside 2.6 kernels might be problematic, not sure if this is your intention.
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Tue Mar 07, 2006 4:32 am    Post subject: Reply with quote

After you build your kernel and copy the bzImage over to /boot (giving it a unique name of course) you add that image to your grub.conf, then when you reboot you just choose the desired kernel from the menu.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
aldimond
n00b
n00b


Joined: 05 Mar 2006
Posts: 12

PostPosted: Tue Mar 07, 2006 7:33 am    Post subject: Reply with quote

Right, and all the modules will be happily installed in their own little sections of /lib/modules.

Actually, I've run into a subtle issue along these lines lately; let's say I want to have different patchsets of the "same" kernel installed side-by-side. That is, I have my 2.6.12-gentoo-r10, but I copy the directory to 2.6.12-mkexec-gentoo-r10 and patch it for minik/mkexec support. The two kernels will need seperate modules, but when doing the "make modules_install" they both install into /lib/modules/2.6.12-gentoo-r10. How can I get my special mkexec kernel to install its modules into its own directory (it's gotta be some configure argument or in a Makefile somewhere, right)?

Extra credit if someone can tell me how to have a seperate modules.autoload.d file for the two; actually, modules.autoload.d is particularly bad, because it seems that it's only granular down to kernel minor version, such that if I had a 2.6.12 and a 2.6.15 kernel I couldn't choose different sets of modules to autoload.
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