openwrt的交叉编译
默认情况下,openwrt编译脚本会自动从Internet上获取所需要的软件包源代码,并把下载的源码包存放在当前目录的 dl/ 目录中;
在 build_dir/ 目录中存放编译中使用的软件包,
在 staging_dir/ 目录用于存放构建目标系统镜像的工具软件,包括: 宿主系统使用的工具,存放在 staging_dir/host/ 目录下
目标系统使用的软件包,存放在 staging_dir/target-mips_r2_uClibc-0.9.30.1/ 目录下
交叉编译工具链,存放在 staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/ 目录下
[opwrt@localhost openwrt-dreambox]$ ls
bin build_dir default_configs docs feeds.conf.default LICENSE package rules.mk staging_dir tmp tools
BSDmakefile Config.in dl feeds include Makefile README scripts target toolchain
[opwrt@localhost openwrt-dreambox]$ cd staging_dir/
[opwrt@localhost staging_dir]$ ls
host target-mips_r2_uClibc-0.9.30.1 toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1
[opwrt@localhost staging_dir]$ cd toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/
[opwrt@localhost toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1]$ ls
bin info.mk lib sbin stamp usr
[opwrt@localhost toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1]$ cd usr/
[opwrt@localhost usr]$ ls
bin include info lib libexec man mips-openwrt-linux mips-openwrt-linux-uclibc share
[opwrt@localhost usr]$ cd bin/
[opwrt@localhost bin]$ ls
ldd mips-openwrt-linux-gcov mips-openwrt-linux-uclibc-addr2line mips-openwrt-linux-uclibc-gprof
mips-openwrt-linux-addr2line mips-openwrt-linux-gprof mips-openwrt-linux-uclibc-ar mips-openwrt-linux-uclibc-ld
mips-openwrt-linux-ar mips-openwrt-linux-ld mips-openwrt-linux-uclibc-as mips-openwrt-linux-uclibc-nm
mips-openwrt-linux-as mips-openwrt-linux-nm mips-openwrt-linux-uclibc-c++ mips-openwrt-linux-uclibc-objcopy
mips-openwrt-linux-c++ mips-openwrt-linux-objcopy mips-openwrt-linux-uclibc-c++filt mips-openwrt-linux-uclibc-objdump
mips-openwrt-linux-c++filt mips-openwrt-linux-objdump mips-openwrt-linux-uclibc-cpp mips-openwrt-linux-uclibc-ranlib
mips-openwrt-linux-cpp mips-openwrt-linux-ranlib mips-openwrt-linux-uclibc-g++ mips-openwrt-linux-uclibc-readelf
mips-openwrt-linux-g++ mips-openwrt-linux-readelf mips-openwrt-linux-uclibc-gcc mips-openwrt-linux-uclibc-size
mips-openwrt-linux-gcc mips-openwrt-linux-size mips-openwrt-linux-uclibc-gcc-4.3.3 mips-openwrt-linux-uclibc-strings
mips-openwrt-linux-gcc-4.3.3 mips-openwrt-linux-strings mips-openwrt-linux-uclibc-gccbug mips-openwrt-linux-uclibc-strip
mips-openwrt-linux-gccbug mips-openwrt-linux-strip mips-openwrt-linux-uclibc-gcov
[opwrt@localhost capwap-0.93.3]$ vim /home/opwrt/.bash_profile
PATH=$PATH:/home/opwrt/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin
[opwrt@localhost capwap-0.93.3]$ make CC=mips-openwrt-linux-uclibc-gcc
./configure --host=mips-openwrt-linux --prefix=/tmp
openwrt的交叉编译的更多相关文章
- CentOS6 上OpenWRT交叉编译
目的不是为了编译固件,而是为了一个是编译可执行文件,放倒op的路由器上跑,另一个目的是安装一些开源软件折腾下(例如ss-lib),需要打包成 .ipk 格式 路由设备信息 erya@ERYA:~$ c ...
- 开发OpenWrt路由器上LuCI的模块
[题外话] 学校里最近改造了校园网,要求必须用iNode验证,万幸的是路由器能刷OpenWrt,并且OpenWrt上有好多iNode认证的开源项目,比如njit8021xclient(以下简称njit ...
- Openwrt自定义CGI实现
此文已由作者吴志勐授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验. 安装uhttpd. 在编译openwrt前,输入make memuconfig,查找Network -> ...
- 3Openwrt自定义CGI实现 前后端交互
https://www.cnblogs.com/163yun/p/9834993.html 安装uhttpd. 在编译openwrt前,输入make memuconfig,查找Network -> ...
- OpenWRT交叉编译
对于当前不在OpenWRT repository中的软件,如果是用源码形式发布的,那么可以用OpenWRT Buildroot进行交叉编译. 首先编译好Buildroot(一般编译过一次固件,就已经编 ...
- 交叉编译Node.js到OpenWrt(HG255D)
操作系统:deepin linux 2013 或 ubuntu 13.04 1.安装交叉编译前.须要安装的包 sudo apt-get install build-essential subversi ...
- 交叉编译OpenWrt 定制固件
在Centos7上交叉编译生成OpenWrt固件 安装ss-* 获取最新的ss, 当前是 wget https://github.com/shadowsocks/shadowsocks-libev/a ...
- OpenWRT学习笔记-1@WNDR3800
很久以前买了一台二手wndr3800 放假了刷成op可以一耍.ar71xx,芯片还比较热门. 首先是刷机,准备使用OP CC 15.05 r46767,官方稳定版.把原装系统降级到1.0.0.16,就 ...
- 搭建自己的OpenWrt开发环境
1. 安装环境Linux系统,如果在CentOS上操作,需安装如下依赖包:yum install binutils bzip2 gawk gcc gcc-c++ gettext makencurse ...
随机推荐
- C#中string[ ] args是什么意思,又有什么用呢
转载:http://blog.sina.com.cn/s/blog_8b7263d1010172jv.html C#控制台程序中static void Main(string[ ] args) str ...
- C#中的快捷键,可以更方便的编写代码 (转载)
C#中的快捷键,可以更方便的编写代码 CTRL + SHIFT + B 生成解决方案 CTRL + F7 生成编译 CTRL + O 打开文件 CTRL + SHIFT + O 打开项目 CTRL + ...
- Knockout.Js官网学习(html绑定、css绑定)
Html绑定 html绑定到DOM元素上,使得该元素显示的HTML值为你绑定的参数.如果在你的view model里声明HTML标记并且render的话,那非常有用. 简单示例 <div dat ...
- webview 中 svg的坑
在这里不会详细介绍如何绘制svg图片,是讲一个很小的bug,看图 在这张图中,上面带有纹理和弧度的图片,原本是直接切了一张png的图片,但是由于是在app的登录注册的首页,那么这个35k的图片就会非常 ...
- Cassandra 有限分页策略
瀑布式分页 如果你的应用只需要瀑布式的分页,那么,Cassandra可以很好的支持,不过记得要指定好排序顺序. CLUSTERING ORDER BY (add_time DESC); 常见的分页,跳 ...
- Py Split and Count For "PFW Impact Crusher For Sale South Africa"
data = 'As we all know, the impact Crusher is fully used in the transportation, energy, construction ...
- cursorfilter
android.widget.CursorAdapter它首先实现了两个接口Filterable,CursorFilter.CursorFilterClient.其中Filterable接口定义了ge ...
- cxGrid使用汇总(一)
1. 去掉cxGrid中台头的Box 解决:在tableview1的ptionsview的groupbybox=false; 2.统计功能 解决:(1) tableview 1. tableview1 ...
- ARM-Linux S5PV210 UART驱动(3)----串口核心层、关键结构体、接口关系
尽管一个特定的UART设备驱动完全可以按照tty驱动的设计方法来设计,即定义tty_driver并实现tty_operations其中的成员函数,但是Linux已经在文件serial_core.c中实 ...
- vim代码补全-spf13,YouCompleteMe
vim代码补全 现在的图形界面的IDE(Integrated Development Environment)一般具有语法高亮,语法检查,自动补全功能,大大提高了编程的效率. vim作为文本编辑器其强 ...