execve of /sbin/init fails

Andy Gospodarek andy at greyhouse.net
Wed May 31 08:15:14 EST 2006


On 5/30/06, Steve Iribarne (GMail) <netstv at gmail.com> wrote:
> 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)
>

I guess I totally assumed busybox was being used, so good suggestion.
I too saw this with an older version of busybox (0.60 maybe?) and I
ended up editing the config to contain only init and then compiled it
statically and placed it on the rootfs.  It turned out to be just the
right size and functionality for my needs.  I think I later updated to
a 1.0 or 1.1-series and didn't have to use the same hack.


>
>
>
> > 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
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>



More information about the Linuxppc-embedded mailing list