1- Borro la carpeta /usr/src/linux-2.4.31 y descomprimo de nuevo las fuentes 
creándose de nuevo, hago el enlace simbólico a ella /usr/src/linux 
copio /boot/config-2.4.27-2-386 a /usr/src/linux/.config

2- Dentro de /usr/src/linux hago make oldconfig y contesto del siguiente modo 
las preguntas que se me hacen:

* Processor type and features
Symmetric multi-processing support (CONFIG_SMP) [N/y/?] (NEW) n

* IDE, ATA and ATAPI Block devices
Support for SATA (deprecated; conflicts with libata SATA driver) 
(CONFIG_BLK_DEV_IDE_SATA) [N/y/?] (NEW) n
Cardbus IDE support (Delkin/ASKA/Workbit) (CONFIG_BLK_DEV_DELKIN) [N/m/?] 
(NEW) m

* SCSI low-level drivers
AHCI SATA support (EXPERIMENTAL) (CONFIG_SCSI_SATA_AHCI) [N/y/m/?] (NEW) m
Intel PIIX/ICH SATA support (CONFIG_SCSI_ATA_PIIX) [N/y/m/?] (NEW) m
NVIDIA SATA support (EXPERIMENTAL) (CONFIG_SCSI_SATA_NV) [N/y/m/?] (NEW) m
Pacific Digital SATA QStor support (CONFIG_SCSI_SATA_QSTOR) [N/y/m/?] (NEW) m
ULi Electronics SATA support (EXPERIMENTAL) (CONFIG_SCSI_SATA_ULI) [N/y/m/?] 
(NEW) m

* Ethernet (10 or 100Mbit)
Digi Intl. RightSwitch SE-X support (CONFIG_DGRS) [N/y/m/?] (NEW) m

* Ethernet (1000 Mbit)
Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit support (CONFIG_ACENIC) 
[N/y/m/?] (NEW) m
Omit support for old Tigon I based AceNICs (CONFIG_ACENIC_OMIT_TIGON_I) 
[N/y/?] (NEW) n

* Wireless Pcmcia cards support
Intersil Prism GT/Duette/Indigo PCI/PCMCIA (CONFIG_PRISM54) [N/y/m/?] (NEW) m

* Token Ring devices
SMC ISA/MCA adapter support (CONFIG_SMCTR) [N/y/m/?] (NEW) m

* USB Multimedia devices
DABUSB driver (CONFIG_USB_DABUSB) [N/m/?] m

* USB Serial Converter support
USB Keyspan USA-28 Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA28) [N/y/?] (NEW) y
USB Keyspan USA-28X Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA28X) [N/y/?] (NEW) 
y
USB Keyspan USA-28XA Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA28XA) [N/y/?] 
(NEW) y
USB Keyspan USA-28XB Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA28XB) [N/y/?] 
(NEW) y
USB Keyspan USA-19 Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA19) [N/y/?] (NEW) y
USB Keyspan USA-18X Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA18X) [N/y/?] (NEW) 
y
USB Keyspan USA-19W Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA19W) [N/y/?] (NEW) 
y
USB Keyspan USA-19QW Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA19QW) [N/y/?] 
(NEW) y
USB Keyspan USA-19QI Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA19QI) [N/y/?] 
(NEW) y
USB Keyspan MPR Firmware (CONFIG_USB_SERIAL_KEYSPAN_MPR) [N/y/?] (NEW) y
USB Keyspan USA-49W Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA49W) [N/y/?] (NEW) 
y
USB Keyspan USA-49WLC Firmware (CONFIG_USB_SERIAL_KEYSPAN_USA49WLC) [N/y/?] 
(NEW) y

* Cryptographic options
Whirlpool digest algorithms (CONFIG_CRYPTO_WP512) [N/y/m/?] (NEW) m
Khazad cipher algorithm (CONFIG_CRYPTO_KHAZAD) [N/y/m/?] (NEW) m
Anubis cipher algorithm (CONFIG_CRYPTO_ANUBIS) [N/y/m/?] (NEW) m

3- Parcheo el núcleo con el parche Supermount de Kolivas para el núcleo 2.4.31 
y hago make menuconfig y cambio el procesador de un 386 a un K7 y marco la 
opción Supermount.

4- hago make dep, make clean, make bzImage, make modules y make 
modules_install.

5- Copio /usr/src/linux/arch/i386/boot/bzImage como /boot/vmlinuz-2.4.31 y 
añado estas líneas en mi grub, para que comparéis con el núcleo que me 
funciona perfectamente os he copiado su párrafo debajo:

title           Debian GNU/Linux, kernel 2.4.31-k7
root            (hd0,5)
kernel          /boot/vmlinuz-2.4.31 root=/dev/hda6 ro
savedefault
boot

title           Debian GNU/Linux, kernel 2.4.27-2-386
root            (hd0,5)
kernel          /boot/vmlinuz-2.4.27-2-386 root=/dev/hda6 ro
initrd          /boot/initrd.img-2.4.27-2-386
savedefault
boot


6- Reinicio usando el nuevo núcleo y me da el siguiente error:

VFS: Cannot open root device "hda6" or 03:06
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 03:06


Conclusión: Que habiendo hecho bien la compilación del núcleo y configurado de 
igual modo el grub que con otro núcleo que si que funciona, no me tira. Lo 
único que me falta por probar es repetir el proceso y tras copiar la imagen 
del núcleo en la carpeta /boot fabricar una imagen intrd haciendo: mkinitrd 
-o /boot/initrd.img-2.4.31 que voy a probar ahora mismo y os contaré los 
resultados.

Gracias.

Responder a