Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redhat 7.3 Kernel Problem

Status
Not open for further replies.

kbrinley

Programmer
May 21, 2002
11
US
I've just followed the how-to on compiling a kernel. Everything seemed to go ok. I set up the new kernel in my boot loader (lilo) and rebooted my computer. However, when it boots, it hangs before it can load the modules. The odd thing is that it does this for both the new and old kernel. I'm able to get to my system from a boot disk, but I don't know what went wrong. I'm pretty new to linux so any help will be appreciated.
 
---I've just followed the how-to on compiling a kernel. Everything seemed to go ok.

Other than blatant errors (bad compile), you wont know till you boot up with it.

---I set up the new kernel in my boot loader (lilo) and rebooted my computer. However, when it boots, it hangs before it can load the modules. The odd thing is that it does this for both the new and old kernel. I'm able to get to my system from a boot disk, but I don't know what went wrong. I'm pretty new to linux so any help will be appreciated.

You mentioned you had RedHat 7.3 . Do a
gcc --version
and post back the response. Hint: 2.9(even) is REALLY bad. The 2.96 branch is a development compiler. Redhat just so happened to include that version on lots of Redhat cd's.

By the way, I'm currently compiling 2.5.59 on a machine along with 2 compiles of branch of 2.4.18. 1 stable is to see how small I can get the kernel , and the other is for my desktop. Please let Tek-Tips members know if their posts were helpful.
 
What is the message on which it 'hangs'? There are several reasons for this behaviour.
 
hi,
I have compiled my kernels successfully.
Cud u let me know the exact point where it hangs.I mean the ouput on ur screen?Is there a kernel panic or something of that sort?

regds,
Pankaj
 
Hello.
To answer the first response, I'm running gcc version 2.96 on my computer.

As for the others, my kernel gives no errors at all. The last line printed to the screen is

INIT: version 2.84 booting

And the computer simply hangs there. I've let it sit for several minutes and nothing happens.
 
100$ on the beta version of GCC they included.
50$ on LilO.

My big guess is the kernel is screwed up with 2.96 gcc compile. If you gave me your kernel file, I could see if it'll boot up. It just cant have P3 and P4 only stuff in it. Please let Tek-Tips members know if their posts were helpful.
 
Lilo isn't involved at this point. We are using gcc from RedHat's distros for some time without problem. I've seen this behaviour while system console was redirected to serial port. Check your /etc/inittab and /etc/lilo.conf. Or maybe wrong kernel config related to console.
 
Ok, I've solved part of my problem; I can boot into the old kernel without a boot disk. However, I still have not been able to get my own kernel to boot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top