LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2005, 10:32 AM   #1
alantang
LQ Newbie
 
Registered: Nov 2004
Location: Hunan China
Distribution: Debian testing
Posts: 7

Rep: Reputation: 0
Kernel panic after compiling 2.4.26


Hi
I am trying to complie a 2.4.26 kernel for click modular router kernel mode

I did patch -p1 < ~/projects/shaper/click/click/etc/debian-2.4.26-patch , and there is no error.

then I cp /boot/config-2.4.26-1-386 .config (a working copy from my debian sarge)
and disabled the modules which conflict with click.
then
make xconfig
make dep
make clean
make bzImage
make install
make modules
make modules_install

mkinitrd -o initrd.img-2.4.26-click @ /boot

add below to menu.1st

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

when I reboot and choose Debian GNU/Linux, kernel 2.4.26-click

I got modprob: can't open dependencis file /lib/modules/2.4.26-click/modules.dep (no such file or directory)
pivot_root: No such file or directory
/sbin/init :431: can not open dev/console: nosuch file
kernel panic :attempt to kill init
and system hangs. But /lib/modules/2.4.26-click/modules.dep exists.

So I searched internet and did this make-kpkg kernel_image @ /usr/src/linux
then wajig install kernel-image-2.4.26-click_10.00.Custom_i386.deb
when I reboot with Debian GNU/Linux, kernel 2.4.26-click
I got
VFS: Can not 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
and system hangs

Does anyone have an idea what I did wrong?
 
Old 02-01-2005, 10:39 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
is the filesystem driver for hda6 included in the initrd / compiled into the kernel ???

you probably should have done a make oldconfig befre make xconfig.

just to be on the safe side, i always compile the drivers that are essential to boot into the kernel... ide controller's and filesystems mainly.
 
Old 02-01-2005, 01:16 PM   #3
alantang
LQ Newbie
 
Registered: Nov 2004
Location: Hunan China
Distribution: Debian testing
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Hi

This step causes all the problems
mkinitrd -o /boot/initrd.img-2.4.26-click
@ /boot/
it should be
mkinitrd -o /boot/initrd.img-2.4.26-click /lib/modules/2.4.26-click
@ any directory

Now the problem is how can I share my nvidia driver between two kernel...


Alan
 
Old 02-01-2005, 01:47 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you cannot share a nvidia driver.

you must install nvidia once on one kernel, then boot the other kernel and then install again, BUT... you must be sure to use the -K option (or maybe -k) this will install the kernel driver only, without going over the openGL libraries fom the previouse install.
 
Old 02-01-2005, 02:51 PM   #5
alantang
LQ Newbie
 
Registered: Nov 2004
Location: Hunan China
Distribution: Debian testing
Posts: 7

Original Poster
Rep: Reputation: 0
Hi
it is -K
I really appreciate all your efforts!
Problems solved! You rock!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling kernel 2.6.13.3: panic! Mr.Bloom Linux - General 7 10-21-2005 05:42 PM
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Kernel panic after compiling - Hoarx MarioT Ubuntu 1 06-08-2005 05:14 AM
Kernel panic after compiling 2.4.29 ? gnirtS Debian 8 03-15-2005 10:08 AM
Compiling Pentium4 Support Gives Kernel Panic activematrix Linux - Hardware 12 05-17-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration