next up previous contents
suivant: Driver nForce2-ST monter: Configuration précédent: Configuration   Table des matières

Sous-sections

Kernel Linux

Il faut maintenant recompiler encore le noyau pour que les modules se chargent correctement, en effet les modules des disquettes driver-[1-4].bin ne correspondent pas avec le noyau de la disquette rescue.bin.

Linux-2.4.22

Dans un premier temps récupèrez le dernier noyau stable en date :

$ cd /usr/local/src/
$ wget www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2 
$ tar xjvf linux-2.4.22.tar.bz2
$ ln -s linux-2.4.22 linux

Et recompilez le noyau (à la sauce Debian) :

$ cd /usr/local/src/linux-2.4.22/
$ cp /boot/config-2.4.22-xfs .config
$ make oldconfig 
$ make menuconfig
$ make-kpkg --rootcmd fakeroot clean
$ make-kpkg --rootcmd fakeroot \
            --append-to-version -bunny --revision 1 \
            kernel_image
# dpkg -i kernel-image-2.4.22-bunny_1_i386.deb
# reboot

Configuration du noyau

Récupèrez ensuite le fichier de config qui a servi à construire le kernel-image-2.4.22-1-k7 dans l'archive kernel-image-2.4.22-1-k7_2.4.22-3_i386.deb :

$ cd /usr/local/src/
$ wget ftp.fr.debian.org/.../kernel-image-2.4.22-1-k7_2.4.22-3_i386.deb
$ ar -x kernel-image-2.4.22-1-k7_2.4.22-3_i386.deb data.tar.gz
$ gzip -dc data.tar.gz | tar xvf -

$ cd /usr/local/src/linux-2.4.22/
$ cp /usr/local/src/data/config-2.4.22-1-k7 .config
$ make oldconfig 
$ make menuconfig

Les détails sur les options de configuration du noyau sont disponible à l'adresse : http://casteyde.christian.free.fr/system/linux/guide/online/a9572.html.

$ make-kpkg --rootcmd fakeroot clean
$ make-kpkg --rootcmd fakeroot \
            --append-to-version -k7-bunny --revision 5 \
            kernel_image
# dpkg -i kernel-image-2.4.22-k7-bunny_5_i386.deb
# reboot

Message : Après 5 révisions me voici donc avec un noyau 2.4.22 ``tuné'' pour ``Bunny'' !



MiKael 2003-12-03