LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-24-2003, 05:30 PM   #1
Sgaileach1
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Rep: Reputation: 15
Kernel panic after compiling 2.4.21 for Redhat 9...


I have downloaded the latest version 2.4.21 from kernel.org as 18-9 gives me problems with lockups in switching sessions or run levels.

I had previously attempted Redhat's 19-9 update, however even though I successfully installed both the main RPM and the src it still showed nothing in /usr/src for 19-9, and so I couldn't use my nifty Nvidia 2.4 patch.

Now I have extracted the 2.4.21 package to /usr/src/linux-2.4.21 manually, not sure if this is right or not, but I proceeded to xconfig and compile and verified both the .img and vmlinuz are in the /boot directory as well as being properly referenced in /boot/grub/grub.conf.

I get the new 2.4.21 as an option in my GRUB loader, and it seems to be initializing fine for a moment, then goes to kernel panic no matter what I have tried as far as options in the xconfig. (I even tried the text-based version!)

Is this something screwy with Redhat, and are there some proprietary headers or files I need to make/append/simulate for this to work? I would hate to think I am limited only to the kernel versions they put out, though I do like their products.

Could it be a problem with the processor type I am selecting? I have an Athlon XP 2200, and so thought choosing “athlon” as the proc type would be sufficient/optimal.

Am I under the wrong impression?

Why do I keep panicking my custom kernels???

Is it just me?

Perhaps if I brought the kernel a burnt offering...

Also, if anyone knows what linux-2.4.20-agpgart.diff does in the /usr/src directory to enable the Nvidia installer to find a kernel module to compile, and knows how to do this manually so I don't have that to worry about, that would definitely be cool too.

Thanks!

Last edited by Sgaileach1; 07-24-2003 at 06:52 PM.
 
Old 07-24-2003, 06:48 PM   #2
Sgaileach1
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Seriously!

Is there any specific log file I might include that would help you guys out with this?
 
Old 07-24-2003, 07:09 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
ok, there should be around 3 thousand different kernel panic type.
can you give me some.... tips?
 
Old 07-24-2003, 07:21 PM   #4
homestead1000
Member
 
Registered: Jul 2003
Location: San Diego, CA USA
Distribution: RH 7x,8x,9x, RHE 3, Fedora Core1
Posts: 38

Rep: Reputation: 15
Just above the "kernel panic" line there may be a few lines that could give an idea to what it's upset about.
 
Old 07-24-2003, 11:25 PM   #5
Sunyard
LQ Newbie
 
Registered: May 2003
Location: american
Posts: 10

Rep: Reputation: 0
i think you get error about kernel panic because it doesn't isue a memory partition .
 
Old 07-25-2003, 12:19 AM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
here look at my guide
scroll down to the part where it says:
---------------------------------------------
Now Its Time To Install Your New Kernel~!
---------------------------------------------
does any of that look farmiliar? did you miss one of these steps?
 
Old 07-28-2003, 09:40 PM   #7
Sgaileach1
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks everyone!

Sorry if my previous posts weren't that well thought out, I am deffinitely new at this though starting to get a feel for where things are and what tools are available to me when I REALLY get myself into a mess, which incidently I mangaged to do in trying to troubleshoot this whole kernel panic thing...

Turns out my particular error was one referencing VFS and not being able to identify/mount 'root,' and after some research I came to see this was a combination of incorrect settings in my bootloader conf and fstab files. I needed to define the LABEL=/ option as my correct drive location of Linux, which happens to be hdb1...

Unfortunately for me I somehow managed to save a fat-fingered hb1, and after doing so overzealously for ALL my kernels (DUH!) I had successfully disabled myself from booting to ANYTHING!

* bows*

Fortunately it turns out Linux has a really handy recovery system available and built-in which allowed me to log in as root and attempt some changes, and after I figured out what was going wrong I went to open fstab to set the partitions to what they should be...

Which is when I got the message that /mnt/hdb1 was mounted read-only and that I couldn't change it. My first thought was chmod but that didn't seem to work either, so I booted back into Micro$oft and googled some stuff until I found this helpful command:

mount -n -o remount,rw /dev/hdb1

Presto, instant writable file system!

So I went ahead and made the changes. Incidentally, vi rocks as a text editor in such situations way over ed or other such one-liners, which proved a bit too tedious for me to manage with. (About five erroneous and redundant entries later...) With vi I get the whole file up on the screen and can simply hit “I” to enter insert-mode (which I am certain you all have discovered long ago) and change whatever I have to. Pretty cool!

Anyway that solved the kernel panic, though my problem now is that for some reason my USB intelli-scroll mouse won't reccognize no matter what I do. I even went so far as to compare the settings in my rebuilt kernel .config and the one that works currently from Redhat and can't see anything I am missing. Only thing I can think at this point is that there is some symbolic link I am missing or some file that has configuration options for modules and such I am yet to discover...

Still woring at it, just wanted to update this thread I started so you all didn't think I was just a loser trying to take the easy way out! I love these forums, as no matter what questions I have most of the answers seem available if one looks, and I certainly am not above asking or doing some work.

Considering what the “gurus” must go through, it seems the least I could do as far as consideration goes, though I imagine like any art they would consider it more play then work... (Up to about the 15,000th line of code I bet! You can't fool me, you are all still human! Right?)

DrOzz, minus a few steps I think I have been following a similar proceedure as you have outlined. I did a couple things manually via graphical explorers and such, however had been using xconfig and making the vmlinuz-xxx and xxx.img files ok. I hadn't used the symlink thing, so I'll try that next.

Thanks again everyone for an excelent board and resource for the community.

--James
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.9-5 compile error on RedHat ES 4 TotalDefiance Red Hat 1 10-18-2005 10:37 AM
HELP: RedHat Kernel 2.6.9 Compile Problem. Please help me. strato Linux - Software 1 11-20-2004 11:27 PM
How to compile 2.6 kernel on RedHat Ninja_212 Red Hat 1 03-08-2004 03:18 AM
how to compile the redhat kernel mmoohh Linux - Newbie 5 10-21-2003 08:26 PM
RedHat 7.1 - Kernel Compile aford Linux - Newbie 18 03-13-2002 02:52 PM


All times are GMT -5. The time now is 12:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration