linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: neeraj garg <neerajg@cdac.in>
To: Grant Likely <grant.likely@secretlab.ca>,
	John.Linn@xilinx.com, marco.stornelli@coritel.it
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Booting ML405 (Kernel panic - not syncing: No init found)
Date: Thu, 10 Jul 2008 12:55:16 +0530	[thread overview]
Message-ID: <4875B95C.8020809@cdac.in> (raw)
In-Reply-To: <20080709143318.GB26524@secretlab.ca>

[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]

Hi,

Yes I am using ARCH=ppc (actual line is $make ARCH=ppc 
CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have 
placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc 
I cannot find processor type 405 , in make menuconfig. Thats why i am 
using ARCH=ppc.

And when I give kernel command string as init=/bin/sh , it says :
 >Failed to execute /bin/sh.  Attempting defaults...
[    3.744035] Kernel panic - not syncing: No init found.  Try passing 
init= option to kernel.
[    3.768073] Rebooting in 30 seconds..

--init is present in sbin/init which is a soft link to ../bin/busybox

--I used powepc-405-gnu-readelf -h bin/sh to verify that it is compiled 
for powerpc itself.

Any other suggestions ?

-----------------------------------------------------
Neeraj Garg




Grant Likely wrote:
> On Wed, Jul 09, 2008 at 10:24:13AM +0530, neeraj garg wrote:
>   
>> Hi,
>>
>> I am trying to boot ML405 with Linux source code downloaded from  
>> http://www.git.xilinx.com . My cross compiler tool chain version is  
>> gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded RAMDISK  
>> from same url (http://www.git.xilinx.com). When I download  
>> zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is  
>> uncompressed, I get following messages :
>>
>>     
> <snip>
>   
>>                                           [    3.736691] Failed to  
>> execute /sbin/init.  Attempting defaults...
>> [    3.748073] Kernel panic - not syncing: No init found.  Try passing  
>> init= option to kernel.
>> [    3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8
>>
>>     
>
> Try changing the kernel parameters line to specify init=/bin/sh and see
> what happens.
>
> g.
>   

[-- Attachment #2: Type: text/html, Size: 2500 bytes --]

  parent reply	other threads:[~2008-07-10  7:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09  4:54 Booting ML405 (Kernel panic - not syncing: No init found) neeraj garg
2008-07-09 12:46 ` Marco Stornelli
2008-07-09 14:33 ` Grant Likely
2008-07-09 16:06   ` John Linn
2008-07-15  6:26     ` Neeraj Garg
2008-07-16 14:47       ` Ron Sass
2008-07-17 15:23         ` Neeraj Garg
2008-07-10  7:25   ` neeraj garg [this message]
2008-07-10 14:21     ` John Linn
2008-07-10 15:54     ` Ron Sass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4875B95C.8020809@cdac.in \
    --to=neerajg@cdac.in \
    --cc=John.Linn@xilinx.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=marco.stornelli@coritel.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).