LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I keep the kernels separate? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-keep-the-kernels-separate-245835/)

Wolfy 10-22-2004 01:48 AM

How do I keep the kernels separate?
 
Hey all,
It's been a long time since my last post here.
I've learned so much that I can do a lot on my own now.:)

My question is,
I want to keep the original kernel System.map, and the new kernel System.map separate.
Basically I want the two kernels to be completely independent of each other.
To compile I use the following format,
#make xconfig
#make bzImage
#make modules
#make modules_install
P.S. thanks to Shilo for this procedure.
http://shilo.is-a-geek.com/slack/kernel14.html
If anyone has any thoughts or advice I would appreciate it.
Thanks,
Wolfy

synapse 10-22-2004 02:12 AM

Hi

First unpack the kernel, it should unpack to a folder named linux-2.6.x etc
then do a make menuconfig within that folder and make the choices for your system.
once done do as you have stated above.

When you complete this cp .config to the /boot dir and at the same time rename it to config-2.6.x
do the same with system map
and bzimage

eg
cp .config /boot/config-2.6.x
cp System Map /boot/SystemMap-2.6.x
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x

then do lilo
and you should have two different kernels to boot.

linux 2.4.x
linux 2.6.x

cheers

Wolfy 10-22-2004 04:01 AM

Thank you for replying, Synapse.
Will this make the two kernels independent and most importantly bootable?????
Providing of course the new kernel is compiled correctly.
Let me know,
Thanks,
Wolfy

Cedrik 10-22-2004 04:02 AM

I will add that with these naming convention each kernel will use the good system map, eg :

If a System.map is named System.map-2.6.9, vmlinuz-2.6.9 will use it
If a System.map is named System.map-2.4.26, vmlinuz-2.4.26 will use it
...

Wolfy 10-22-2004 04:30 AM

Thank you Cedrik,
That is the key I was looking for.
I will then proceed with that idea in mind.
Thanks again for everyones help.
Wolfy


All times are GMT -5. The time now is 10:35 PM.