OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Android => Topic started by: jpmatrix on January 19, 2008, 05:48:37 pm

Title: Busibox For Android
Post by: jpmatrix on January 19, 2008, 05:48:37 pm
http://benno.id.au/blog/2007/11/14/android-busybox (http://benno.id.au/blog/2007/11/14/android-busybox)

how can we install that to the zaurus android ?
Title: Busibox For Android
Post by: Android Zaurus on January 21, 2008, 04:39:49 am
Quote from: jpmatrix
http://benno.id.au/blog/2007/11/14/android-busybox (http://benno.id.au/blog/2007/11/14/android-busybox)

how can we install that to the zaurus android ?

As benno says, copy it to android-root/data/app/busybox and add PATH to your android-root/start script.

But question is how to get an Android console. The easiest way would be modify your android-root/start script.

Before
====
/init

After
===
/init &
/system/bin/sh

After booting Android up, try [Fn] + [left/right cursor]. If you find "\u@\h:\w$", that's the Android console.

\u@\h:\w$ busybox | busybox more
\u@\h:\w$ busybox ash

There is a one issue. The keycodes are passed to the graphical screen too. Which means everytime you press [Enter] key, some activies are fired in the graphical screen. It is kind of annoying.

To avoid this issue, launch Android from ssh console of your PC.

If you are using Angstrom based Android, you can try this.

Android Zaurus: setconsole and tty1
http://androidzaurus.seesaa.net/article/75560174.html (http://androidzaurus.seesaa.net/article/75560174.html)

Please do not try on Poky based Android. I've been told by cortez that it doesn't work for his image.
Title: Busibox For Android
Post by: jpmatrix on January 21, 2008, 05:00:50 am
ok. thanks

in fact when i do

busybox --install

as said on benno's site i get a "permission denied..." although i chmod 777 busybox...

(i use android under debian with angstrom kernel
Title: Busibox For Android
Post by: Android Zaurus on January 21, 2008, 06:06:39 am
Quote from: jpmatrix
ok. thanks

in fact when i do

busybox --install

as said on benno's site i get a "permission denied..." although i chmod 777 busybox...

(i use android under debian with angstrom kernel

Get sh console up with busybox. You can execute any commands in busybox.
\u@\h:\w$ busybox ash
/ $ gzip --help

You will notice "ps" output difference between busybox and toolbox.
/ $ ps
/ $ /system/bin/ps

Or you can install manually by making symbolic link. If you want "tar" and "top" then;
$ cd /data/app/busybox
$ ln -s busybox tar
$ ln -s busybox top

My opinion. I would not try to --install until toolbox source code becomes public because I don't know what side effect would be. I guess toolbox could be yet another version of busybox.

For now, I stick with "busybox tar", "busybox top" kind of way.

Cheers,