RHEL 4 update 2 - kernel build problem
This is my first post to linuxquestions.org.
I have spent several hours going through posts on this site and other trying to find out what I'm doing wrong. So, I think I've done my best to RTFM. From what I've read it doesn't seem this should be that hard, in fact it seems like it should be easier that with RHEL3 (2.4 kernel)- which I never had a problem with even on my first attempt.
I've loaded RHEL4 update 2 64bit (uname -r = 2.6.9-22EL.smp) I installed most of the packages during the installation, omitting only things like office productivity and the such. Specifically, I made sure to check the boxes for Development Tools, X Software Development, GNOME Software Development, and KDE Software Development.
In the future I'm going to need to tweek some of the kernel settings, but for now all I want to do is just build a kernel that works. So I tried to keep this as simple and straight forward as possible by just rebuilding the same kernel I already have.
Here is what I did-
-This is so I could start over with a fresh image when I screw up. Because I know I will.
# cd /usr/src
# tar czf src.tgz *
-Kernel Build Procedures
# cd /usr/src/kernels/2.6.9-22.EL-smp-x86_64
# cp /boot/config-2.6.9-22.ELsmp .config
# make oldconfig
# make bzImage
make: *** No rule to make target 'init/main.o', needed by 'init/built-in.o'.
make: *** [init] Error 2
I put that error in Google, which let me to this site.
I found a post that said I have to do the build from the /usr/src/redhat/BUILD directory, but that directory is empty.
I looked around for a little while longer and the only thing I can think of is that I should download the kernel source from kernels.org. But in RHEL3 I was able to rebuild the kernel using what come installed on the RedHat CD's.
What piece am I missing?