Search the web
Sign In
New User? Sign Up
linux-bangalore-programming · LB Programming Discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to compile linux kernel ?   Message List  
Reply | Forward Message #7543 of 7596 |
Re:How to compile linux kernel ?

Hi There,

*Step 1
*Download the kernel from below link

ftp://ftp.kernel.org/pub/linux/kernel/v2.6


*Step 2*

Extracting the kernel

if its a archive with tar.gz extension then do below in your /usr/src

# tar -zxvf linux-2.6.x.x.tar.gz

If its a .tar.bz2 then do below in your /usr/src

# tar -jxvf linux-2.6.x.x.tar.bz2


*Step 3

*You must have a folder now in your /usr/src dir with the name of
linux-2.6.x.x just symlink it with dir linux

# ln -sf linux-2.6.x.x linux

Now change the dir to linux

# cd linux

once you are inside the dir issue any of the below commands to configure
your new kernel

# make menuconfig (This will show you a command line screen to configure
the kernel)

or

# make xconfig (This will open up a qt based gui window to configure
the kernel)


Note : -- if you want to configure the new kernel same as of your old
one then you just need to issue the below commands

# make oldconfig && make modules_install && make install


This will install your new kernel with the old config and also install
the boot image and other files in your /boot

*Step 4

*I am assuming now that you have configured your new kernel and ready to
compile it , just follow the below steps

# make && make modules_install && make install





*NOTE - i am assuming you are using grub here for that you need to
select the option on boot for the new kernel

lilo users - here comes my lilo.conf

boot="/dev/hda"
lba32
prompt
timeout="50"
default=gentoo
vga="792"

image="/boot/kernel-2.6.18"
label="gentoo"
root="/dev/hda4"
read-only
# initrd="/boot/kernel-2.6.17"
#root=/dev/ram0
#append="init=/linuxrc real_root=/dev/hda4"

image="/boot/kernel-2.6.20.3"
label="2.6.20.3"
root="/dev/hda4"
read-only*



Mon May 4, 2009 7:42 am

sharmav204
Offline Offline
Send Email Send Email

Forward
Message #7543 of 7596 |
Expand Messages Author Sort by Date

Hello guyz, i would like to know how to compile linux kernel ( v2.6.29 ). i did download the latest kernel from kernel.org. what next ? Thanks in advance. ...
vin_vrs
Offline Send Email
May 2, 2009
8:49 am

hi step follow  take tarball of kernel source code from  kernel.org  extracted it u also grt latest kernel version in linux 4 u magzine  cds ,  step top...
janeesh attri
janeeshattri
Offline Send Email
May 2, 2009
5:50 pm

... If it is a native build - simpler yet. Get the existing .config from /usr/src/linux<version from uname>/.config and put it in the untarred kernel source....
Mayank
mr.mynk@...
Send Email
May 2, 2009
5:50 pm

Hi There, *Step 1 *Download the kernel from below link ftp://ftp.kernel.org/pub/linux/kernel/v2.6 *Step 2* Extracting the kernel if its a archive with tar.gz...
vishal.gnutech@...
sharmav204
Offline Send Email
May 4, 2009
8:10 am

Hi vishal, Firstly thanks for your info on how to compile linux kernel. The info that you passed on was very helpful , so for so good, everything went fine, ...
vinod
vin_vrs
Offline Send Email
May 5, 2009
8:15 am

Dear Vinod, make && make modules_install && make install if you see make install in the end it installs the kernel and put the image in boot partition now if...
vishal.gnutech@...
sharmav204
Offline Send Email
May 6, 2009
5:25 am

If you are compiling the kernel for use on your local machine the following link is pretty good - http://www.howtoforge.com/kernel_compilation_ubuntu specific...
Mayank
mr.mynk@...
Send Email
May 6, 2009
5:55 am

Dear Friends, Thanks for your constant support and your valuable inputs, which helped me a lot in compilation of kernel. Finally i have managed to compile the...
vinod
vin_vrs
Offline Send Email
May 12, 2009
11:34 am

... One of the things I discovered recently and was looking for quite sometime was a single place with all the kernel API. The best Documentation can be found...
Mayank
mr.mynk@...
Send Email
May 12, 2009
12:02 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help