[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] BINFMT_FLAT on startup
Ryan,
I am troubled with this "BINFMT_FLAT: reloc outside program" thingy since 3 weeks ago.
My symptom is when I load a 700KB application, it will throw me this error message. I am using mch_opb_ddr, and I have this problem.
I doubt it has anything to do with SDRAM or DDR.
Rgds,
Victor
-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John Williams
Sent: Monday, July 02, 2007 8:11 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] BINFMT_FLAT on startup
Hi Ryan,
Ryan Marotz wrote:
> I'm getting the following error during the boot up of uClinux:
> Unable to read code+data+bss, errno 8
> BINFMT_FLAT: reloc outside program 0x69696908 (0 - 0x1b2d4/0x8be0),
> killing init!
>
> I'm running uClinux out of a SDRAM (using a opb_sdram memory controller
> in Xilinx). When I run it out of a DDR memory using an opb_ddr memory
> controller, uClinux boots fine. I'm probably not understanding the
> configuration changes I need to make for the SDRAM.
> Freeing init memory: 64K
> Unable to read code+data+bss, errno 8
> BINFMT_FLAT: reloc outside program 0x69696908 (0 - 0x1b2d4/0x8be0),
> killing init!
> BINFMT_FLAT: reloc outside program 0x360f1c00 (0 - 0x1b2d4/0x8be0),
> killing init!
> BINFMT_FLAT: reloc outside program 0x74747474 (0 - 0x1b2d4/0x8be0),
> killing init!
This is very strange - here the kernel is making 3 seperate attempts to
load the "init" binary, and 3 times it is getting an invalid reloc
entry, but a different one each time! Typically you get these if the
application binary is correupted, or there's a bug in the elf2flt tool.
But, what you are seeing suggests more like a memory corruption problem.
Try enabling the flat tracing flag: (from petalinux-dist dir)
$ microblaze-uclinux-flthdr -k romfs/bin/init
$ make image
and post the output when the kerneltries to load the app.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/