[maemo-developers] [maemo-developers] Maemo 2.0 C binaries do not run on N770

From: Winston Wu winston at ee.ucla.edu
Date: Mon Sep 11 02:03:13 EEST 2006
Hi,
I'm new to the whole Maemo/Scratchbox/N770 thing.  

I have set up the Maemo 2.0 following this tutorial: http://www.maemo.org/platform/docs/tutorials/Maemo_tutorial.html.

My goal is to write a bluetooth application in C inside Maemo/Scratchbox and send the binaries over to the N770.  So I followed exactly what's on the tutorial. 

After the installation, I wrote a little helloworld.c with a printf statement.  The binary runs in the emulation fine.  But when I scp and run the binary in my N770, it doesn't.  This is the error it generated.         
-sh: ./hello: not found

So I checked the binary version by:
#file hello
and this is the output.
hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.4.17, dynamically linked (uses shared libs), not stripped

I also have a standard ARM tool chain outside of the scratchbox.  I compiled the same helloworld using that tool chain and ran the binary on the N770.  The binary ran.  So I'm convinced my N770 is working.  When I do this:
#file hello2
hello2: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped

I am suspecting that my N770 may be running the old 2005 OS and the Maemo is based on the new 2006 OS.  

Did anyone have the same problem?

Thanks a million for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060910/6c42f478/attachment.htm 
More information about the maemo-developers mailing list