WNDR4300v2 固件编译

Posted howmp

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WNDR4300v2 固件编译相关的知识,希望对你有一定的参考价值。

WNDR4300v2 固件编译

1.从官网下载源码
 
找到其中 WNDR4300v2的源码,我使用的是WNDR4300v2-gpl_src_V1.0.0.32.zip
 
2.安装 ubuntu  10.04.3
 
根据其文件中的说明下载ubuntu  10.04.3  http://old-releases.ubuntu.com/releases/10.04.3/ubuntu-10.04.3-server-amd64.iso
 * This package has been built successfully on Ubuntu 10.04.3 (Server) with gcc 4.1.3.
 * Compiling this package on platforms other than Ubuntu 10.04.3 may have unexpected results.
 
3.修改apt源/etc/apt/sources.list
 
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-backports main restricted universe multiverse

## Not recommended
# deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-proposed main restricted universe multiverse
# deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-proposed main restricted universe multiverse
 
4.安装依赖程序和库 
 
apt-get update
apt-get install libncurses5-dev zlib1g-dev gawk flex patch git-core g++ subversion zip automake

 

5.解压源码包

 

unzip WNDR4300v2-V1.0.0.32_gpl_src.zip
bzip2 -d WNDR4300v2-V1.0.0.32_gpl_src.tar.gz.bz2
tar -zxf WNDR4300v2-V1.0.0.32_gpl_src.tar.gz
bzip2 -d toolchain.tar.gz.bz2
tar -zxf toolchain.tar.gz -C WNDR4300v2-V1.0.0.32_gpl_src
 
6.编译工具链
 
cd WNDR4300v2-V1.0.0.32_gpl_src
cp configs/defconfig-wndr4300v2 .config
GIT_HOME=`pwd`/git_home make prepare V=99
 
7.编译固件
 
GIT_HOME=`pwd`/git_home make V=99
 

 


以上是关于WNDR4300v2 固件编译的主要内容,如果未能解决你的问题,请参考以下文章

r6300v2 梅林固件 怎么刷回原厂

H7-TOOL发布固件V2.13,全新示波器上位机界面,信号发生器任意波形输出,脱机烧录增加BlueNRG-LP和桃芯科技(2022-02-11)

ppp模式如何设置openwrt

tp-link wr941n v2如何刷回原厂固件

openwrt启动项无效

ST-LINK V2 DIY笔记 之 固件更新方法