compiling the kernel requiere some experience. The procedure is not hard, but WHAT kind of KERNEL do you need to build  is sometimes hard to decide.
If you are not familiar with certain thing about , I advice use  a pre built kernel installed with rh.
nevertheless if you are decided to fail:
 
1 Go to souce code of kernel
cd /usr/src/linux-(vercion number)
 
2 Know, configure how do you want the kernel result, I mean: specify what you want suppot and what not, adicional feature , etc. THIS IS the HARDEST step
make menuconfig
 
3 make depencies with all parts
make dep; make clean
 
4 Order to buld the kernel
make bzImage
 
5 The new generated kernel is writen in /usr/src/linux-(vercion)/arch/i386/boot/bzImage , copy it to /boot
cp /usr/src/linux-2.4/arch/i386/boot/bzImage /boot/bzImage
 
6 Build all part setted as modules:
make modules; make modules_install
 
7 Make it valid to lilo (LInux LOader), edit /etc/lilo.conf and add an entry to the new kernel, basically copy the first seccion, it must look like:
 
boot=/dev/hda                                                                                    
map=/boot/map                                                                                    
install=/boot/boot.b                                                                             
prompt                                                                                           
timeout=50                                                                                       
message=/boot/message                                                                            
linear                                                                                           
default=linux                                                                                    
                                                                                                 
image=/boot/vmlinuz-2.4.2-2                                                                      
        label=linux                                                                              
        read-only                                                                                
        root=/dev/hda2                                                                            
                                                                                                 
#image=/boot/bzImage
#       label=new                                                                          
#       read-only                                                                                
#       root=/dev/hda2   
 
Just uncomment last seccion and chech the number of root device !
 
8 Install nw LILO
lilo
 
9 Reboot and select when lilo apper (LILO: ) the new kernel, (just type TAB to see list of krnel's names)
 
 
 
----- Original Message -----
Sent: Wednesday, February 06, 2002 4:31 PM
Subject: Kernel question


  I have a question about compling the kernel, how do I complie the redhat kernel? I look though the how-to's and I am very confused?

Brian

Reply via email to