<div>update:</div>
<div><br>I tried to run the busybox bins I found on the web for Android, but it seems were not compiled for Freerunner.<br>I tried also to use the busybox bin from the openmoko distrib, failed again with &quot;not found&quot; error.<br>
My last solution seems to be to compile it myself.<br>&nbsp;a) followed <a href="http://trac.koolu.org/">http://trac.koolu.org/</a> and <a href="http://source.android.com/download">http://source.android.com/download</a><br>&nbsp;b) I took the busybox branch from koolu (<a href="http://git.koolu.org/?p=platform/external/busybox.git;a=summary">http://git.koolu.org/?p=platform/external/busybox.git;a=summary</a>), but it seems that it&#39;s not configured for freerunner(does not have Android.mk file and arch is ARCH=i386 without arm option).<br>
&nbsp;c) I checked the <a href="http://busybox.net">busybox.net</a> and it seems they also do not have conf for arm.</div>
<div>Now I modified the Makefile of the busybox downloaded at step b above, to have:<br>[code]ARCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?= arm<br>CROSS_COMPILE&nbsp;&nbsp; ?= /mnt/D/moko/openmoko/arm/bin/arm-angstrom-linux-gnueabi-[/code]<br>and I get: <br>
[code]&nbsp; SPLIT&nbsp;&nbsp; include/autoconf.h -&gt; include/config/*<br>&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/bbconfigopts.h<br>&nbsp; HOSTCC&nbsp; applets/usage<br>applets/usage.c: In function a? maina??:<br>applets/usage.c:16: warning: ignoring return value of a? writea??, declared with attribute warn_unused_result<br>
&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/usage_compressed.h<br>&nbsp; HOSTCC&nbsp; applets/applet_tables<br>&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/applet_tables.h<br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applets/applets.o<br>as: unrecognized option &#39;-mfloat-abi=soft&#39;<br>make[1]: *** [applets/applets.o] Error 1<br>
make: *** [applets] Error 2[/code]</div>
<div>PS: the toolchain (openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.bz2) was downloaded from <a href="http://openmoko.org">openmoko.org</a>.</div>
<div>2nd try:<br>I downloaded the deb package with chaintool from koolu (android-toolchain_20081019-koolu1_i386.deb) and was installed under /opt/android-toolchain/...</div>
<div>[code]ARCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?= arm<br>CROSS_COMPILE&nbsp;&nbsp; ?= /opt/android-toolchain/bin/armv4t-android-eabi-[/code]</div>
<div>and now it seems the include is not correct (see below). I checked the /opt/android-toolchain/ and indeed it does not have the header files inside, like openmoko toolchain. Could this be the issue?<br>[code]<br>&nbsp; SPLIT&nbsp;&nbsp; include/autoconf.h -&gt; include/config/*<br>
&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/bbconfigopts.h<br>&nbsp; HOSTCC&nbsp; applets/usage<br>applets/usage.c: In function &lsquo;main&rsquo;:<br>applets/usage.c:16: warning: ignoring return value of &lsquo;write&rsquo;, declared with attribute warn_unused_result<br>&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/usage_compressed.h<br>
&nbsp; HOSTCC&nbsp; applets/applet_tables<br>&nbsp; GEN&nbsp;&nbsp;&nbsp;&nbsp; include/applet_tables.h<br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applets/applets.o<br>applets/applets.c:10:20: error: assert.h: No such file or directory<br>In file included from include/libbb.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from include/busybox.h:10,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from applets/applets.c:11:<br>include/platform.h:107:23: error: byteswap.h: No such file or directory<br>include/platform.h:108:21: error: endian.h: No such file or directory<br>include/platform.h:114:7: warning: &quot;__BYTE_ORDER&quot; is not defined<br>
include/platform.h:114:23: warning: &quot;__BIG_ENDIAN&quot; is not defined<br>include/platform.h:140:24: error: arpa/inet.h: No such file or directory<br>include/platform.h:187:5: warning: &quot;__BIG_ENDIAN__&quot; is not defined<br>
In file included from include/busybox.h:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from applets/applets.c:11:<br>include/libbb.h:15:19: error: ctype.h: No such file or directory<br>include/libbb.h:16:20: error: dirent.h: No such file or directory<br>
include/libbb.h:17:19: error: errno.h: No such file or directory<br>include/libbb.h:18:19: error: fcntl.h: No such file or directory<br>include/libbb.h:19:22: error: inttypes.h: No such file or directory<br>include/libbb.h:20:19: error: netdb.h: No such file or directory<br>
include/libbb.h:21:20: error: setjmp.h: No such file or directory<br>include/libbb.h:22:20: error: signal.h: No such file or directory<br>include/libbb.h:23:19: error: stdio.h: No such file or directory<br>include/libbb.h:24:20: error: stdlib.h: No such file or directory<br>
include/libbb.h:27:20: error: string.h: No such file or directory<br>[/code]</div>
<div>I noticed that the bionic project has these files in it&#39;s include dir. <br>Of course I tried to copy those from there and it fails with various errors. For sure this is not the way...</div>
<div>Now, <br>can anyone explain how to configure this project to be buildable ? I think an Android.mk file has to be created but could not find how to tranform the existing Makefile to Andorid.mk.</div>
<div>&nbsp;<br>Thanks.</div>