compiling problem

All kernel questions! 2.4 or new 2.6 kernel, compiling, modules, panics, etc.

compiling problem

Postby trashy » 07 Oct 2004, 02:22

yikes I messed up my first attempt at kernel stuff ... ok it's not as scary as I thought
it would be but still pretty confusing... following this link(as best I understood)..
http://www.yellowdoglinux.com/support/s ... nels.shtml

I updated 2.4.22-2a to 2.4.22-2g no prob. Then I went into the control center and enabled
usb printer and usb v4l(both not as modules)... did the kernel stuff and now
on reboot I get 'Kernel panic: no init found. try passing init= option to kernel'

I did do the steps as in 3a.(kernel.shtlm) Putting the kernel in place, but my System.map
still points to the old kernel. How do I go about changing this?

yaboot:
image=/boot/vmlinux-2.4.22-2g
label=linux
root=/dev/hda12
read-only
initrd=/boot/initrd-2.4.22-2g.img
append="hdb=ide-scsi video=aty128fb:vmode:13,cmode:16 3"

image=/boot/vmlinux-2.4.22-2a
label=oldlinux
root=/dev/hda12
read-only
initrd=/boot/initrd-2.4.22-2a.img
append="hdb=ide-scsi video=aty128fb:vmode:13,cmode:16 3"

root@localhost src]# ls -l /boot
total 10036
-rw-r--r-- 1 root root 29709 Sep 4 2003 config-2.4.22-2a
-rw-r--r-- 1 root root 29601 Dec 3 2003 config-2.4.22-2g
-rw-r--r-- 1 root root 625904 Feb 11 2004 initrd-2.4.22-2a.img
-rw-r--r-- 1 root root 625212 Sep 26 14:24 initrd-2.4.22-2g.img
-rw-r--r-- 1 root root 802 Feb 11 2004 kernel.h
lrwxrwxrwx 1 root root 21 Sep 26 14:23 module-info -> module-info-2.4.22-2g
-rw-r--r-- 1 root root 15562 Sep 4 2003 module-info-2.4.22-2a
-rw-r--r-- 1 root root 15562 Dec 3 2003 module-info-2.4.22-2g
lrwxrwxrwx 1 root root 20 Oct 6 00:34 System.map -> System.map-2.4.22-2a
-rw-r--r-- 1 root root 632325 Sep 4 2003 System.map-2.4.22-2a
-rw-r--r-- 1 root root 609523 Oct 6 01:11 System.map-2.4.22-2g
lrwxrwxrwx 1 root root 17 Sep 26 14:23 vmlinux -> vmlinux-2.4.22-2g
-rwxr-xr-x 1 root root 3938142 Sep 4 2003 vmlinux-2.4.22-2a
-rwxr-xr-x 1 root root 3814863 Oct 6 00:11 vmlinux-2.4.22-2g
trashy
 

Postby StarKnight83 » 07 Oct 2004, 17:20

you can try to specify the correct system.map file for that kernel by adding "sysmap=/boot/System.map-2.4.22-2g" to the yaboot.conf
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby trash » 08 Oct 2004, 00:57

nope, didn't work. last few lines before 180 seconds to reboot are...

Mount: error 19
Pivot_root failed:2
unmount /init/proc Failed:2

Would it be possible to do the whole process over again starting with going into the control panel, loading kernel 2.4.22g, making changes and compiling again?
6100,g3,g4
trash
ydl beginner
ydl beginner
 
Posts: 35
Joined: 11 Aug 2004, 19:49

Postby trash » 10 Oct 2004, 00:32

when i try to create a new symlink for the new system.map I get file already exists... how do i remove the old symlink?

i tried ln -s ..... so now i would like to try removing the old link and doing ln -s again to the new sysmap.

thanks
(if this would solve anything that is lol)
6100,g3,g4
trash
ydl beginner
ydl beginner
 
Posts: 35
Joined: 11 Aug 2004, 19:49

Postby StarKnight83 » 10 Oct 2004, 03:32

just delete the old one like you would a file; "rm -f file" beware that you'll need to be root to do this and make sure thats all it deletes. Though honestly when ive had problems with stuff like this when i make a new kernel ive normally had to recompile it and make sure there isnt anything i missed. Also make sure that you depmod (dont remember the extensions-and make all the old modutil files end with .old)
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby Selket » 10 Oct 2004, 09:50

I don´t know the document you read but that should work:

1) Copy the old .config to the directory of the new kernel sources
2) make oldconfig
3) make menuconfig if you need to set special things
4) make dep
5) make vmlinux modules modules_install
6) mv the new vmlinux to /boot/vmlinux-test1
7) mv the new System.map to /boot/System.map-test1
8) edit /etc/yaboot.conf
9) run ybin -v as root
10) reboot
User avatar
Selket
ydl newbie
ydl newbie
 
Posts: 12
Joined: 21 Sep 2004, 17:01
Location: Germany


Return to Kernel

Who is online

Users browsing this forum: No registered users and 29 guests

cron