Chinaunix首页 | 论坛 | 博客

apt

  • 博客访问: 381069
  • 博文数量: 121
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 600
  • 用 户 组: 普通用户
  • 注册时间: 2015-04-10 15:52
文章分类

全部博文(121)

文章存档

2017年(2)

2016年(23)

2015年(96)

我的朋友

分类: LINUX

2015-06-05 16:29:44

移植busybox原因:android shell下的命令实在太难用了
移植步骤:1、在ubuntu下下载busybox源码,$sudo apt-get source busybox
                  下载完成后会自动解压在当前目录busybox-1.13.3
              2、$cd busybox-1.13.3
                  $
sudo make menuconfig

a) Busybox Settings --> Build Options --> Build Busybox as a static binary (no shared libs)  -  Enable this option by pressing "Y"

b) Busybox Settings --> Build Options --> Cross compiler prefix  -  Set this option equal to "arm-none-linux-gnueabi-";此项我没有设置,直接在busybox-1.13.3下的Makefile里面
改CROSS_COMPILE效果一样

c) Busybox Settings --> Installation Options --> Don't use /usr  -  Enable this option by pressing "Y"

               3、 $sudo make 编译没错的话会在目录下生成busybox可执行程序
               4, adb push f:\busybox /sdcard
               5, #cat busybox >/system/
               6,# chmod  777 busybox
   
      eg:busybox ifconfig -a   哈哈哈哈,可以用了
阅读(1068) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~