openwrt 编译newifi 应用程序
Posted 范晨鹏的博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openwrt 编译newifi 应用程序相关的知识,希望对你有一定的参考价值。
首先找交叉编译工具( toolchain )
Development Snapshots
http://downloads.openwrt.org/snapshots/trunk/
我需要的版本是 m7620
http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/
下载文件 OpenWrt-Toolchain-ramips-mt7620_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
[[email protected]_129_51_centos openwrt]# wget http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/OpenWrt-Toolchain-ramips-mt7620_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 [[email protected]_129_51_centos openwrt]# tar -jxf OpenWrt-Toolchain-ramips-mt7620_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 [[email protected]_129_51_centos openwrt]# mv OpenWrt-Toolchain-ramips-mt7620_gcc-5.3.0_musl-1.1.15.Linux-x86_64 toolchain [[email protected]_129_51_centos openwrt]# wget http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/OpenWrt-SDK-15.05.1-ramips-mt7620_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2 [[email protected]_129_51_centos openwrt]# tar -jxf OpenWrt-SDK-15.05.1-ramips-mt7620_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2 [[email protected]_129_51_centos openwrt]# mv OpenWrt-SDK-15.05.1-ramips-mt7620_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64 SDK [[email protected]_129_51_centos openwrt]# find / -name staging_dir /root/openwrt/SDK/staging_dir [[email protected]_129_51_centos bin]# export STAGING_DIR=‘/root/openwrt/SDK/staging_dir‘ [[email protected]_129_51_centos bin]# export CC=/root/openwrt/toolchain/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.15/bin/mipsel-openwrt-linux-musl-g++
[[email protected]_129_51_centos bin]# export CPLUS_INCLUDE_PATH=/root/openwrt/SDK/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.18.23/include/uapi/linux/can/
以上是关于openwrt 编译newifi 应用程序的主要内容,如果未能解决你的问题,请参考以下文章
极贰openwrt 编译 7620a+7621e,能够开启 2.4G,5G 该怎么打开
极贰openwrt 编译 7620a+7621e,能够开启 2.4G,5G 该怎么打开