2009年12月2日 星期三

busybox's telnetd on Android

build busybox
下載 busybox source code
在busybox source code 目錄下,
$ make menuconfig

Busybox Settings -> Build Options ->
[*] Build BusyBox as a static binary (no shared libs)
Cross Compiler prefex
/opt/toolchain/arm-2008q3/bin/arm-none-linux-gnueabi-
Busybox Settings -> Installation Options->
[*] Don’t use /usr

$ make -I./opt/toolchain/arm-2008q3/arm-none-linux-gnueabi/libc/usr/include/
$ make install
$ cd _install/bin
$ tar zcvf busybox.tgz *

安裝 busybox 在 Android's myfs
$ mkdir $MYFS/data/busybox
$ cp busybox.tgz $MYFS/data/busybox
$ cd $MYFS/data/busybox
$ tar zxvf busybox.tgz

設定init.rc
$ vi /init.rc
export PATH /data/busybox:/sbin:........................

service telnetd /data/busybox/busybox telnetd -l /system/bin/sh
oneshot


reference:


沒有留言: