Busybox dies on booting
Denys Vlasenko
vda.linux at googlemail.com
Sun Mar 29 15:56:01 UTC 2009
On Friday 20 March 2009 13:45, Roger Varley wrote:
> >
> > Let's figure out you reach main() and then init_main().
> >
> > in libbb/appletlib.c add this line:
> >
> > #if ENABLE_BUILD_LIBBUSYBOX
> > int lbb_main(char **argv)
> > #else
> > int main(int argc UNUSED_PARAM, char **argv)
> > #endif
> > {
> > + write(1, "in main\n", 8);
> >
> > and in init/init.c
> >
> > int init_main(int argc UNUSED_PARAM, char **argv)
> > {
> > + write(1, "in init_main\n", 13);
> >
> > Rebuild, install new /sbin/init, reboot. What do you see?
> >
>
> Hmmm ... I don't see either of them.
Then the bug is not in busybox but in the build environment
(busybx binaries crash before they reach main())
or runtime (wrong versions of libc.so, for example).
--
vda
More information about the busybox
mailing list