[uClinux-dev] Could not run app that compiled by m68k-elf-gcc

From: aavan@263.net
Date: Fri Jul 13 2001 - 01:18:06 EDT


Hi, all

I had ported microwindows to uClinux by using m68k-elf-gcc successfully. I followed upload the demos named mtest ann mtest2 of microwindows to ucDimm and executed it. But I encountered a problem when executing, like this:

bad magic/rev (16908544, need 2)
bad magic/rev (16908544, need 2)
.ELF...: not found
For testing, I wrote a simple "Hello, world" application and built it by using m68k-elf-gcc. The instruction and parameters are:

m68k-elf-gcc -m68000 -msep-data -o hello hello.c -lc

I got the same error when executing the "Hello, world" app.

Follow I change the command line:
m68k-elf-gcc -m68000 -msep-data -o hello hello.c -elf2flt -lc

I got a new error information:
bad magic/rev (4, need 2)
bad magic/rev (4, need 2)
bFLT: not found

The kernel version is 2.0.38-1pre10. I built it by using m68k-coff-gcc.

Can you give me a hint? Thanks in advance.

Best Regards

Aavan

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:55 EDT