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

From: aavan@263.net
Date: Thu Jul 12 2001 - 23:40:56 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. 

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
欢迎使用263天下邮免费信箱






--Boundary-=_DrBEaTAIQDFNVXqHhFKXntheEciu
Content-Type: Text/HTML
Content-Transfer-Encoding: 8bit

Hi, all<br><br>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:<br><br>bad magic/rev (16908544, need 2)<br>bad magic/rev (16908544, need 2)<br>.ELF...: not found<br><br>For testing, I wrote a simple "Hello, world" application and built it by using m68k-elf-gcc. The instruction and parameters are: <br><br>m68k-elf-gcc -m68000 -msep-data -o hello hello.c -lc<br><br>I got the same error when executing the "Hello, world" app. <br><br>The kernel version is 2.0.38-1pre10. I built it by using m68k-coff-gcc.<br><br>Can you give me a hint? Thanks in advance.<br><br>Best Regards<br><br>Aavan<br><font color=blue>欢迎使用263天下邮免费信箱</font><br><br><br><br><br><br><br><br>
--Boundary-=_DrBEaTAIQDFNVXqHhFKXntheEciu--
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