How to install a custom Linux kernel Linux kernel is the heart of the http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu operating system." Ubuntu's own kernel usually contains all the drivers you need, but sometimes you want to tweak your kernel or if you need to recompile for specific reasons, this manual will help you. Like this less detailed document can actually be found in the kernel compilation Guide.
To create the kernel, you need to build-essential Fakeroot and kernel-package packages.
The kernel creation work is done in the/usr/src/directory, so adding SRC groups
bash:~$ sudo adduser my_username src Adding user my_username to group src ... Done.
Log off and log in again, or use Su to log on (toggle user):
bash:~$ su my_username bash:~$ groups My_username SRC Audio adm dialout cdrom filename video Plugdev
All group names are listed, and SRC is one of them.
Get Source code
You can search the kernel source code in the following way
bash:~$ Apt-cache Search Source 2.6
Select the kernel source code you want.
Problem: The kernel source code sometimes called kernel-source-2.6.5, and sometimes called linux-source-2.6.8.1, why?
Kernel-source from Debian,linux-source from Ubuntu. If possible, try to use Linux-source. All dependencies have not changed, though, and you can safely ignore them if you get an error warning like "uninstalled package Kernel-source" (Linux-source kernel source pack) via the '--bronson '.
Download the kernel source code using the following commands:
bash:~$ sudo apt install linux-source
It is recommended to install Libncurese-dev and Libqt3-dev packs, the first one is required by Menuconfig, the second is for Xconfig, and one of them is very small (see below)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.