LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-19-2004, 10:13 AM   #1
Vicis
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
Linux kernel panic - configuration?


Hi everyone,

I got an easy question for you. I'm trying to update my Linux kernel and I want to use the same configuration as my current working kernel. I need this because during compilation of the kernel, I get the following messages:

Warning: Unable to open on initial console.
Kernel Panic: No init found Try passing init = option to kernel.

Note, I have lilo configured with a new initrd .img for the new kernel. I know that it has to do with the menuconfig stuff because I added ext3 fs support (apparently was disabled by default) and when I recompiled and restarted, it got a little farther than it previously did, though it still panicked later. Thanks for the help!

- John
 
Old 02-19-2004, 11:08 AM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
hi.
if you are compiling the same kernel subset (2.4.xx to 2.4.yy or 2.6.xx to 2.6.yy), then u can use the same .config file. you cant use it if you are jumping from 2.x to 2.y

also, you do not need the initrd. plus did u run lilo after kernel compile? why dont u post here all the steps u did (it will be in ur bash history, so just copy them out here), and we can see whatsup. also post ur relevant lilo lines, and output of 'df'.
 
Old 02-19-2004, 11:55 AM   #3
Vicis
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Hi, thanks for your help!

This is what I did, based on the instructions of a few web sites:

Edited Makefile in /usr/src/linux-2.4.20-8 to give extension - WPI (my college)

make mrproper
make clean
make menuconfig (I changed some options to fit in the kernel, fs, scsi, etc)
make modules
make modules_install
make bzImage

cp arch/i386/boot/bzImage /boot/bzImage.WPI
(so that I don't replace the current version)

emacs /etc/lilo.conf - edited to include new entry:

image = /boot/bzImage.WPI
label = WPI
root = /dev/hda1
read-only

I'm pretty sure it's the configuration that's messing it up. I assumed at first that running menuconfig would show the settings for the running kernel, which was, of course, wrong. The problem is, I don't know what to enable in order to get the system to boot. I even looked at the messages log to see what gets booted after the panic, and enabled those, but it didn't work.

df results:

Filesystem 1K blocks Used Available

/dev/hda3 19267868 257600 15709508
/dev/hda1 101089 11649 84221
none 62900 0 62900
/dev/sda 17104456 32828 16202756

Used % Mounted

15% /
13% /boot
0% /dev/shm
1% /mnt/fc_admin

What I need then, is exact instructions on how to use the current kernel configuration. The changes I made in the drivers do not require anything new to be enabled. Thanks for your help.

- John
 
Old 02-19-2004, 11:57 AM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
hi. is ur root /dev/hda1 or /dev/hda3 there? looks like hda3 to me. if so, edit lilo for that, and run 'lilo' as root.
 
Old 02-19-2004, 12:07 PM   #5
Vicis
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your help, that fixed it!
 
Old 02-19-2004, 12:14 PM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
cool.
 
  


Reply



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
Kernel Panic: grub configuration issue(?) rickthemick Linux - General 3 11-17-2004 06:43 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
Redhat Linux 9 Kernel Panic cstoutxp Linux - Newbie 13 10-24-2003 05:18 PM
Linux error: Kernel Panic wilbasket23 Linux - Software 5 07-01-2003 12:19 PM
Linux Kernel Panic Westquote Linux - General 11 01-06-2002 02:54 PM

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

All times are GMT -5. The time now is 08:43 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