ubuntu交叉编译试用于openwrt的i2c-tools
来源:互联网 发布:用python做科学计算pdf 编辑:程序博客网 时间:2024/06/03 06:10
1、下载
到Github下载i2c-tools源码 https://github.com/groeck/i2c-tools
2、解压
unzip i2c-tools-master.zip
3、交叉编译
cd i2c-tools-master
make CC=~/mt7688/CC_TOOLS/bin/mipsel-openwrt-linux-gcc
我这里Openwrt的交叉编译器的地址是在我的主目录~/mt7688/CC_TOOLS/bin下,编译结果在i2c-tools-master/tools下,所需的库在i2c-tools-master/lib下
4、打包,建立一个openwrt-i2ctool文件夹,纺织i2c-tools可执行程序和库
cd tools
cp i2cdetect i2cset i2cget i2cdump ../openwrt-i2ctool/
cd lib
cp libi2c.* ../openwrt-i2ctool/
这样在openwrt-i2ctool下就有i2cdetect i2cdump i2cget i2cset libi2c.a libi2c.map libi2c.so libi2c.so.0 libi2c.so.0.1.0
tar cvf openwrt-i2ctool.tar.gz openwrt-i2ctool/
5、scp传输到目标板mt7688,解压
tar xvf openwrt-i2ctool.tar
6、把文件夹中可执行程序拷贝到 /bin,库放在 /lib就行
cd openwrt-i2ctool
cp i2cdetect i2cdump i2cget i2cset /bin/
cp libi2c.so* /lib/
7、测试
执行命令:i2cdetect -l ,得到结果,说明安装成功
- ubuntu交叉编译试用于openwrt的i2c-tools
- Ubuntu14.04交叉编译i2c-tools
- Openwrt 交叉编译环境的配置 linux
- openwrt交叉编译自己的应用程序(openwrt应用开发)
- 交叉编译OpenWRT
- openwrt交叉编译
- Openwrt 交叉编译HelloWord
- openwrt 交叉编译花生壳
- 交叉编译OpenWRT应用程序
- OpenWrt交叉编译helloworld
- openwrt 交叉编译花生壳
- Ubuntu下建立openwrt-linux交叉编译环境
- Ubuntu下Openwrt的编译
- 使用交叉编译编译在OpenWRT上运行的程序
- Ubuntu下的交叉编译
- 建立OPENWRT交叉编译环境
- openwrt 构建交叉编译工具
- openwrt交叉编译环境搭建
- 一般将absolute元素的父元素设为relative
- shell脚本中expect交互应用2017.1.10
- 微服务(Microservice)那点事
- Win7、Ubuntu双系统删除Ubuntu后启动no such partition grub rescue错误
- 算法提高 简单计算器
- ubuntu交叉编译试用于openwrt的i2c-tools
- CSS继承性的研究
- Java实现SHA-256签名加密
- matplotlib 命令行执行报错
- 迭代器模式
- 给linux杀杀毒吧
- 无人车带给程序员哪些机会
- Android 之 Fragment
- 初识Linux命令