Chinaunix首页 | 论坛 | 博客
  • 博客访问: 297528
  • 博文数量: 65
  • 博客积分: 185
  • 博客等级: 入伍新兵
  • 技术积分: 609
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-06 21:41
个人简介

好好学习,天天向上

文章分类

全部博文(65)

文章存档

2022年(3)

2021年(25)

2020年(1)

2019年(3)

2016年(2)

2015年(3)

2014年(14)

2013年(7)

2012年(7)

我的朋友

分类: LINUX

2013-09-01 17:08:48

移植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   哈哈哈哈,可以用了
阅读(8402) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~