|
Compiling a kernel in Debian |
|
|
|
|
Written by Administrator
|
|
In Debian, the kernel can perform in a traditional (manual), as in all other distributions, as well as the package kernel-package. I will try to bring the installation of the latter method because it is simpler in implementation, it takes us less time for it to get ready deb packages, containing an image with the kernel modules, header files, source code, and even documentation.
To be able to compile without any obstacles should be installed in the system the following components: # Gcc, Libc6-dev # # Bin86 # Ncurses-dev (only during the installation of the config menu) # Tk-dev (If you use xconfig) # Fakeroot (if we want to run the installation as an unsecured liabilities user) so if everything is already there we need to take to work.
At the beginning of the source Downloads:
apt-get install kernel-source-2.4.18
After you install the source can be found in the directory / usr / src in the file kernel-source-2.4.18.rar.bz2. To uncompress the file and create a directory structure containing the source files, issue the command:
zjf tar-kernel-source-2.4.18.tar.gz2
Now, take the package to build the kernel:
Use the command make-kpkg build menu-config configuration file that contains the modules you want to have in our kernel. When you move the menu pomacą arrows. If you want to permanently add the driver to select it by pressing "Y" if you want to exclude it from the kernel to mark it by pressing "N" if you want the driver to be accessible in the future as ładowalny module to it key zaznaczmy "M". On the submenu, leaving the key "ESC".
After you select the modules corresponding to our type
make-kpkg clean
and then build the deb package using the command:
make-kpkg-revision kernel_headers kernel_image NazwaKernela0.1
Now wait a bit until the directory is set up above 2 files. deb install it like any other paczkę.deb
dpkg-i kernel-image-2.4.18_NazwaKernela0.1_i386.deb dpkg-i kernel-headers-2.4.18_NazwaKernela0.1_i386.deb
And our new kernel is now ready for use. Just now, that will reset the computer and start it again now with the new kernel |