Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crosscompiling for the Zaurus 5600 (armv5tel)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Wed Feb 25, 2009 5:46 am    Post subject: Crosscompiling for the Zaurus 5600 (armv5tel) Reply with quote

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
View user's profile Send private message
OneOfOne
Guru
Guru


Joined: 28 May 2003
Posts: 368
Location: Alexandria, Egypt

PostPosted: Wed Feb 25, 2009 10:49 am    Post subject: Reply with quote

what's the output of : file helloworld?
also did you chmod +x it on the target?
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Wed Feb 25, 2009 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 04, 2009 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum