IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [原]BusyBox的安装

    lincyang发表于 2013-07-02 14:49:44
    love 0

    自称为嵌入式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各个安装,这次才可以使用了。



沪ICP备19023445号-2号
友情链接