2 red hat 7.1 compiling kernel source questions.
Posted on 2001-08-27
I am using red hat 7.1 and for some kind reason I have to recompile the kernel source. the original kernel version is 2.4.2-2. but after I finish the compile and put the bzImage in the another linux PC's /boot directory(redhat 7.1 too) then add a entry in the lilo.conf and excute lilo and reboot that new linux PC system with this new kernel. I found the kernel version become 2.4.2. It is not 2.4.2-2 now.
why it will be this way? why it won't be 2.4.2-2?
I also did another test. I get the kernel source from redhat 7.1 CD3. and put it in my directory say "/usr/src" and use rpm to install it. it will put the source into /usr/src/redhat/SOURCES. there is a tar file looks like the source tar ball and also many patch files for kernel. I use tar -xzvf to uncompress and extract it. and a linux source tree generated. I move this tree under the /usr/src/.
So now under /usr/src/linux already got a new source tree.
then I get in there excute
then move the bzImage to /boot. modify and add a entry in /etc/lilo.conf. excute lilo
then I reboot system. I found the new kernel which I just compiled version is 2.4.2 too. it is not original 2.4.2-2.
I doubt that is becoz I didn't run all those kernel patch files so it won't become the latest version 2.4.2-2?
is that correct? if so then how to run all that patch files?