Bonsoir à tous ;
Voulant profiter sur ma Etch du dernier kernel en date qui est disponible sur le portail kernel.org ( version 2.6.24-4 ), j’ai tenté une compilation/installation en suivant la procédure suivante :
I. Installation des paquets nécessaires :
En tant qu’utilisateur root :
aptitude install build-essential kernel-package fakeroot libncurses5-dev
II. Téléchargement du noyau :
En tant qu’utilisateur normal ( non root ) :
$ cd ~/Desktop
$ mkdir kernel
$ cd kernel
$ wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.4.tar.bz2
$ tar -xjf linux-2.6.27.4.tar.bz2
$ ln -s ./linux-2.6.27.4 ./linux
$ cd linux
III. Importation de l’ancien fichier de configuration, Configuration et Compilation :
En tant qu’utilisateur normal ( non root ) :
$ fakeroot make clean && fakeroot make mrproper
$ cp /boot/config-2.6.18-6-686 ./.config
$ fakeroot make menuconfig
et dans le menu :
--- Load an Alternate Configuration File
--- (.config)
--- < Exit >
Do you wish to save your new kernel configuration?
<ESC><ESC> to continue.
--- < Yes >
et :
$ make-kpkg --rootcmd fakeroot --initrd \
--append-to-version=-nuxwin-athlon64x2 \
--revision '001' \
--stem linux \
kernel_image kernel_headers
IV. Installation du nouveau noyau :
En tant qu’utilisateur root :
dpkg -i linux-image-2.6.27.4-nuxwin-ahtlon64x2_001_i386.deb
dpkg -i linux-headers-2.6.27.4-nuxwin-ahtlon64x2_001_i386.deb
La compilation/installation du nouveau noyau s’est bien passée. Ce faisant, au reboot sur le nouveau noyau, j’ai rencontré les erreurs suivantes :
FATAL: Error Inserting ide_generic (/lib/modules/2.6.27-7-nuxwin-athlon64x2/kernel/drivers/ide/ide-generic.ko) : Cannot allocate memory
Done.
Begin: Waiting for root file system ...
Done.
Alert ! /dev/sda7 does not exist dropping to a shell
/bin/sh : can't access Hy ; job control turned off
...
Suite à cela, j’obtiens un shell.
Appriori, j’ai l’impression qu’il n’arrive pas a détecté ma partition /sda7 qui contient mon système linux. Pour info :
nuxwin@dev:~/Desktop$ su
Password:
dev:/home/nuxwin/Desktop# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1913 15366141 7 HPFS/NTFS
/dev/sda2 1914 3493 12691350 7 HPFS/NTFS
/dev/sda3 3494 11268 62452687+ f W95 Ext'd (LBA)
/dev/sda5 3494 8593 40965718+ 7 HPFS/NTFS
/dev/sda6 8594 8836 1951866 82 Linux swap / Solaris
/dev/sda7 * 8837 11268 19535008+ 83 Linux
Disk /dev/sdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 9964 80035798+ 83 Linux
dev:/home/nuxwin/Desktop#
Bref, je ne comprends pas très bien d’ou peut provenir le problème. Pour voir s’il pouvait s’agir d’un problème de drivers manquants, j’ai récupéré la version de ce kernel (2.6.27) via package sources ubuntu, j’ai effectué une compilation en suivant le même principe que pour celui obtenu via kernel.org et là, aucun problème n’est apparu. Je sais que le noyau Ubuntu intégre des drivers supplémentaires mais je ne saurais dire si le problème rencontré avec la version téléchargée sur kernel.org vient de là.
Information supplémentaires :
lspci ( avec noyau 2.6.27 compilé via source du package ubuntu ) :
dev:/home/nuxwin/Desktop# lspci
00:00.0 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.5 PIC: VIA Technologies, Inc. K8M890CE I/O APIC Interrupt Controller
00:00.7 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
00:02.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:0f.0 IDE interface: VIA Technologies, Inc. VT8237A SATA 2-Port Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 07)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237A PCI to ISA Bridge
00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
00:13.0 PCI bridge: VIA Technologies, Inc. VT8237A Host Bridge
00:13.1 PCI bridge: VIA Technologies, Inc. VT8237A PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
02:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT] (rev a1)
04:01.0 Audio device: VIA Technologies, Inc. VT1708/A [Azalia HDAC] (VIA High Definition Audio Controller) (rev 10)
lsusb ( avec noyau 2.6.27 compilé via source du package ubuntu ) :
dev:/home/nuxwin/Desktop# lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 045e:00b4 Microsoft Corp.
Bus 001 Device 004: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lsmod ( avec noyau 2.6.27 compilé via source du package ubuntu ) :
dev:/home/nuxwin/Desktop# lsmod
Module Size Used by
ac 4164 0
battery 10244 0
ipv6 213924 19
dm_snapshot 15204 0
dm_mirror 15296 0
dm_log 8580 1 dm_mirror
dm_mod 46984 3 dm_snapshot,dm_mirror,dm_log
loop 12876 0
snd_hda_intel 332624 1
snd_pcm_oss 33184 0
snd_mixer_oss 12416 1 snd_pcm_oss
snd_pcm 63364 2 snd_hda_intel,snd_pcm_oss
floppy 47876 0
snd_timer 18184 1 snd_pcm
pcspkr 2432 0
snd 45924 7 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
serio_raw 4804 0
soundcore 6560 1 snd
snd_page_alloc 7432 2 snd_hda_intel,snd_pcm
psmouse 32400 0
k8temp 4096 0
i2c_viapro 6996 0
i2c_core 20820 1 i2c_viapro
shpchp 25236 0
pci_hotplug 24036 1 shpchp
parport_pc 22820 0
parport 31340 1 parport_pc
button 6096 0
amd64_agp 9352 1
agpgart 29896 1 amd64_agp
evdev 8416 2
ext3 106184 2
jbd 40660 1 ext3
mbcache 7300 1 ext3
ide_cd_mod 27268 0
cdrom 30112 1 ide_cd_mod
sd_mod 23832 5
usbhid 23424 0
hid 33984 1 usbhid
via_rhine 18760 0
mii 4928 1 via_rhine
via82cxxx 5828 0
ide_core 84724 2 ide_cd_mod,via82cxxx
ehci_hcd 28492 0
sata_via 6980 3
uhci_hcd 18896 0
usbcore 114800 4 usbhid,ehci_hcd,uhci_hcd
ata_generic 4676 0
libata 144800 2 sata_via,ata_generic
scsi_mod 130316 2 sd_mod,libata
dock 8400 1 libata
thermal 15388 0
processor 33004 1 thermal
fan 4356 0
thermal_sys 9576 3 thermal,processor,fan
Merci pour vos réponses.