Compiling a new RHEL-4 kernel

Simon redhat at gornall.net
Tue Dec 20 05:48:20 UTC 2005


Hi all,

Ok, I need to recompile my kernel to add in the 'scan all LUNS for  
each SCSI device' option - by default this is off, but the tape  
changer I've just been landed with appears to need it (at the moment  
I can tar to /dev/st0 but can't load/unload using /dev/sg5 :-(

So, I just wanted to ask a few questions...

  - Is there a resource where 'how to compile a kernel' is well- 
documented? I've spent some time looking around the RH site, but  
couldn't find anything useful

  - I've downloaded the 'kernel-2.6.9-22.0.1.EL.src.rpm' from RHN,  
and done a 'rpm -Uvh' on it. That's created lots (and I mean *lots*)  
of patch files as well as a linux-2.6.9.tar.bz2 file in /usr/src/ 
redhat/SOURCES. Is the linux-2.6.9.tar.bz2 pre-patched ? Or do I have  
to apply the patches once I've untarred the file ?

  - It's been a while since I made a kernel, and it all looks  
different. Is it just:

	make menuconfig			(the machine is 5000 miles away, no X...)
	make
	make install

	... or do I need to fiddle with initrd and alter /boot/grub.conf ?  
What happened to mrproper ? :-)

  - Anything else I ought to know ? I'd really rather not bring down  
the server, since it's so far away...

Cheers,
	Simon




More information about the redhat-list mailing list