ubuntu14.04编译openwrt 14.07固件(wndr4300路由)
2014 年 12 月 21 日 ubuntu14.04编译openwrt 14.07固件(wndr4300路由)有5条评论
为wndr4300编译openwrt系统,内容如下:
1.安装编译过程的依赖包
apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc
2.下载源码并更新,下载如果太慢,可以使用proxychains4 -q bash走socks5代理下载
git clone git://git.openwrt.org/14.07/openwrt.git
cd openwrt
./scripts/feeds update -a
cd openwrt
./scripts/feeds update -a
3.编译
以下为wndr4300 make menuconfig的基本编译选项,推荐使用官网的config文件。
make menuconfig
Target System (Atheros AR7xxx/AR9xxx) --->
Subtarget (Generic devices with NAND flash) --->
Target Profile (NETGEAR WNDR3700v4/WNDR4300) --->
make
Target System (Atheros AR7xxx/AR9xxx) --->
Subtarget (Generic devices with NAND flash) --->
Target Profile (NETGEAR WNDR3700v4/WNDR4300) --->
make
获取官网的config文件,编译
wget https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/nand/config.ar71xx_nand
mv config.ar71xx_nand .config
make menuconfig
exit
make
mv config.ar71xx_nand .config
make menuconfig
exit
make
在后会生成如下固件文件
bin/ar71xx/openwrt-ar71xx-nand-wndr4300-squashfs-sysupgrade.tar
bin/ar71xx/openwrt-ar71xx-nand-wndr4300-ubi-factory.img
另外 编译 openwrt 15.05 固件参考
Tags: openwrt wndr4300 编译 路由
评论:4