LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   facing problems recompiling kernel 2.6.5 in Fedora Core 2 (http://www.linuxquestions.org/questions/linux-newbie-8/facing-problems-recompiling-kernel-2-6-5-in-fedora-core-2-a-200355/)

fawkes.phoenix 07-02-2004 11:58 AM

facing problems recompiling kernel 2.6.5 in Fedora Core 2
 
Hello all
I'm quite new to kernel configurations and recompilation. I had to install Alcatel Speedtouch USB drivers but the installation source gave the error that the kernel is not configured for ATM. So I ran 'make menuconfig' and made the appropriate changes. Now I did the following :
$ make
$ make modules_install

after this i copied bzImage and System.map to /boot but under diff names than the ones that were originally there (i.e., i didn't overwrite the existing image files) .
Please suggest me two things:
1. How can I apply the changes to my original kernel ?
2. How can I make this new kernel compilation a separate kernel entry to boot from ?

wolve 07-02-2004 12:39 PM

hi..

maybe i can help u out.
it is not necessary to make these changes in your old kernel.
I think you just want to run your newly compiled kernel, to use ATM.
So, edit lilo.conf:
You should find your old kernel there (something like this: image='your old kernel's location here')
Now, just copy-paste those 4 lines, BUT replace that image location to where you copied your new kernel (bzImage).
After these type at prompt:lilo
When you reboot, hit <SHIFT>.
Now you can choose, what kernel you want to use.

Hope this helps.Best regards Wolve

fawkes.phoenix 07-02-2004 12:45 PM

To : wolve
 
hi
i already tried this out. but there is not lilo utility in my installation :( (i also tried 'locate lilo' but only found lilo.conf.anaconda which i edited as per what u have said ).
please suggest what should i do now.

Kerr 07-02-2004 09:37 PM

Hi,

I think that you must have installed grub as your boot loader instead of lilo. In that case, you need to edit /boot/grub/grub.conf so that it can locate the new kernel installed.


title whatever Kernel
kernel /vmlinuz-x.x.x ro root=LABEL=/
initrd /initrd-x.x.x.img

use the same parameters for "root=" as for your previous kernel

save the above changes and /sbin/grub.install >> to make these changes work :-)

All the Best!

BattousaiX 07-02-2004 09:43 PM

Hey I'm new to Linux. But I recently joined this forum and another one. I wrote a tutorial after recompiling from 2.4.26 -> 2.6.7. Here is a link to the tutorial:

Recompiling Kernel Instructions

Good luck.


All times are GMT -5. The time now is 06:14 PM.