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

Re: [microblaze-uclinux] First Time Running My code on MBlaze uCLinux



Hi Tim,

Tim Rosario wrote:

> Hi, I'm a newbie... I just got the Avnet FX12 running uCLinux. I am so
> psyched... Anyway, I got the tool chain setup on my Linux host. I
> compiled a quick hello world and tried to run it. When I did I got the
> following error...
> 
> BINFMT_FLAT: bad magic/rev (0x1020100, need 0x4)
> BINFMT_FLAT: bad magic/rev (0x1020100, need 0x4)
> ELF: not found

Your hello world executable is still in ELF format, not the flat binary 
required by uClinux.  You cannot just compile your program with mb-gcc 
and link it using the gcc default processes, you have to explicitly link 
it against the uClinux libraries and also convert it to a flat binary. 
Luckily, it's easy once you know how, just read this page:

http://www.itee.uq.edu.au/~jwilliams/wiki/index.php/OutOfTreeCompile

Regards,

John
___________________________
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/