Kernel 2.6
De gacq wiki
Revisión del 15:37 27 jul 2006 de 192.168.0.105 (discusión)
Contenido
Compilando
* Building your own v2.6.x Kernel in the Debian manner
Resumen
apt-get install linux-source-2.6.12 cd /usr/src tar jxf linux-source-2.6.12.tar.bz2 cd linux-source-2.6.12 apt-get install libncurses5-dev make menuconfig apt-get install kernel-package make-kpkg --initrd --revision examplerev01 kernel_image make-kpkg --initrd --revision examplerev01 kernel_headers cd .. dpkg -i kernel-image-2.6.8_2.6.8-3examplerev01_i386.deb dpkg -i kernel-headers-2.6.8_2.6.8-3examplerev01_i386.deb mkinitrd /boot/config-2.6.8 2.6.8
Errores
After first booting before building a new kernel image
VFS: Cannot open root device "302" or unknown-block(3,2) Please append a correct "root=" boot option Kernel panic: VFS: Unable to mount root fs on unknown-block(3,2)
I found two posibilities:
* You don't have your root fstype loaded into the kernel
OR
* You are not using the initrd.img, to create one:
mkinitrd -o /boot/initrd.img-2.6.3 /lib/modules/2.6.3
then add it to your lilo.conf
Kernel Panic
/sbin/init: 431: cannot open dev/console: no such file Kernel Panic - not syncing: Attempted to kill init!
Por alguna razon desconocida (algun upgrade) se cambio el device /boot/grub/menu.lst de hda2 a hda1 con cambiarlo se arreglo. Para esto hay que bootear con un INSERT o similar