LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   newbie wants to compile new kernel (http://www.linuxquestions.org/questions/linux-newbie-8/newbie-wants-to-compile-new-kernel-140312/)

taoweijia 01-30-2004 07:01 AM

newbie wants to compile new kernel
 
hi,
I have RH9 box with 2.4.20-8, I just downloaded the 2.6.1 but I am not sure how to make new kernel work and I would like to have options to choose the kernel versions on boot.
i unpacked the source , put it in the usr/linux-2.6.1 and from there I did make menuconfig, make
can someone guide me through the rest of the stuff, I stuffed up last time when I edited the grub.conf

thanks

bigjohn 01-30-2004 07:20 AM

This may be of some help. don't forget it's slackware related.

If it's not what you're looking for then do what I did, and search LQ yourself. You may find something closer to what you want to do with your redhat install

regards

John

taoweijia 01-30-2004 12:37 PM

the make, make bzImage, make modules, make modules_install all went fine, but still I don't know how to make grub.conf to reflect the changes.
first I cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.1
then, ln -s /boot/vmlinuz /boot/vmlinux-2.6.1 (here i think it should be vmlinux-2.4.20-8 coz it is in the old boot dir)
the boot dir has the following:
vmlinux-2.6.1->/boot/vmlinuz
vmlinuz->vmlinuz-2.4.20-8
vmlinuz-2.6.1
...
then i went to edit the grub.conf to be
title redhat 2.6.1
root (hd0,2)
kernel /vmlinuz-2.6.1 ro root=LABEL=/
title Red Hat Linux(2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title DOS
...
when I reboot and select the new kernel, it failed with no file found , Kernel /vmlinuz-2.6.1 ro root=LABEL=/

the old kernel boots up fine.
then I went for the second way...
cd /boot
mv System.map System.map.old
cp /usr/src/linux-2.6.1/arch/i386/boot/bzImage /boot/
cp /usr/src/linux-2.6.1/System.map /boot/
then edited the grub.conf to be
title redhat 2.6.1
root (hd0, 2)
kernel /bzImage ro root=LABEL=/
title Red Hat Linux (2.4.20-8)
....(unchanged for the rest)

failed with same message on booting new kernel, old kernel still boots up .
fine.

i am lost here, can someone help me finish this seemingly simple task ? I really don't know what went wrong...... some guides says i should move the system .map some didn't memtion it, please help me out.
thanks


All times are GMT -5. The time now is 01:11 AM.