View Single Post
  #117  
Old 25th May 2009, 05:08
shae marks shae marks is offline
Junior Member
 
Join Date: May 2009
Location: usa
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compile Kernel 2.6 under Debian Sarge

I have problem and I do not know how to solve it myself. Last weekend I tried ( I said tried ) to recompile kernel on my Debian Sarge machine, but I encountered some problems.

After compilation and rebooting my macnine and choosing new kernel to boot I got error as follows:
modprobe: FATAL: Could not load /lib/modules/2.6.15.4/modules.dep : No such file or directory
umount devfs: not mounted
pivot_root: No such file or directory
/sbin/init:432 cannot open dev/console
kernel panic-Not syncing: Attempted to kill init

I really do not what to do in order to compile kernel, I have many manuals, and I read them as you can see I made procedure of compilation on right way ( Tell me if I am wrong ) but still I cannot solve above mentioned errors.

Please show me what I did wrong and what I should correct in order to make my 2.6.15.4 works.

Thank you in advance

The procedure I used to compile kernel and files I got after cmpilation is as follows.

I run make-kpkg kernel-image and after 20 minutes
DeusEtMachine:/usr/src# ls -l
total 52228
-rw-r--r-- 1 root src 13558552 2006-03-19 17:33 kernel-image-2.6.15.4_10.00.Custom_i386.deb
drwxrwxrwx 21 root root 4096 2006-03-19 17:44 linux-2.6.15.4
-rwx------ 1 root src 39846379 2006-03-18 16:11 linux-2.6.15.4.tar.bz2
DeusEtMachine:/usr/src#

In /lib/modules I have

DeusEtMachine:/lib/modules# ls -l
total 8
drwxr-xr-x 3 root root 4096 2006-03-19 17:34 2.6.15.4
drwxr-xr-x 5 root root 4096 2006-02-25 10:11 2.6.8-2-386
DeusEtMachine:/lib/modules#

In /lib/modules/2.6.15.4 there are next files

DeusEtMachine:/lib/modules/2.6.15.4# ls -l
total 1008
lrwxrwxrwx 1 root root 23 2006-03-19 17:34 build -> /usr/src/linux-2.6.15.4
drwxr-xr-x 10 root root 4096 2006-03-19 17:34 kernel
-rw-r--r-- 1 root root 201018 2006-03-19 17:34 modules.alias
-rw-r--r-- 1 root root 69 2006-03-19 17:34 modules.ccwmap
-rw-r--r-- 1 root root 212744 2006-03-19 17:34 modules.dep
-rw-r--r-- 1 root root 813 2006-03-19 17:34 modules.ieee1394map
-rw-r--r-- 1 root root 394 2006-03-19 17:34 modules.inputmap
-rw-r--r-- 1 root root 21025 2006-03-19 17:34 modules.isapnpmap
-rw-r--r-- 1 root root 182827 2006-03-19 17:34 modules.pcimap
-rw-r--r-- 1 root root 98846 2006-03-19 17:34 modules.symbols
-rw-r--r-- 1 root root 264449 2006-03-19 17:34 modules.usbmap
lrwxrwxrwx 1 root root 23 2006-03-19 17:34 source -> /usr/src/linux-2.6.15.4
DeusEtMachine:/lib/modules/2.6.15.4#

In /boot/ I have as follows

DeusEtMachine:/boot# ls -l
total 12964
-rw-r--r-- 1 root root 63903 2006-03-04 15:51 config-2.6.15.4
-rw-r--r-- 1 root root 55809 2005-05-19 10:38 config-2.6.8-2-386
drwxr-xr-x 2 root root 4096 2006-03-19 17:38 grub
-rw-r--r-- 1 root root 4317184 2006-03-19 17:35 initrd.img-2.6.15.4
-rw-r--r-- 1 root root 4317184 2006-02-25 10:35 initrd.img-2.6.8-2-386
-rw-r--r-- 1 root root 814523 2006-03-19 17:33 System.map-2.6.15.4
-rw-r--r-- 1 root root 865733 2005-05-19 11:26 System.map-2.6.8-2-386
-rw-r--r-- 1 root root 1680929 2006-03-19 17:33 vmlinuz-2.6.15.4
-rw-r--r-- 1 root root 1097419 2005-05-19 11:25 vmlinuz-2.6.8-2-386
DeusEtMachine:/boot#

In /grub/menu.lst I have the next output
title Debian GNU/Linux, kernel 2.6.15.4
root (hd0,1)
kernel /boot/vmlinuz-2.6.15.4 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.15.4
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15.4 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15.4 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15.4
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot
__________________
shae marks
Reply With Quote