Today we will initiate first step to create our own kernel. So carefully following steps to build kernel inside ubuntu.I am using 64-bit ubuntu 13.10.
First of go to www.kernel.org and download any kernel version (recommended latest stable version)
After downloading Right-click and extract here.
then open terminal (CTRL+ALT+T)
STEP 1: Enter into root user
enter your root password.
If it gives any error even if you are typing your password then reset it by typing sudo root passwd.
then enter new unix password that’s it.
Now enter into root user.When you enter into root user $ will become # in terminal.
type cd Downloads/ to change your directory
and create directory named kernel by typing mkdir kernel
For a while open your Download folder into ubuntu .
copy linux-x.x.x to kernel directory.
Now we need to install some necessary packages inside system so
open new terminal (CTRL+ALT+T) and type
sudo apt-get install gcc libncurses5-dev dpkg-dev
step 5 :
After completion of installation Open new terminal (CTRL +ALT +T )
again enter into root user and type your password
change directory type
choose as per your version instead using linux-3.10.71
step 6 :
after some time new GUI will appear inside terminal
select general setup
then local version- append to kernel release
now give any name there .I have given punit-custom
save the customization. and click on exit until you come to default terminal window.
make -j 3 KDEB PKGVERSION=1.punit-custom deb-pkg
you have to type your custom name instead of punit-custom
It will take around 30 minutes …
Final step : sudo dpkg -i ../linux*.deb
now reboot your computer.you will final custom kernel in your advance option