How To Compile Linux Kernel On Ubuntu
This time I will share about how to upgrade our ubuntu kernel. Incidentally, I also recently upgraded my ubuntu 11:10 kernel from 3.0.0 to 3.3.7. Actually there are several ways you can do:
- With the command sudo "apt-get dist-upgrade" on our terminals , < === this is done while online .
- Using the debian package , click here to find out how. < ==== Complicated for those who do not want to compile .
- Compiling our own kernel download, this one method that I will discuss at this time
Okay, we just started .
First we check first the latest kernel that has been stable at kernel.org . When I check its, the latest stable version immediately wrote is 3.3.7.
Next, still in the preparation stage perform the following steps :
Make sure we have updated GCC , done with the command
$ Sudo apt-get install gccInstall ncurses development package
$ Sudo apt-get install libncurses5-devThen update the system
$ Sudo apt-get update && sudo apt-get upgradeThe second step :
Extract the kernel that we downloaded earlier to the folder /usr/src .
$ Sudo tar -xvf linux-3.3.7.tar.bz2 -C /usr/src/Now we go into the folder .
$ cd /usr/src/linux-3.3.7/
$ sudo make menuconfig
The above command is used to configure the Linux kernel . After you run the command , you will get a pop up with a list of the menu and you can choose which items to a new configuration . If you are familiar with the configuration menu only check the ext4 file system and check if it ticked / selected or not . If not , select and save the configuration . See screen shot below for menuconfig .
If you've completed and save, now compiling the kernel:
$ sudo makeFor installation command:
$ sudo make install modules_installNow check the files in the folder / boot / if already there :
- System.map-3.3.7
- vmlinuz-3.3.7
- initrd.img-3.3.7
- config-3.3.7
If you can not find the file initrd.img-3.3.7 then you just need to make it .
$ Sudo update-initramfs -u -k 3.3.7
then restart your computer , then check with the command "uname -r".
0 comments:
Post a Comment