TL-WR710N-V2.1 硬改刷机OpenWRT源码编译固件

TL-WR710N-V2.1 硬改刷机OpenWRT源码编译固件

一、硬件修改

  • DDR改为64MB
  • NorFlash改为16MB(注意:需要先烧录breed不死uboot再焊到板子上)
  • R66 贴上22欧姆电阻,或直接短路起来
  • 控制台串口引线Tx,Rx,Gnd方便串口操作
  • USB飞行DP和DM这个有点难度

breed下载及烧录方法见下文


二、固件刷机

breed不死uboot下载地址

打开breed下载链接,选择有ar9331的bin文件,本例下载"breed-ar9331-wr710n_wr720n.bin" 和"breed-ar9331.bin"都可以使用

将已烧录breed的flash焊到板子上,RJ45网线连接到电脑和路由器LAN口,上电开机电脑浏览器输入192.168.1.1即可访问到breed界面,如下:

固件更新=》固件=》选择编译的固件《openwrt-ath79-generic-tplink_tl-wr710n-v2.1-squashfs-sysupgrade.bin》选择ART.bin文件



等一段时间ifconfig命令可以看到网络接口后电脑浏览器输入192.168.1.1即可访问到luci界面

三、OpenWrt配置编译固件
https://openwrt.org/

shell 复制代码
git clone https://git.openwrt.org/openwrt/openwrt.git

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

1)先update

sudo apt-get update (更新)

2)安装编译需要的组件:

sudo apt-get install gcc

sudo apt-get install g++

sudo apt-get install binutils

sudo apt-get install patch

sudo apt-get install bzip2

sudo apt-get install flex

sudo apt-get install bison

sudo apt-get install make

sudo apt-get install autoconf

sudo apt-get install gettext

sudo apt-get install texinfo

sudo apt-get install unzip

sudo apt-get install sharutils

sudo apt-get install subversion

sudo apt-get install libncurses5-dev

sudo apt-get install ncurses-term

sudo apt-get install zlib1g-dev

sudo apt-get install gawk

sudo apt-get install asciidoc

sudo apt-get install libz-dev

sudo apt-get install libssl-dev

sudo apt-get install ocaml-nox

git clone https://git.openwrt.org/openwrt/openwrt.git

cd openwrt

git checkout v2x.xx # 切换到需要的分支

添加软件扩展包,将feeds.conf.default修改为feeds.conf:

cp feeds.conf.default feeds.conf

更新扩展,安装扩展:

./scripts/feeds update -a

./scripts/feeds install -a

make defconfig

make menuconfig

make

报错:images are too big by xxxxx bytes

原因:生成的固件大于IMAGE_SIZE配置的空间

解决:配置为16M Flash(前提是硬件已经改为16M Flash)或make menuconfig 勾选掉不必要的模块

这里硬件已改为16M Flash,直接配置为16M设备重新编译即可:

相关推荐
chlk1234 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑5 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件5 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号15 小时前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash19 小时前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI1 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
Jony_2 天前
高可用移动网络连接
网络协议
chilix2 天前
Linux 跨网段路由转发配置
网络协议
木心月转码ing2 天前
WSL+Cpp开发环境配置
linux