execve of /sbin/init fails

Steve Iribarne (GMail) netstv at gmail.com
Wed May 31 07:29:27 EST 2006


On 5/30/06, Anantharaman Chetan-W16155
<Chetan.S.Anantharaman at motorola.com> wrote:
>
>
>
>
> Hi,
>
> I am trying to bring up a custom board with a PPC405 processor running Linux
> 2.4.20 (MontaVista Release) and am having problems with the call to
> execve("/sbin/init", argv_init, envp_init) not returning in the file main.c.


Hmm.. Ok.. so I've read the other suggestions all good, but I think we
are missing some info.  Are you running Busybox?  If you are using
Busybox, what version?  Also, what init are you using?  Are you using
busyboxes?

The ramdisk suggestion was a good one.  First off, check what is in
your ramdisk.  Also check the rights of the files in the ramdisk.
Make sure you have the execute bit set.  I've seen exactly what you
are seeing when my rights on the file init were messed up.

Also I think I've seen a hang with an older version of Busybox using
their version of init.  I just got sysinit and that seemed to fix it,
(Although I had to reconfig Busybox to not use their version of init)




> The processor just hangs and there is no output on the terminal.


When you say the process just "hangs", where are you in the boot
cycle?  Is it before you see the linux kernel starting to load?  Or do
you see any kernel messages start to spew out?

Hope this helps a little.

-stv



More information about the Linuxppc-embedded mailing list