Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Home
Archives
About
How To Install
Privacy
Linux
Install
Home
How To Install
Contact
Error
Python
Todays Wisdom
Linux Support
Chrome
Ubuntu Support
Howto Compile and Install Linux Kernel 3.8 / 3.0 in Ubuntu 12.10,
12.04, 11.10, 11.04 and 10.04
Firefox
WordPress
Kernel
Circle Us on Google+
1/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Advertisements
Update: Follow the same steps to compile and install the Linux Kernel 3.8.8
/ 3.7 / 3.6 / 3.4 / 3.2 / 3.0.x in your system.
Dependencies
To compile Linux Kernel the following are required to be installed.
gcc latest version,
ncurses development package and
system packages should be up-to date
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
2/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
To install the dependencies run the following commands in terminal and type
the password for the user, when prompted.
Circle Me on Google+
For gcc
sudo apt-get install gcc
For ncurses development package
sudo apt-get install libncurses5-dev
After installing the above packages then update your system by running the
following command
sudo apt-get update && sudo apt-get upgrade
Popular
WED
24
Recent
Random
SUN
07
Now download the Linux Kernel 3.0 from kernel.org or by using the below
command.
Note:
If you are trying with Linux Kernel 3.8.3 / 3.7 / 3.4.6 / 3.3 / 3.2 / 3.1 / 3.0.x then
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
THU
04
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
just replace the name linux-3.0 with linux 3.8.3 / linux-3.7 / linux-3.4.6 /
linux-3.3 / linux-3.2 / linux-3.1 / linux-3.0.x in all commands below.
THU
03
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
SAT
06
SUN
28
THU
04
the commands one by one and type the password for the user, when
prompted.
To Configure
sudo make menuconfig
The above command is used to configure the Linux kernel. Once you execute
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
SAT
06
cd /usr/src/linux-3.0/
Now you can configure, compile and install Linux Kernel 3.0 in your system. Run
cd Downloads/
To extract the tar file run the following command. Type the password for the
user when prompted.
WED
10
SUN
16
4/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
the command, you will get a pop up window with the list of menus and you can
select the items for the new configuration. If your unfamiliar with the
configuration just check for the file systems menu and check whether ext4 is
chosen or not, if not select it and save the configuration. Check the screen shot
below for menuconfig.
If you like to have your existing configuration then run the below command.
sudo make oldconfig
There are other alternate configuration commands are available and you can
find them in README file under linux-3.0 directory.
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
5/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
To Compile
sudo make
The above command is used to compile the Linux Kernel. It will take some time
to complete it, approximately 40 min to 50 min it depends on your system
configuration.
To Install
sudo make modules_install install
The above command will install the Linux Kernel 3.0 into your system. It will
create some files under /boot/ directory and it will automatically make a entry
in your grub.cfg. Check whether it made correct entry and check for the files it
created.
The files under /boot/ directory are,
System.map-3.0.0
vmlinuz-3.0.0
initrd.img-3.0.0
config-3.0.0
If you unable to find the initrd.img-3.0.0 file then create it. Run the below
command to create it.
sudo update-initramfs -u -k 3.0.0
Update
If the above command unable to update / generate the initramfs then run the
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
6/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
7/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
To modify the grub.cfg under /boot/grub/ directory. Open the file using
below command.
sudo gedit /boot/grub/grub.cfg
After modifying your grub.cfg, update your grub by running the following
command.
sudo update-grub
Restart your system by default it will boot in Ubuntu 3.0.0, you can able to see
while booting. To check after booting open a terminal and type uname -r.
Check the screen shot below.
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
8/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Share
ALSO ON HOWOPENSOURCE
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
WHA T ' S T HI S ?
9/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
WHA T ' S T HI S ?
ALSO ON HOWOPENSOURCE
PBH Network
65 comments
Community
c ris m
Share
Login
a year ago
The upgrade worked (with Ubuntu 10.04, to kernel 3.6.2), and my microphone works
again, which was my primary goal.
However, the apt repositories I have now seem obsolete. Any suggestions on how to
configure apt to get updates to the kernel, headers, and drivers?
1
S habbir
Reply Share
6 months ago
John Ros e
a year ago
After installing kernel 3.0 on Ubuntu Lucid, touchpad does not work on Acer V5 laptop. Any
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
10/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
After installing kernel 3.0 on Ubuntu Lucid, touchpad does not work on Acer V5 laptop. Any
ideas?
Reply Share
John Ros e
a year ago
I have a Sandy Bridge graphics card. Instead of the boot splash screen, I get a blank
screen. Any ideas on how to fix?
Reply Share
TU Y UQIA N
a year ago
Y OO
a year ago
jit en
a year ago
hey i got a error like not have enough space can you tell how it can be solve?
{standard input}: Assembler messages:
{standard input}: Fatal error: can't write net/netfilter/.tmp_xt_TCPMSS.o: No space left on
device
{standard input}: Fatal error: can't close net/netfilter/.tmp_xt_TCPMSS.o: No space left on
device
make[2]: *** [net/netfilter/xt_TCPMSS.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
jayesh@ubuntu:/usr/src/linux-3.0$ sudo make modules_install install
[sudo] password for jayesh:
cp: cannot stat `/usr/src/linux-3.0/modules.builtin': No such file or directory
make: *** [_modinst_] Error 1
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
11/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
A s hfaq s haik h
a year ago
Well I went for compilation of Kernel 3.5.1 for Debian (LMDE) all the steps I followed as
per your instructions. Although it took 2 hrs for the entire process it was completed with
errors of DKMS Like:
dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0.
> Error! Bad conf file.
> File:
> does not represent a valid dkms.conf file.
Well I went ahead ignoring this, as the four set of files were in place and after updategrub, even the header were in place.
But.. When I booted, the 'X" won't come up! instead the text mode asking me to log in
came, and a pop up indicating the X server.xorg need to be in place, even the latest nvidia
driver I tried to install via sh command, wont install after the acceptance screen. Help me
out I will not sit comfortably unless I boot with this latest kernel !!
Reply Share
S hrey as
Hi Ashfaq,
What exactly happens after the acceptance screen while installing the Nvidia
drivers? Error message ?
Reply Share
S andy
a year ago
Thanks Mani for such nice and clear steps to build and install the kernel image. I have
done it first time on my Ubuntu 12.04 LTS running with 3.2.0.23 and upgraded to 3.4.6
successfully.
I had only one issue as: __modver_version_show undefined error when building linux
kernel 3.0.4 version. And this was resolved just updating the CONFIG_RTS5139=m to
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
12/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
kernel 3.0.4 version. And this was resolved just updating the CONFIG_RTS5139=m to
CONFIG_RTS5139=n followed by re-compilation.
After the install command, all the four files above have been successfullly created under
/boot/ and I need not had to do it manually.
Thanks
Sandy
Reply Share
S amir
a year ago
Hi,
I am done with the installation of the latest kernel. Now I have to install CILK but since on
extracting the package it doesn't contain the configure file I cant make and then install it.
Im new to linux so can you please guide me. I know im posting this at the wrong place but
im completely stuck.
Reply Share
S amir
Rupes h K P
2 years ago
13/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Manivannan
Hi Rupesh,
Your current kernel is newest and stable one, May I know why you are trying to
downgrade the kernel by compiling the oldest version? you can try the compilation
on latest Linux kernel.
Reply Share
S t efano
2 years ago
After compiling and installing, the freshly compiled kernel doesn't seem to find the device
(with correct UUID, same as used on precompiled kernels) and the system drops a
shell... Any idea?
TIA,
Stefano
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
14/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Stefano
Reply Share
Confus er
2 years ago
Thanks
My linux mint kernel upgraded to 3.3.5
but when i restart it, I cant use Graphic Interface, it automatically show terminal interface, i
had used ctrl+alt+f7 for switch to GUI, but it just showed yellow strip on the screen
what must i do? please help me..
Reply Share
Ros han
2 years ago
buc k y
2 years ago
Hi I did kernel upgrade to 3.0.0 but at boot I get error msg saying "MDIO-GPIO" already
registered. The system hangs and falls back to command line and no graphics. I'm using
ubuntu 10.10. and old kernel 2.6.35.32
Reply Share
2 years ago
15/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
OBJCOPY arch/x86/boot/vmlinux.bin
BUILD arch/x86/boot/bzImage
Setup is 16800 bytes (padded to 16896 bytes).
System is 4599 kB
CRC 569f109b
Kernel: arch/x86/boot/bzImage is ready (#2)
Building modules, stage 2.
MODPOST 3268 modules
ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined!
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Reply Share
lz y ers t e
B ez han
2 years ago
Hi,why im trying to use "apt update -grub " it's not working in command line
plz help wt the problem,,,,my linux MINT so i got problem with GRUB n i delete the ubuntu
grub 1.9 wanna update MINT grub
Reply Share
paijo
2 years ago
16/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
s at his h
how i am having ubuntu 11.10 .. for study purpose i want to learn abt kernel
compilation. I want to know how to edit the grub that i can able to choose my
kernel. Previously i used slackware where i edited lilo to make it work.
Reply Share
Numb
2 years ago
hi
i have a problem
the initrd.img-3.2.9 does not existed
i do all the job successfully but i can not create it
help me please
i use kernel 3.2.9 libre
Reply Share
Manivannan
Hi Numb,
Use this command "sudo update-initramfs -c -k 3.2.9" to create it.
Reply Share
t ilak
2 years ago
thanks for the wonderful detailed explanation. this went flawless. i just upgraded my kernel
from 3.0.14 to 3.2.1 on ubuntu 11.10
Reply Share
gvk 51
2 years ago
Hey iam trying to build 2.6.35 in ubuntu 11.10 64 bit, and iam messed up with following
errors
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
17/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Julian Melendez
2 years ago
Your tutorial has been fully followed with GREATTTTTTT !!! Results usin mythbuntu
11.10 v ...
Thanks a lot
Reply Share
k as hy ap
2 years ago
I have got the same error as bhavin has got., I am trying to upgrade kernel on a vm
machine (Xenserver)
Reply Share
Manivannan
Hi guys,
I have not yet tried in vm machines. I will try to check your errors and will get back
to you on asap.
Reply Share
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
18/25
1/6/14
Reply Share
Mot iur
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
2 years ago
Hi, I want to get the option of booting to one of the desired kernels e.g 2.6 or 3.1 during
startup , not something default . The steps above directly took me to 3.1.5 without any
chance of rebooting to another kernel . Is there a way to attach that option .
Reply Share
Manivannan
Hi Motiur,
Modify your grub and make entry for other kernel(2.6), then set timeout=10.
Reply Share
bhavin
2 years ago
Hi,
I'm using this method to compile kernel 3.1.2 and getting following error.
Please help me out from this trouble. And let me know what is missing for compiling(for
make command).
Here is error code.
"samples/hidraw/hid-example.c:49: warning: unused variable info
samples/hidraw/hid-example.c:48: warning: unused variable rpt_desc
samples/hidraw/hid-example.c: In function bus_str:
samples/hidraw/hid-example.c:171: error: BUS_VIRTUAL undeclared (first use in this
function)
make[2]: *** [samples/hidraw/hid-example] Error 1
make[1]: *** [samples/hidraw] Error 2
make: *** [vmlinux] Error 2
"
thanks & regards,
bhavin
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
19/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
bhavin
Reply Share
rh15c
2 years ago
fiuuhhh....got problem while running make, am using ubuntu 10.04 kern 2.6.32, want to
upgrade to kern 3.0, i found error while running make and can't solve it, would you please
help me? thanks...
Reply Share
Manivannan
Hi rh15c,
What error you got while running make?? paste the error here...
Reply Share
DeMus
2 years ago
Hi,
Can somebody explain to me if there are differences, and if so which, between installing a
pre-compiled kernel and compile one with the above mentioned instructions?
I have installed kernels before but always the pre-compiled ones. Now I just wonder will it
make a difference?
Who can help me with this question?
Reply Share
JA I s A THIS H
Hi,
There is difference between pre-compiled kernel and customised kernel.
In Case of customised kernels,
the kernel can be customised to work for specific hardware and user needs.
for e.g you don't want someone to access the NTFS partition on linux machine..
Then u can uncheck the NTFS support while customising the kernel.
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
20/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Then u can uncheck the NTFS support while customising the kernel.
Then when booted using customised kernel it cannot mount NTFS...
By this way customised kernels help in adding drivers for printers, Lan ports etc.
for the latest ones which are not supported by pre-compiled kernels..
Reply Share
hey
2 years ago
E rwin
2 years ago
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
21/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Manivannan
Hi Erwin,
I am not clear about this errors, Here you are building a new kernel, If you just want
to update the kernel to new one (3.1/3.0.4) then you can follow this guide
www.howopensource.com/.
Reply Share
Manivannan
E rwin
Thank you very much, it works now for me. I had missed the above
link.
Reply Share
gos ia
2 years ago
Great tutorial. Had problems with kernel for the last few days. Its really helpful for
beginner. Thank you
Reply Share
Manivannan
Hi Gosia,
Thanks and Welcome to HowOpenSource :)
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
22/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Reply Share
E rwin
Hello, according to the dscription, I installed kernel 3.0.4 for ubuntu 11.10
No problems with startup, but I need to have :
ubuntu@ubuntu-Aspire-5000:~$ sudo apt-get install linux-headers-`uname -r`
Paketlisten werden gelesen... Fertig
Abhngigkeitsbaum wird aufgebaut
Status-Informationen einlesen... Fertig
E: Paket linux-headers-3.0.4 kann nicht gefunden werden
E: Mittels regulrem Ausdruck linux-headers-3.0.4 konnte kein Paket gefunden
werden
> linux-headers-3.04 is not available :-(
and I also see only :
ubuntu@ubuntu-Aspire-5000:~/rtl2832u-new-3.0$ ls /usr/src
linux-3.0.4 linux-headers-3.0.0-12 linux-headers-3.0.0-12-generic
any idea ?
Reply Share
Das t agir
2 years ago
Manivannan
Hi Dastagir,
Make a menuentry in your grub.cfg file. The menuentry should be like the screen
shots which i have given under "update-initramfs" step.
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
23/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Reply Share
Das t agir
das t agir
thanks for ur quick reply. Very good guy. But u said if i unable to find
initrd.img-3.0.0 in /boot directory. then i should run sudo update-initramfs -u
-k 3.0.0. i found them when i ran sudo make modules_install install. so i
didn't run sudo update-initramfs -u -k 3.0.0. Though i found all four things
under /boot directory i am still missing grub in /etc/default directory. and
one more thing. i wanna do kernel programming. what are the procedures
or steps. thanks again. god bless u
Reply Share
B en
2 years ago
Hi:
I tried this, but how do I get /usr/lib/firmware/3.0.0 file.
In my last step sudo updatre initrm, it gives errors saying missing firmware.
I hope you are still reading the blog!
Reply Share
Su b s cri b e
Ad d D i s q u s to yo u r s i te
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
24/25
1/6/14
Howto compile Linux kernel 3.8 / 3.x in Ubuntu 13.04 12.10 12.04
Home
Archives
Advanced Search
About
Privacy
www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
Contact
25/25