Table des matières
- Linux Debian kernel + Grub 2 : installation des sources du noyau Linux
- qconf : Configuration graphique des options du noyau Linux
- Linux Debian kernel + Grub 2 : compiler le noyau Linux à la main
- Linux Debian kernel + Grub 2 : installation du package contenant le nouveau noyau Linux
- Linux Debian kernel + driver nvidia : compilation du driver nvidia pour le nouveau noyau Linux
- Debian noyau 2.6.37: «make xconfig» et erreur «scripts/kconfig/qconf.moc error»
Linux Debian kernel + Grub 2 : installer le noyau Linux nouvellement compilé
Date de publication: le vendredi 26 août 2011 à 14h47
Dernière modification: par Pascal BOYER le mercredi 29 février 2012 à 13h41
Pour installer le package contenant l'image du noyau que l'on vient de compiler, on lance la commande:
cd /usr/src/
dpkg -i linux-image-3.0.31_3.0.3-1_amd64.deb
Sélection du paquet linux-image-3.0.31 précédemment désélectionné. (Lecture de la base de données... 275482 fichiers et répertoires déjà installés.) Dépaquetage de linux-image-3.0.31 (à partir de linux-image-3.0.31_3.0.3-1_amd64.deb) ... Done. Paramétrage de linux-image-3.0.31 (3.0.3-1) ... Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/dkms 3.0.31 /boot/vmlinuz-3.0.31 run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.31 /boot/vmlinuz-3.0.31 update-initramfs: Generating /boot/initrd.img-3.0.31 run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.31 /boot/vmlinuz-3.0.31 run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.31 /boot/vmlinuz-3.0.31 Generating grub.cfg ... <===== À PARTIR D'ICI C'EST LA MISE À JOUR DE Grub 2 Found background image: yamaha.png Found linux image: /boot/vmlinuz-3.0.31 <===== C'EST L'IMAGE COMPRESSÉE DU NOUVEAU NOYAU Found initrd image: /boot/initrd.img-3.0.31 <===== CONTIENT TOUT CE QUI EST NÉCESSAIRE POUR FAIRE BOOTER LA MACHINE Found linux image: /boot/vmlinuz-3.0.0-1-amd64 Found initrd image: /boot/initrd.img-3.0.0-1-amd64 Found linux image: /boot/vmlinuz-2.6.32-5-amd64 Found initrd image: /boot/initrd.img-2.6.32-5-amd64 Found linux image: /boot/vmlinuz-2.6.26-2-amd64 Found initrd image: /boot/initrd.img-2.6.26-2-amd64 Found memtest86+ image: /boot/memtest86+.bin Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin done
Voici un article en anglais qui explique dans le détail le rôle et la structure du fichier initrd.img:
Puis on installe les en-têtes:
dpkg -i linux-headers-3.0.31_3.0.3-1_amd64.deb
Sélection du paquet linux-headers-3.0.31 précédemment désélectionné. (Lecture de la base de données... 276714 fichiers et répertoires déjà installés.) Dépaquetage de linux-headers-3.0.31 (à partir de linux-headers-3.0.31_3.0.3-1_amd64.deb) ... Paramétrage de linux-headers-3.0.31 (3.0.3-1) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.0.31 /boot/vmlinuz-3.0.31
On peut ensuite regarder le contenu du répertoire /boot/:
ls -la /boot/
total 58936 drwxr-xr-x 3 root root 4096 27 août 20:56 . drwxr-xr-x 27 root root 4096 27 août 20:49 .. -rw-r--r-- 1 root root 85694 25 janv. 2011 config-2.6.26-2-amd64 -rw-r--r-- 1 root root 106153 14 juin 14:59 config-2.6.32-5-amd64 -rw-r--r-- 1 root root 125334 24 juil. 07:09 config-3.0.0-1-amd64 -rw-r--r-- 1 root root 81911 27 août 20:22 config-3.0.31 <======== C'EST UNE COPIE DU FICHIER DE CONFIGURATION .config drwxr-xr-x 3 root root 12288 27 août 20:56 grub -rw-r--r-- 1 root root 6692795 21 mai 14:53 initrd.img-2.6.26-2-amd64 -rw-r--r-- 1 root root 8503288 14 août 09:37 initrd.img-2.6.32-5-amd64 -rw-r--r-- 1 root root 9588573 9 août 21:45 initrd.img-3.0.0-1-amd64 -rw-r--r-- 1 root root 4294542 27 août 20:56 initrd.img-3.0.31 -rw-r--r-- 1 root root 164508 19 mars 23:42 memtest86+.bin -rw-r--r-- 1 root root 166688 19 mars 23:42 memtest86+_multiboot.bin -rw-r--r-- 1 root root 1226655 25 janv. 2011 System.map-2.6.26-2-amd64 -rw-r--r-- 1 root root 1662199 14 juin 14:59 System.map-2.6.32-5-amd64 -rw-r--r-- 1 root root 2006671 24 juil. 07:09 System.map-3.0.0-1-amd64 -rw-r--r-- 1 root root 1836601 27 août 20:41 System.map-3.0.31 -rw-r--r-- 1 root root 1757488 25 janv. 2011 vmlinuz-2.6.26-2-amd64 -rw-r--r-- 1 root root 2420000 14 juin 14:57 vmlinuz-2.6.32-5-amd64 -rw-r--r-- 1 root root 2703344 24 juil. 07:03 vmlinuz-3.0.0-1-amd64 -rw-r--r-- 1 root root 2130960 27 août 20:41 vmlinuz-3.0.31
Le répertoire des modules
L'ensemble des modules/pilotes/drivers compilés sont installés dans le répertoire:
- /lib/modules/3.0.31/
Commentaires














