BusyBox的安装

自称为嵌入式Linux下的瑞士军刀,一个Linux常用工具(utilities)的集合。比如使用频率较高的shell命令:ll , grep , find等等。官网戳我

在手机上安装一个吧。

看了一下新的测试机,居然已经自带了。

看看我的老古董samsung的I9001吧,没有。就拿它做实验吧,这个机器前不久才root过的。

下载最新的binaries.

对应我手机的cpu:

# cat /proc/cpuinfo
Processor	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 163.93
Features	: swp half thumb fastmult vfp edsp neon vfpv3 
CPU implementer	: 0x51
CPU architecture: 7
CPU variant	: 0x1
CPU part	: 0x00f
CPU revision	: 2

Hardware	: GT-I9001 Board
Revision	: 0000
Serial		: 0000000000000000
发现,最新的编译版本是armv6l的,手机的cpu是v7l,不知道可行不可行,试试看吧。

$ adb push tmp/busybox-armv6l /system/xbin
failed to copy 'tmp/busybox-armv6l' to '/system/xbin/busybox-armv6l': Permission denied
么有权限,看看如何解决:

$ adb shell
$ su
# mount -o rw, remount -t yaffs2 /dev/block/mtdblock3 /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system
# cd system
# chmod 777 xbin
#exit
这次再试试:

$ adb push tmp/busybox-armv6l /system/xbin
5819 KB/s (1096224 bytes in 0.183s)
终于push进去了,下面就安装吧。

$ su
# busybox-armv6l --install
busybox-armv6l: /usr/bin/[: No such file or directory
busybox-armv6l: /usr/bin/[[: No such file or directory
busybox-armv6l: /sbin/acpid: Invalid cross-device link
busybox-armv6l: /usr/bin/add-shell: No such file or directory
busybox-armv6l: /bin/addgroup: No such file or directory
busybox-armv6l: /bin/adduser: No such file or directory
busybox-armv6l: /sbin/adjtimex: Invalid cross-device link
busybox-armv6l: /sbin/arp: Invalid cross-device link
busybox-armv6l: /usr/bin/arping: No such file or directory
busybox-armv6l: /bin/ash: No such file or directory
busybox-armv6l: /usr/bin/awk: No such file or directory
不晓得什么原因,安装没有成功。

无奈,从软件商店直接下载一个busyboxpro,安装后,找到我需要使用的Applet各个安装,这次才可以使用了。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值