Bug 3055 - Doesn't work with emulator in sdk
Summary: Doesn't work with emulator in sdk
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.17.x
Hardware: PC Windows
: P5 blocker
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 00:26 UTC by patxi_hml
Modified: 2011-01-16 18:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patxi_hml 2011-01-10 00:26:50 UTC
When I try to use in the SDK emulator, it doesn´t work in several versions:

-Running Android 2.3 (API level 9) with no special options 

-Using busybox-armv6 in 1.17 version.

-Example runnin 

C:\Archivos de programa\Android\android-sdk-windows\platform-tools>adb push "C:\
Documents and Settings\fjjb\Mis documentos\Downloads\legend\busybox\busybox-1.17
.2\busybox-armv6l" /data/local/tmp
111 KB/s (1062992 bytes in 9.328s)

C:\Archivos de programa\Android\android-sdk-windows\platform-tools>adb shell
# cd /data/local/tmp
cd /data/local/tmp
# ls -l
ls -l
-rw-rw-rw- root     root      1062992 2010-12-29 02:25 busybox-armv6l
# mv busybox-armv6l busybox
mv busybox-armv6l busybox
# chmod 755 busybox
chmod 755 busybox
# ./busybox ls /
./busybox ls /
←[1;34macct←[0m                 ←[1;36metc←[0m                  ←[1;34msbin←[0m
←[1;34mcache←[0m                ←[1;32minit←[0m                 ←[1;36msdcard←[0
m
←[1;34mconfig←[0m               ←[1;32minit.goldfish.rc←[0m     ←[1;34msys←[0m
←[1;36md←[0m                    ←[1;32minit.rc←[0m              ←[1;34msystem←[0
m
←[1;34mdata←[0m                 ←[1;34mmnt←[0m                  ←[0;0mueventd.go
ldfish.rc←[0m
←[0;0mdefault.prop←[0m         ←[1;34mproc←[0m                 ←[0;0mueventd.rc←
[0m
←[1;34mdev←[0m                  ←[1;34mroot←[0m                 ←[1;36mvendor←[0
m
# ./busybox
./busybox
BusyBox v1.17.2 (2010-09-05 04:15:58 CDT) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, acpid, addgroup, adduser, adjtimex, arp, arping, ash, awk,
        basename, beep, blkid, bootchartd, brctl, bunzip2, bzcat, bzip2, cal,
        cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
        chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw,
        cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
        devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
        dos2unix, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env,
        envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset,
        fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs,
        flock, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget,
        ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hd, hdparm,
        head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig,
        ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install, ionice,
        ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel,
        kbd_mode, kill, killall, killall5, klogd, last, length, less, linux32,
        linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname,
        logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, lsusb,
        lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev,
        mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix,
        mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more,
        mount, mountpoint, mt, mv, nameif, nc, netstat, nice, nmeter, nohup,
        nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6,
        pipe_progress, pivot_root, pkill, popmaildir, poweroff, printenv,
        printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink,
        readprofile, realpath, reboot, reformime, renice, reset, resize, rev,
        rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, runlevel,
        runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch,
        setconsole, setfont, setkeycodes, setlogcons, setsid, setuidgid, sh,
        sha1sum, sha256sum, sha512sum, showkey, slattach, sleep, smemcap,
        softlimit, sort, split, start-stop-daemon, stat, strings, stty, su,
        sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl,
        syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp,
        tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true,
        tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount, uname, unexpand,
        uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, usleep, uudecode,
        uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget,
        which, who, whoami, xargs, xz, xzcat, yes, zcat, zcip
Comment 1 Denys Vlasenko 2011-01-10 01:18:44 UTC
(In reply to comment #0)
> When I try to use in the SDK emulator, it doesn´t work in several versions:
> 
> -Running Android 2.3 (API level 9) with no special options 
> 
> -Using busybox-armv6 in 1.17 version.
> 
> -Example runnin 
> 
> C:\Archivos de programa\Android\android-sdk-windows\platform-tools>adb push
> "C:\
> Documents and Settings\fjjb\Mis
> documentos\Downloads\legend\busybox\busybox-1.17
> .2\busybox-armv6l" /data/local/tmp
> 111 KB/s (1062992 bytes in 9.328s)
> 
> C:\Archivos de programa\Android\android-sdk-windows\platform-tools>adb shell
> # cd /data/local/tmp
> cd /data/local/tmp
> # ls -l
> ls -l
> -rw-rw-rw- root     root      1062992 2010-12-29 02:25 busybox-armv6l
> # mv busybox-armv6l busybox
> mv busybox-armv6l busybox
> # chmod 755 busybox
> chmod 755 busybox
> # ./busybox ls /
> ./busybox ls /
> ←[1;34macct←[0m                 ←[1;36metc←[0m                  ←[1;34msbin←[0m
> ←[1;34mcache←[0m                ←[1;32minit←[0m                
> ←[1;36msdcard←[0
> m
> ←[1;34mconfig←[0m               ←[1;32minit.goldfish.rc←[0m     ←[1;34msys←[0m
> ←[1;36md←[0m                    ←[1;32minit.rc←[0m             
> ←[1;34msystem←[0
> m
> ←[1;34mdata←[0m                 ←[1;34mmnt←[0m                 
> ←[0;0mueventd.go
> ldfish.rc←[0m
> ←[0;0mdefault.prop←[0m         ←[1;34mproc←[0m                
> ←[0;0mueventd.rc←
> [0m
> ←[1;34mdev←[0m                  ←[1;34mroot←[0m                
> ←[1;36mvendor←[0
> m

And it seems to be working, right? It shows the list of files in /.
Regarding ←[1;36m and such: get yourself a better terminal emulator, one which understands color codes; or compile busybox with CONFIG_FEATURE_LS_COLOR unset in .config

> # ./busybox
> ./busybox
> BusyBox v1.17.2 (2010-09-05 04:15:58 CDT) multi-call binary.