LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2008, 04:52 AM   #1
coolkrish
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Kernel Panic while booting with a newly compiled kernel


Hi

I am a newbie to kernel programming.
I am now stuck with a problem and require your help.
What I did:

* Installed RHEL Server release 5 ( Tikanga ) kernel 2.6.18.8.el5 on an i686 machine.
* Downloaded 2.6.25.2 from kernel.org and unzipped it to a local folder.
* I did a make modules followed by make install
* Then I built the kernel using make bzImage.
* Copied the bzImage to /boot
* Did a mkinitrd with the 2.6.25.2 version and copied the .img file to /boot
* Edit grub.conf with a new title to boot bzImage and newly created initrd.

On booting I get the following error. Don’t know how to proceed from here.
Can someone help me. Please let me know if you require any more details.
Since I am new to this forum and Linux kernel programming I have no idea what data
Is relevant for this issue.

Screen shot follows:

Activating logical volumes
2 logical volume(s) in volume group “VolGroup00” now active
Creating root device.
Mounting root filesystem.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Setting up other filesystems.
Setting up new root fs
Setuproot: moving /dev failed: No such file or directory
No fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
ERROR opening /dev/console: No such file or directory
Trying to use fd 0 instead.
WARNING: can’t access (null)
exec of init ((null)) failed!!!: Bad address
Kernel panic – not syncing: Attempted to kill init!
 
Old 06-04-2008, 06:22 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I little while back we saw a lot of these. If I recall it was caused because the initrd image did not have the driver required to access the hard drive. Try using the search menu on this web site. The key words would be combinations of kernel panic not syncing.

Last edited by stress_junkie; 06-04-2008 at 06:24 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic - mkrootdev: label /1 not found - when booting from newly compiled kerne the_shani Red Hat 7 05-21-2009 06:27 AM
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 12:55 AM
newly compiled kernel problem manyoo Linux - Kernel 3 12-07-2006 10:01 PM
Newly compiled kernel won't boot nivantha Linux - Kernel 3 09-14-2006 03:02 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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