LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2013, 03:25 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
Kernel panic when rebuilding kernel with exact same .config file


Hi,

I have a SATA drive with LILO boot loader, and a working 32bit 2.6.35.14 kernel that was built on a Mandriva 32bit machine some time back. This Linux environment is a very simple one that boots up to a busybox shell as init by means of a "append="init=/test/test.sh" in lilo.conf, where test.sh sets up the basic Linux environment then starts a busybox shell.

The Mandriva build environment no longer exists, and has been upgraded to a 64bit Ubuntu machine instead.

I downloaded 2.6.35.14 from kernel.org, and then extracted the .config file from the working kernel.

I then used the .config file to build a new but identical 32bit kernel on the new Ubuntu build environment using make "ARCH=i386 menuconfig" followed by "make ARCH=i386 all"

I copied this new kernel to the SATA drive, edited lilo.conf and ran lilo again. However, when I try to boot up from this supposedly identical kernel, I get a kernel panic:

Code:
VFS: Mounted root(ext2 filesystem readonly on device 8:1
Freeing unused kernel memory: 248k freed
Failed to execute /test/test.sh.  Attempting default...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
The file sizes of the old and new kernel are different. However, I extracted the .config from the new kernel and performed a diff between that and the old .config file - they are identical!

Why is it I have 2 kernels that are the same version, built with the .config file, but resulting in 1 booting and the other not?

Any help would be appreciated. Thanks!
 
Old 02-28-2013, 07:50 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 802
Blog Entries: 2

Rep: Reputation: 203Reputation: 203Reputation: 203
It says your /test/test.sh is not there - that's probably not on the new drive.
 
  


Reply

Tags
kernel, lilo


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 panic - custom kernel won't mount file system j-osh Fedora 8 11-19-2008 01:13 AM
Vanilla kernel config gives kernel panic: Unable to find VolGroup0 bbcannon Linux - Newbie 1 09-24-2008 03:48 AM
Upgraded Kernel, Kernel Panic, Can't read root file system. Romanus81 Slackware 25 05-04-2008 10:45 PM
Kernel 2.6.22 + generic config = PANIC dugan Slackware 4 08-12-2007 12:00 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration