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 ...
随机推荐
- 如何解除改变phpmyadmin数据库导入文件大小限制?
1.进到自己的系统里面 打开php.ini的配置文件 修改php.ini: file_uploads on 是否允许通过HTTP上传文件的开关.默认为ON即是开 upload_tmp_d ...
- 一些peoplecode小技巧【一】
1. Get the description of the translate value: No need to write SQLEXEC on PSXLATITEM passing fieldn ...
- sql 基本操作
SQL基本操作 一数据类型1整数型 int2精确数值型 decimal(n,p)n为总位数,p为小数位数3浮点型 float4字符型char(n)n最大为4,varchar(n)5日期型datat ...
- IE中console的正确使用方法
本文出处原文链接 转载请注明出处 http://www.cnblogs.com/havedream/p/4519538.html 问题来源:最近在学习easyui,观看的视频教程是孙宇的<EAS ...
- 【转】一个高端.NET技术人才的2014年度总结
[转]一个高端.NET技术人才的2014年度总结 本人在一家公司做技术负责人.主要从事的是.net方面的开发与管理,偏重开发. 弹指一挥间,时间飘然而过,转眼又是一年. 回顾2014年,是我人生中最 ...
- mongodb 修改数据结构的一个例子以及小梳理
mongodb的存储结构是灵活可变的,但是,并不意味着我们就肆意地使用不规则的文档结构.不规则的文档结构对于开发和后期的维护都是一个灾难.所以,还是要有一个约定的格式. 但是,由于前期设计的不周详和其 ...
- linux内核SPI总线驱动分析(二)(转)
简而言之,SPI驱动的编写分为: 1.spi_device就构建并注册 在板文件中添加spi_board_info,并在板文件的init函数中调用spi_register_board_info(s3 ...
- 关于activity_main.xml与fragment_main.xml
第一种解决办法 新版安装SDK文件一开始有两个XML文件,activity_main.xml和fragment_main.xml,不习惯的可以这样处理:1.删除fragment_main.xml整个文 ...
- 使用Telerik控件搭建Doubanfm频道部分
今天感觉好累啊..还是坚持记录下. 收集的API: https://github.com/HakurouKen/douban.fm-api https://github.com/zonyitoo/do ...
- HDU1006
Problem Description The three hands of the clock are rotating every second and meeting each other ma ...