Michael Holt wrote:
Hey all! I've got two questions: 1) [..]

2) Though I've been using Linux for about 4 years, I've never been very successful at compiling my own kernels. I'm interested in simply making changes in my existing kernel. I've loaded the kernel sources and followed the directions but things always seem to have problems. Here's what I did today:

log on as root, cd to /usr/src/linux-2.4xxx
make xconfig
make dep
make clean
make bzImage
cp bzImage to /boot and update lilo to reflect changes.

Now, I didn't change anything in the configuration - I just wanted to see what would happen. After rebooting, I noticed quite a few errors that I don't get with my original kernel. I thought that the .config file would represent my existing kernel - is this correct? Please take it easy on me - I know it's something simple because a lot of people are able to do this relatively common task - I'm just not getting something.

Thanks all! Mike
You should do make mrproper first. This is in the kernel upgrade howto at mandrakeuser.org and in Linus's readme in /usr/src/linux. Then, what works for me is make xconfig, load /boot/config, the config of the running kernel, make my changes, save, then follow the MUO howto for the rest of the commands. Mandrake's sources will change the version to $VERSIONcustom and the installkernel script copies the kernel to /boot, mkinitrd, if needed, and changes the links in /boot to boot the new kernel (probably runs lilo, too, but I use grub).


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Reply via email to