Google

Monday, October 09, 2006

LINUX Kernel 2.6.x .xx compile

LINUX Kernel compile
This is only for people who have experienced with linux command and linux file structure.

-------------------------------
Linux Kernel 2.6.x... compiling step by step

step 1:

download the latest linux kernel from the internet

eg: www.kernel.org

step 2:

extract the archive file in to /usr/src

eg:
cp linux-2.6.17.tar_2.gz /usr/src
tar xzvf linux-2.6.17.tar_2.gz

step 3:
go to the extract directory and you can configure your kernel using following command

*in a command mode use

make menuconfig

*in graphical interface

make xconfig or make gconfig

step 4:


configre your kernel,according to your machine configuration;

step 5:

after that do the following commad

make modules
make modules_install
make bzImage

you can do this by one line

step 6:
create initial ram disk file using follwing command

mkinitrd -o /boot/initrd.img-2.6.1x.x-386 2.6.x.x

-or-


mkinitramfs -o /boot/initrd.img-2.6.1x.x-386 2.6.1x-386

if you want to see the created initrd.img file, type following command-

zcat /boot/initrd.img-2.6.17.4-386 |cpio --list

step 7:

now you must in the kernel source folder

do the following command(linux version must be changed according to the your version)

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17.4

cp System.map /boot/System.map-2.6.17.4-386

cp .config /boot/config-2.6.17.4-386

step 8:

now you have finished compiling kernel & some of the configuration

step 9:
edit your menu.lst file

vi /boot/grub/menu.lst

here you must give a path to new kernel & name and the imagefile

step 10:

reboot your system

do your work with new kernel version.

4 Comments:

Anonymous Anonymous said...

Malaysia & Singapore & brunei finest online blogshop for wholesale &
supply korean add-ons, accessories, earstuds, locket, rings, hair, bangle
& trinket accessories. Deal 35 % wholesale price cut. Ship Worldwide
Also see my webpage: locksmith salt lake city

2:36 AM  
Anonymous Anonymous said...

I always emailed this webpage post page to all my contacts, as if
like to read it afterward my contacts will too.
Feel free to surf my homepage web hosting delhi

10:04 PM  
Anonymous Anonymous said...

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added
I get three emails with the same comment. Is there any way you can remove people from
that service? Thanks!

Here is my blog: healthy kids

2:38 AM  
Anonymous Anonymous said...

May I simply say what a relief to discover someone who
actually knows what they're discussing on the net. You definitely understand how to bring an issue to light and make it important. More people have to check this out and understand this side of the story. It's surprising you aren't more popular since you most certainly have the gift.

my web site ... electronic dance music

8:07 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home