Hello everyone. Well, as the subject states, i'm having one heck of a time compiling my first kernel. It appears that everything was going smooth until I rebooted after the compile and picked the new kernel from LILO...then everything went downhill. Missing files, failed this, failed that...needless to say, it was a nightmare.
Let me start off with what im runnig:
Running RH 7.2, kernel 2.4.9-31. I was trying to compile to 2.4.18.
Here is what I did: (By the way, i've read so many things on compiling a kernel that i very confused and my heads about to spin off)
First, I grab the source from
www.kernel.org. Im using the 2.4.18 stable version at this point. (I grab it through FTP)
Ok, here is one question I have. I’ve read different things on where to d/l the file. Some say d/l it to a temp directory of some sort, others say to download it right to /usr/src.
So, I’ve been downloading it to /usr/src directory.
Once I’ve got it downloaded, I rename my old linux directory to the current kernel installed (2.4.9-31). Once that’s renamed, I untar the kernel. (tar –xzvf <filename>)
First of all, should I even rename the Linux directory? What's recommended here?
Of the three type of makes I know (Make config, make menuconfig, make xconfig) so far, I prefer make menuconfig the best. So I run make menuconfig and run through the process of picking and choosing what I would like.
After that, I run the following: make dep followed by make clean.
Once these are finished, its time for the big one: make bzImage.
Now, this is where im confused. It was fairly easy up till this point. My main question is, what step is next? I’ve read so many different things its confusing. (Maybe that’s why I cant get it to work ) I’ve read that I should make modules followed all sorts of stuff. I’ve read articles where I should manually copy over the new kernel. (I’ve posted some links that I’ve used for reference)
I guess my main question is, whats next after I make bzImage? Do I need to make modules? make modules_install? Do I need to manually copy over the kernel?
And whats the best way to edit LILO?
In a nutshell:
1. Grab source code for kernel
2. Download to a directory and untar.
3. make menuconfig
4. make dep
5. make clean
After that, im confused.
I appreciate anyone who can help me out here. I feel like im close, im just missing a step OR adding a extra step.
Thanks for everyones input!
R