If you know how to compile a kernel in Ubuntu 11.10 on your PC, hopefully this guide can help you.
Quick and Easy PC Repair
The number of users interested in building their own kernel achieves this because they have Ubuntu installed on their system, and please make minor kernel changes for that system. In many cases, the user is just looking for a kernel config switch.
The goal of this page is always to provide the user with as little information as possible directly to achieve the goal of developing and building a simple kernel modification and installation of the kernel. It is not intended as a guide to developing the Ubuntu kernel.
If you haven’t already built your method on the kernel, there are several packages that are required to build it successfully. You can install it with:
sudo apt-get build-dep linux linux-image - $ (uname -r)
Unfortunately, not all of the functions listed above will install all required dependencies. The current version of the Goofy Disco Release requires the correct add-on packages.
sudo apt-get is installed in libncurses-dev gawk flex bison libssl-dev openssl dkms libelf-dev libudev-dev libpci-dev liliberty-dev autoconf
If you can use Git, install it from:
sudo apt-get load git
The above command requires your platform to have the correct deb-src in /etc/apt/sources.list . An example of a dingo disco you must have:
deb-src http://archive.ubuntu.com/ubuntu disco maindeb-src http://archive.ubuntu.com/ubuntu disco-updates main
Getting One Of Our Sources For The Ubuntu Version
There will of course be several different ways to get the kernel source. The two main routes are fully documented.
If you have the correct version of Ubuntu installed and would like to modify any kernel installed on your device, use the apt-get method (detailed below) to get the sources.
>However, just like you want to get the current global sources for the current Ubuntu version and then make changes to them, use this git method (described below) to take advantage of the sources.
The source code generated by a specific binary package can be obtained by requesting apt-get source
apt-get command line: linux-image-unsigned source code - $ (uname -r)
All Ubuntu kernel sources are processed by git at the end. The source code for each tool is stored in its git repository at kernel.ubuntu.com . To get any local copy you can absolutely git-clone any release repository you are interested in, as described below.
git clone git: //kernel.ubuntu.com/ubuntu/ubuntu-
git identical copy of git: //kernel.ubuntu.com/ubuntu/ubuntu-disco.git
This step can be skipped if configuration changes are not normally required. The build process maintains configuration pertaining to various sub-configuration files. Probably the easiest way to change something here is to do the following:
chmod a + x debian / ruleschmod a + x debian / scripts / *chmod a + x debian / scripts / misc / *LANG = C fakeroot debian / clean rulesLANG = C fakeroot debian / rules editconfigs # You call to iterate over all of them (Y, Exit, Y, Exit ..) or get a configuration complaint later
This will use the initial configuration for a specific archivethe texture / architecture supported when calling menuconfig to edit your own config file. Chmod is necessary because the way you build the source package will almost certainly lead to loss of executable sections in your scripts.
To keep your kernel “newer” than the current Ubuntu kernel your company is based on, consider adding a good local version modifier. At the end of the version number in most debian.master / changelog files, add one thing like “test1” before generating it. This will help determine which kernel it is running on, since it also uname -a relies on itself. Note that if a significant new kernel is released, Ubuntu will be newer than your own personal kernel (which will need to be rebuilt), so maintenance is considered necessary when upgrading. NOTE. Try not to use CONFIG_LOCALVERSION as it _fires_ the assembly.
Building the kernel is pretty straightforward. Change the working directory back to the root directory of the kernel buy tree, then enter the following commandsdy:
LANG = C fakeroot debian / clean rules# build faster:LANG = C fakeroot debian / rules header binary binary common perarch binary# If you think you need low latency Linux tools, do the following:LANG = C fakeroot debian / binary rules
On a successful build, three .deb binary package images are created in the website directory above the build root directory. For example, when building the main kernel with version 4.8.0-17.19 on a useful AMD64 system, these three are four) (or.
CD ...ls * .deb linux-4.8.0-17_4.8.0-17.19_all.deb headers linux-4.8.0-17-generic_4.8.0-17.19_amd64.deb headers linux-image-4.8.0-17-generic_4.8.0-17.19_amd64.deb
in later versions you will also find the linux-extra- package, which the client should also install if available.
Testing The Most Important New Kernel
Install a 3pack TV (on your build system or another target system) by running dpkg -i and restarting: then
sudo dpkg -i linux * 4.8.0-17.19 * .debsudo restart
It is sometimes useful to display debug symbols as well. Two additional steps may be required. Must be installed н the first pkg-config-dbgsym. Second, you need to set skipdbg = false when running your binary targets *.
sudo apt-get install pkg-config-dbgsymLANG = C fakeroot debian / clean rulesLANG = C fakeroot debian / rules binaries-headers binary-common-binary-perarch skipdbg = false
See Also Above
The instructions provide a nice and very simple recipe for getting some source code and then creating it. If you want to do more kernel development than just configuration, check out the changes:
Jak Skompilowac Jadro W Ubuntu 11 10
Hoe De Kernel Te Compileren In Ubuntu 11 10
Wie Man Den Kernel In Ubuntu 11 10 Kompiliert
Hur Man Kompilerar Karnan I Ubuntu 11 10
Como Compilar El Kernel En Ubuntu 11 10
Comment Compiler Le Noyau Dans Ubuntu 11 10
Kak Skompilirovat Yadro V Ubuntu 11 10
Como Compilar O Kernel No Ubuntu 11 10
우분투 11 10에서 커널을 컴파일하는 방법
Come Compilare Il Kernel In Ubuntu 11 10