Gentoo Archives: gentoo-embedded

From: Mike Auty <ikelos@g.o>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Embedded linux toolchain question
Date: Tue, 22 Jan 2008 23:04:11
Message-Id: 47967630.2070200@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hi everybody,
5
6 I initially posted this to a fellow dev who quite rightly pointed me in
7 the direction of this list. I was hoping someone here might be able to
8 tell me if what I'm trying to achieve is feasible or not.
9
10 I've got some existing code for tying python to some system libraries,
11 and I was hoping to port it onto an embedded device, specifically an
12 ipod. I've managed to source myself three old ipods (one 3rd Gen
13 and two 4th gen). I've got ipodlinux happily running on one of them,
14 installed python, rebuilt the kernel using ipodlinux's pre-packaged
15 toolchain (which they seem to call arm-uclinux-elf/arm-elf).
16
17 I went to build the system libraries I needed and noticed the toolchain
18 didn't seem able to support shared objects, and hence the python
19 C-extension modules probably wouldn't compile either. Attempting to
20 compile python natively also failed, so building the extension right in
21 to python looks difficult.
22
23 So, I started investigating building the toolchain on Gentoo using
24 crossdev. So far I've successfully built arm-elf, but ipodlinux seems
25 to mention uclinux a lot and I haven't been able to build an
26 arm-unknown-uclinux target successfully. Also, there seemed to be a few
27 posts about the gentoo arm-elf toolchain not supporting elf2flt (which
28 seemed necessary to reuse any existing ipodlinux applications). I'm
29 also not certain if the arm-elf toolchain built on gentoo will let me
30 build shared objects or not.
31
32 That seems to leave me with the following options:
33
34 1. Try rebuilding everything using arm-elf on gentoo.
35 2. Try to build python using the binary-packaged toolchain.
36 3. Try to rewrite my code in C directly and statically link the system
37 libraries.
38
39 I was hoping someone here might be able to clear up some of the
40 confusion surrounding the right targets to use, and offer an opinion on
41 which option seems like the best one to pursue?
42
43 Thanks very much,
44
45 Mike 5:)
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v2.0.7 (GNU/Linux)
48
49 iD8DBQFHlnYvu7rWomwgFXoRArYPAKCBqh7v+FWKCqHIov/3qjKBvsEe0QCeJbGR
50 tdG/X8ITar2/OSUrGiBs/dQ=
51 =U9N8
52 -----END PGP SIGNATURE-----
53 --
54 gentoo-embedded@l.g.o mailing list

Replies