Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:guides:kernel [2010/02/23 20:51] linea created |
en:guides:kernel [2011/01/06 21:40] (current) woodt Include /usr/bin/get-linux-source command. |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Build your own custom Linux Kernel for SliTaz ====== | ====== Build your own custom Linux Kernel for SliTaz ====== | ||
- | === Prepare your system === | + | ===== Prepare your system ===== |
Line 28: | Line 28: | ||
<code> | <code> | ||
# tazpkg get-install linux-source | # tazpkg get-install linux-source | ||
+ | # /usr/bin/get-linux-source | ||
# ls -l /usr/src | # ls -l /usr/src | ||
lrwxrwxrwx 1 root root 21 Jul 21 21:27 linux -> linux-2.6.25.5-slitaz | lrwxrwxrwx 1 root root 21 Jul 21 21:27 linux -> linux-2.6.25.5-slitaz | ||
Line 34: | Line 35: | ||
</code> | </code> | ||
- | === Configure and compile === | + | ===== Configure and Compile ===== |
The Linux kernel source tree is now ready to configure and compile. | The Linux kernel source tree is now ready to configure and compile. | ||
- | * Go to the kernel source tree directory. | + | * Go to the directory that contains the kernel source tree. |
<code> | <code> | ||
# cd /usr/src/linux | # cd /usr/src/linux | ||
</code> | </code> | ||
- | * Prepare the build. | + | |
+ | * Prepare the build from the default configuration. | ||
<code> | <code> | ||
# make oldconfig && make prepare | # make oldconfig && make prepare | ||
Line 49: | Line 50: | ||
* Modify the kernel configuration to your needs, and compile. | * Modify the kernel configuration to your needs, and compile. | ||
+ | * The //menuconfig// allows you to customise the kernel, which is built into the //bzImage// file. Any //modules// are built and then //install//ed in to the ///usr/include// directory. You should then copy the kernel itself to the ///boot// directory. | ||
<code> | <code> | ||
# make menuconfig | # make menuconfig | ||
- | # make bzImage | + | # make |
# make modules | # make modules | ||
# make modules_install | # make modules_install | ||
Line 58: | Line 59: | ||
</code> | </code> | ||
- | * Configure the bootloader (optional) | + | * Configure the boot-loader (optional) |
<code> | <code> | ||
- | # leafpad /boot/grub/menu/lst | + | # leafpad /boot/grub/menu.lst |
</code> | </code> | ||
- | * And add. | + | * Add the new kernel to the list |
- | <code> | + | <file> |
# My kernel: | # My kernel: | ||
title SliTaz GNU/Linux (cooking) (Kernel <VERSION>) | title SliTaz GNU/Linux (cooking) (Kernel <VERSION>) | ||
root (hd0,1) | root (hd0,1) | ||
kernel /boot/bzImage root=/dev/sda2 | kernel /boot/bzImage root=/dev/sda2 | ||
- | </code> | + | </file> |
+ | |||
+ | ---- | ||
+ | \\ | ||
+ | ^ Page Review Section ^^ | ||
+ | |Quality| Medium | | ||
+ | |Review| Minor/Major Updates | | ||
+ | |Priority| Medium | | ||
+ | |Problems| add a [[http://forum.slitaz.org|forum post link]]| | ||
+ | |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]| | ||
+ | |How to Improve| Add "tazwok cook linux"| | ||
+ | |::: | | | ||
- | Of course, adapt to your needs… | + | \\ |
+ | ---- |