Kernel Compiling Checklist, rev 3

Samuel Flory sflory at rackable.com
Tue Apr 13 18:13:57 UTC 2004


Etanisla Lopez-Ortiz wrote:
> Morning all,
> 
> Tonight I'll be trying the kernel compile again, but before I do, I want to
> bounce the changes off you wonderful, helping people.
> 
> -1: Start with fresh install of FC1 (2.4.22-1.2115)
> 0:  Insert desired version number where x.x.x is present.
> 1:  Get desired kernel and extract it.
> 2:  "mv /scratch/directory/linux-x.x.x /usr/src"
> 3:  "cd /usr/src/linux-x.x.x"
> 4:  Copy .config from old kernel to /usr/src/linux-x.x.x
>     Since first compile since initial install, use config file found in
> /boot.
> 5:  "make oldconfig" (Keep the stuff that works, and only answer new
> questions)
> 6:  "make xconfig" (Make sure kernel options for Prism54 are set properly)
> 7:  "make dep"
> 8:  "make clean"

   You don't need to do this.  Sometimes you might need to do this if 
you'd compiled a kernel before, but you are really better off doing a 
make mrproper earlier on.

> 9:  "make bzImage"
> 10: "cp /arch/i386/boot/bzImage /boot/vmlinuz-x.x.x"
> 11: "ln -s /boot/vmlinuz-x.x.x /boot/vmlinuz-x.x.x-new-kernel"
> 12: "make modules"
> 13: "make modules_install"
> 14: "make install"  
> 15: Edit /etc/rc.sysinit and change '/proc/sys/kernel/modprobe' to
> /sbin/modprobe'.
> 16: "shutdown -r now"
> 17: After rebooting, and selecting new kernel option, type "uname -r" to
> verify the new kernel is running.
> 
> So, whaddya think?
>

   You should put a note that they should do the following steps before 
compiling again with different config options, or after patching.  This 
use to cause me trouble time and again.  (Now I just use an alias.)
-cp .config config.bak
-make mrproper


alias ck='/bin/cp .config 1 &&make mrproper && /bin/cp 1 .config && make 
oldconfig dep && make -j 2 bzImage modules && make modules_install && 
make install'
-- 
There is no such thing as obsolete hardware.
Merely hardware that other people don't want.
(The Second Rule of Hardware Acquisition)
Sam Flory  <sflory at rackable.com>





More information about the fedora-list mailing list