2010-06-09 08:27:28     Error while trying to excute Hello World on STAMP

2010-06-09 08:27:28     Error while trying to excute Hello World on STAMP

Jithender Golamari (IRELAND)

Message: 90222   

Hi There, I followed

  docs.blackfin.uclinux.org/doku.php?id=simple_hello_world_application_example&s[]=hello&s[]=world

for compiling a hello world program and FTP the file to BF533 in binary.

but after running chmod 777 hello and tried to execute the file with the command ./hello on STAMP

I got the following error message.

/helloBINFMT_FLAT: bad magic/rev (0x4, need 0x5)

BINFMT_FLAT:

bad magic/rev (0x4, need 0x5)

hello: applet not found

I had also went through   docs.blackfin.uclinux.org/doku.php?id=faq

but with no luck as the answer for that error was to use the command

bfin-uclinux-gcc -Wl,-elf2flt hello.c -o hello

which I already did.

Can some1 help please???

Thank you

QuoteReplyEditDelete

2010-06-09 09:11:44     Re: Error while trying to excute Hello World on STAMP

Robin Getz (UNITED STATES)

Message: 90223   

Jithender:

You are using a kernel which is too old - upgrade to something more recent.

-Robin

QuoteReplyEditDelete

2010-06-09 09:21:24     Re: Error while trying to excute Hello World on STAMP

Jithender Golamari (IRELAND)

Message: 90224   

cool, thnkx a million, will try that

 

QuoteReplyEditDelete

2010-06-10 06:35:53     Re: Error while trying to excute Hello World on STAMP

Jithender Golamari (IRELAND)

Message: 90246   

Hi Robin,

Tried to update kernel on BF533 but with no luck, so I tried to use the 2006 toolchain as the STAMP I have has the kernel of 2005 but that didnt help either. Can you please advise me on this any weblinks or anything at all. Thank you.

Jithender

QuoteReplyEditDelete

2010-06-10 10:44:41     Re: Error while trying to excute Hello World on STAMP

Robin Getz (UNITED STATES)

Message: 90247   

Jithender:

The only option is to upgrade everything.

What did you have problems with?

-Robin

QuoteReplyEditDelete

2010-06-11 05:28:41     Re: Error while trying to excute Hello World on STAMP

Jithender Golamari (IRELAND)

Message: 90263   

Robin,

I am not sure in-regards of  upgrading kernel on BF533, can you help me with this please.

Thank you

Jithender

QuoteReplyEditDelete

2010-06-11 11:34:31     Re: Error while trying to excute Hello World on STAMP

Robin Getz (UNITED STATES)

Message: 90269   

Jithender:

  docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:upgrading

  docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash

  docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:tftp_loading_files

QuoteReplyEditDelete

2010-06-11 13:41:18     Re: Error while trying to excute Hello World on STAMP

Jithender Golamari (IRELAND)

Message: 90270   

Thanks for the link:)

Jithender

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.