slitaz-doc-wiki-data diff pages/en/guides/kernel.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pages/en/guides/kernel.txt	Sat Feb 26 12:17:18 2011 +0000
     1.3 @@ -0,0 +1,86 @@
     1.4 +====== Build your own custom Linux Kernel for SliTaz ======
     1.5 +
     1.6 +===== Prepare your system =====
     1.7 +
     1.8 +
     1.9 +    * Install the slitaz-toolchain meta package. This package contains the required base files.
    1.10 +        * binutils
    1.11 +        * linux-headers
    1.12 +        * glibc-dev
    1.13 +        * gcc
    1.14 +        * make
    1.15 +
    1.16 +<code>
    1.17 +# tazpkg get-install slitaz-toolchain
    1.18 +</code>
    1.19 +
    1.20 +    * Install the packages required to configure and compile the kernel sources.
    1.21 +        * ncurses-dev
    1.22 +        * perl
    1.23 +
    1.24 +<code>
    1.25 +# tazpkg get-install ncurses-dev
    1.26 +# tazpkg get-install perl
    1.27 +</code>
    1.28 +
    1.29 +    * SliTaz provides a linux-source package. The kernel source tree will be downloaded from the mirror, installed to the /usr/src/linux-<VERSION> directory, and patched for SliTaz..
    1.30 +
    1.31 +<code>
    1.32 +# tazpkg get-install linux-source
    1.33 +# /usr/bin/get-linux-source
    1.34 +# ls -l /usr/src
    1.35 +lrwxrwxrwx    1 root     root           21 Jul 21 21:27 linux -> linux-2.6.25.5-slitaz
    1.36 +drwxrwxr-x   23 root     root         4096 Jul 21 22:41 linux-2.6.25.5-slitaz
    1.37 +-rw-r--r--    1 root     root     48589640 Jul 21 21:28 linux-2.6.25.5.tar.bz2
    1.38 +</code>
    1.39 +
    1.40 +===== Configure and Compile =====
    1.41 +
    1.42 +The Linux kernel source tree is now ready to configure and compile.
    1.43 +
    1.44 +    * Go to the directory that contains the kernel source tree.
    1.45 +<code>
    1.46 +# cd /usr/src/linux
    1.47 +</code>
    1.48 +
    1.49 +    * Prepare the build from the default configuration.
    1.50 +<code>
    1.51 +# make oldconfig && make prepare
    1.52 +</code>
    1.53 +
    1.54 +     * Modify the kernel configuration to your needs, and compile.
    1.55 +     * 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.
    1.56 +<code>
    1.57 +# make menuconfig
    1.58 +# make
    1.59 +# make modules 
    1.60 +# make modules_install
    1.61 +# cp arch/x86/boot/bzImage /boot
    1.62 +</code>
    1.63 +
    1.64 +    * Configure the boot-loader (optional)
    1.65 +<code>
    1.66 +# leafpad /boot/grub/menu.lst
    1.67 +</code>
    1.68 +
    1.69 +    * Add the new kernel to the list
    1.70 +<file>
    1.71 +# My kernel:
    1.72 +title 	SliTaz GNU/Linux (cooking) (Kernel <VERSION>)
    1.73 +		root (hd0,1)
    1.74 +		kernel /boot/bzImage root=/dev/sda2
    1.75 +</file>
    1.76 +
    1.77 +---- 
    1.78 +\\
    1.79 +^  Page Review Section  ^^ 
    1.80 +|Quality| Medium  |
    1.81 +|Review| Minor/Major Updates  |
    1.82 +|Priority| Medium |
    1.83 +|Problems| add a [[http://forum.slitaz.org|forum post link]]|
    1.84 +|:::     | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
    1.85 +|How to Improve| Add "tazwok cook linux"|
    1.86 +|::: |  |
    1.87 +
    1.88 +\\
    1.89 +----
    1.90 \ No newline at end of file