I'm using the m68k gcc 3.4.0 toolchain to try to build shared libraries
for uClinux 2.4.31.

I managed to get a barebones image compiled, but BINFMT_FLAT is unable
to load init. This is the problem everyone is running into (according to
posts).

> Freeing unused kernel memory: 28k freed (0x13a000 - 0x140000)
> BINFMT_FLAT: library 0 is younger than 1, killing init!
> BINFMT_FLAT: failed to load library 1, killing init!
> BINFMT_FLAT: library 0 is younger than 1, killing init!
> BINFMT_FLAT: failed to load library 1, killing init!
> BINFMT_FLAT: library 0 is younger than 1, killing sh!
> BINFMT_FLAT: failed to load library 1, killing sh!
> BINFMT_FLAT: library 0 is younger than 1, killing sh!
> BINFMT_FLAT: failed to load library 1, killing sh!
> Kernel panic: No init found.  Try passing init= option to kernel.

My executable (busybox) is younger than lib1.so (uClibc). Which seems to
be what I want.

Has anyone determined if this using a newer toolchain fixes the problem?

It seems that there have been many changes earlier this year in gcc. For
example, Richard Sandiford checked in a patch that does this:

        * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
        for shared libraries and crt1.o for executables.  Use crti.o and
        crtbegin.o.

Maybe there's hope yet. Anybody have try the latest toolchains yet?
4.1.2 or so.




Here's the references from the archive:
David McCullough
http://mailman.uclinux.org/pipermail/uclinux-dev/2005-August/034110.html
Mark Plowman
http://mailman.uclinux.org/pipermail/uclinux-dev/2005-August/034041.html

Possible description for the problem:
Christian Magnusson
http://mailman.uclinux.org/pipermail/uclinux-dev/2004-July/027192.html
Ray Bejjani
http://mailman.uclinux.org/pipermail/uclinux-dev/2006-October/040491.htm
l



- Jate Sujjavanich

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to