[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] ZFLAT bug



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
~  we've encountered a problem with BINFMT_FLAT:

BINFMT_FLAT: reloc outside program 0x65722065 (0 - 0x145f4/0x10d80),
killing sh!

BINFMT_FLAT: reloc outside program 0x65722065 (0 - 0x145f4/0x10d80),
killing sh!

init: finit: /bin/sh respawning too fast
init: /bin/getty respawning too fast

We work on Insight XC2VP7 board.
In our /vendor/Insight/XC2VP7_Microblaze/Makefile there were these entry:

~       $(CROSS)flthdr $(ROMFSDIR)/bin/*
~       $(CROSS)flthdr $(ROMFSDIR)/lib/lib[0-9].so
~       for i in $(RAM_FILES) ; do \
~               [ ! -f $(ROMFSDIR)/$$i ] || $(CROSS)flthdr -r
$(ROMFSDIR)/$$i ; \
~       done

~       for i in $(ROMFSDIR)/bin/* ; do \
~              $(CROSS)flthdr -z $$i; \
~       done

The first flthdr say to load in ram these flat apps.
The second one compresses all apps.
To support these features, we must enable Kernel support for flat
binaries and ZFLAT in General setup menu.
With this configuration a bug arised. My workaround is to disable ZFLAT
support and comment the second for loop in Makefile (flthdr -z)

Any comment? John, do you think this problem is related to the new
toolchain (with the old one everything worked fine)?

Cheers, Pizza

- -----------------------------------------
Luca Pizzamiglio
CEFRIEL - Embedded Systems Design Unit
Via Fucini, 2 - 20133 Milano
e-mail pizzamiglio@cefriel.it
Tel.   02 2395 4236
ICQ    5046978
- -----------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAfqGWAoUy56ORfbERAlJ2AKCkCGG7yFo0jD+dbhcDwhw3nTQm/ACgplEW
lIeSuV1dzc+IfcuOrAQ9EA0=
=YivF
-----END PGP SIGNATURE-----
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/