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

Re: [microblaze-uclinux] BINFMT_FLAT on startup



John,
I'm using uClinux not petalinux. Is there anything I can try with uClinux 2.4? On the other side, how easy is it to move to Petalinux with a Xilinx Vertex 4?

-Ryan

John Williams wrote:
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/