Welcome to MyFirstSight.COM!

     Who's Online
There are currently, 0 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

     Login
Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

 Compiling Linux Kernel

LinuxI have included 2 different sections on compiling linux kernel. There's a slight difference between 2.4 and 2.6 kernel. Please follow the one that apply to your current kernel.

For 2.4 Kernel
1. Apply patch
a. cd /usr/src/linux
b. bzip2 -dc /usr/src/patch-2.4.1.bz2 | patch -p1
2. Backup .config
3. make mrproper
4. make menuconfig “or” make oldconfig
5. make dep
6. make clean (Clean object files)
7. make bzImage
8. make modules
9. make modules_install
10. mkinitrd /boot/initrd-2.6.0.img 2.6.0 (replace 2.6.0 with kernel version)
Note: On some version, like suse 9.0 the command has to be:
”mkinitrd -k vmlinux-VERSION -i initrd-VERSION”
11. cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
12. cp System.map /boot/System.map-KERNEL_VERSION
13. ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
Note: 10-13 maybe replaced with “make install”
14. Check /etc/grub.conf or /etc/lilo.conf to see if "make install" has made the appropriate changes to the file.

For 2.6 Kernel
1. Apply patch
a. cd /usr/src/linux
b. bzip2 -dc /usr/src/patch-2.4.1.bz2 | patch -p1
2. Backup .config
3. make mrproper
4. make menuconfig “or” make oldconfig
5. make clean (Clean object files)
6. make bzImage
7. make modules
8. make modules_install
9. mkinitrd /boot/initrd-2.6.0.img 2.6.0 (replace 2.6.0 with kernel version)
Note: On some version, like suse 9.0 the command has to be:
”mkinitrd -k vmlinux-VERSION -i initrd-VERSION”
10. cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
11. cp System.map /boot/System.map-KERNEL_VERSION
12. ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
Note: 10-13 maybe replaced with “make install”
13. Check /etc/grub.conf or /etc/lilo.conf to see if "make install" has made the appropriate changes to the file.



 
     Related Links
· More about Linux
· News by abb


Most read story about Linux:
Create / Verify md5sum in Linux


     Article Rating
Average Score: 5
Votes: 1


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


     Options

 Printer Friendly Printer Friendly


"Login" | Login/Create an Account | 15 comments | Search Discussion
The comments are owned by the poster. We aren't responsible for their content.





Page Generation: 0.18 Seconds