Feeds:
Posts
Comments

Posts Tagged ‘Armadillo-810’

Development Environment is Ubuntu-12.04 Linux

Step1: Download BusyBox source code from Busybox official website
wget http://www.busybox.net/downloads/busybox-1.20.2.tar.bz2
tar -jzvf busybox-1.20.2.tar.bz2

Step2: Download the ARM Toolkit, e.g. Sourcery G++ Lite arm-2010q1-202 for ARM GNU /Linux
wget
http://www.codesourcery.com/sgpp/lite/arm/portal/package6488/public/arm-none-linux-gnueabi/arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
tar -jzvf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

note: using the newest toolchain compile busybox-1.20.2 failed, use this toolchain 4.2.3 compiled ok.

Step3: Configure
cd busybox-1.20.2
make menuconfig
Busybox Settings -> Build Options ->
[*] Build BusyBox as a static binary (no shared libs)
(/yourpath/arm-2010q1/bin/arm-none-linux-gnueabi-) Cross Compiler prefex
Busybox Settings -> Installation Options->
[*] Don’t use /usr

Step4: Compile
if not set Cross Compiler prefix at step 3
make CROSS_COMPILE=/yourpath/arm-2010q1/bin/arm-none-linux-gnueabi- LDFLAGS=”–static” CFLAGS=”–static”
else
make LDFLAGS=”–static” CFLAGS=”–static”

Step5: Busybox ready to use
file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.16, stripped

Step6: Upload to Target device
adb push busybox /data/local/tmp/
adb shell chmod 755 /data/local/tmp/busybox

Enjoy 🙂

Reference :
http://machi021.blogspot.jp/2011/03/compile-busybox-for-android.html

Advertisements

Read Full Post »