Créer votre propre kernel Linux personnalisé

Préparez votre système

# tazpkg get-install slitaz-toolchain
# tazpkg get-install ncurses-dev
# tazpkg get-install perl
# tazpkg get-install linux-source
# ls -l /usr/src
lrwxrwxrwx    1 root     root           21 Jul 21 21:27 linux -> linux-2.6.25.5-slitaz
drwxrwxr-x   23 root     root         4096 Jul 21 22:41 linux-2.6.25.5-slitaz
-rw-r--r--    1 root     root     48589640 Jul 21 21:28 linux-2.6.25.5.tar.bz2

Configuration et compilation

Les sources du kernel Linux sont maintenant prêtes à être configurées et compilées.

# cd /usr/src/linux
# make oldconfig && make prepare
# make menuconfig
# make bzImage
# make modules 
# make modules_install
# cp arch/x86/boot/bzImage /boot
# leafpad /boot/grub/menu.lst
# Mon kernel:
title 	SliTaz GNU/Linux (cooking) (Kernel <VERSION>)
		root (hd0,1)
		kernel /boot/bzImage root=/dev/sda2

À adapter à vos besoins, bien évidemment.



Section Révision de la page
Qualité Bonne
Revue
Priorité
Problèmes
Comment améliorer