View previous topic :: View next topic |
Author |
Message |
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Wed Feb 25, 2009 5:46 am Post subject: Crosscompiling for the Zaurus 5600 (armv5tel) |
|
|
I'm trying to compile some home-brew apps for my zaurus. I ran crossdev with the following options:
Code: | crossdev -S -t armv5tel-softfloat-linux-gnueabi --g 4.2.3 --b 2.18-r1 --k 2.6.25-r1 --l 2.6.1 |
Then I wrote a simple helloworld app:
Code: | #include <stdio.h>
int main()
{
printf("Hello World.\n");
return(0);
} |
And I compiled it using:
Code: | armv5tel-softfloat-linux-gnueabi-gcc -static helloworld.c -o helloworld |
When I run it on the target, i get:
Code: | $ ./helloworld
./helloworld: not found
$ |
Compiling it with or without the -static option produces the same result.
Can anyone help me? |
|
Back to top |
|
|
OneOfOne Guru
Joined: 28 May 2003 Posts: 368
|
Posted: Wed Feb 25, 2009 10:49 am Post subject: |
|
|
what's the output of : file helloworld?
also did you chmod +x it on the target? |
|
Back to top |
|
|
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Wed Feb 25, 2009 4:52 pm Post subject: |
|
|
The target has been chmodded +x.
Here's the output of file helloworld:
Code: | helloworld: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, statically linked, not stripped |
My target is running a 2.4 kernel. Is that the problem? Would the kernel versions need to be exactly the same or is it just a difference between 2.4 and 2.6? |
|
Back to top |
|
|
ddc Guru
Joined: 29 Aug 2006 Posts: 522
|
Posted: Wed Mar 04, 2009 8:07 am Post subject: |
|
|
you need 2.6 ! 2.4 is deep different, also ... in such case kernel < 2.6.8 are different, too
i mean everything < 2.6.8 is not NPTL ! and that could cause issue !
that is the specific problem i have with iPAQ36** (armv4-le) ... that is the reason why i am porting it to a full working kernel 2.6
and now i am able to native emerge on it all the rootfs, the kernel running is 2.6.19, but ... the touchscreen and other hw stuff are still not working so ... a bit of hard work is still required to me |
|
Back to top |
|
|
|