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设备重新编译即可:

相关推荐
AlfredZhao2 小时前
Docker 快速入门:手把手教你打包 Python 应用
linux·docker·podman
HIT_Weston3 小时前
107、【Ubuntu】【Hugo】搭建私人博客:模糊搜索 Fuse.js(三)
linux·javascript·ubuntu
艾莉丝努力练剑3 小时前
【优选算法必刷100题】第007~008题(双指针算法):三数之和、四数之和问题求解
linux·算法·双指针·优选算法
Tao____4 小时前
通用性物联网平台
java·物联网·mqtt·低代码·开源
chinesegf4 小时前
Ubuntu 安装 Python 虚拟环境:常见问题与解决指南
linux·python·ubuntu
crownyouyou4 小时前
Ubuntu输入法使用回车键后字符间距异常的问题
linux·运维·ubuntu
济6174 小时前
linux 系统移植(第十七期)---Linux 内核移植(5)-- 修改网络驱动(2)--- Ubuntu20.04
linux·运维·网络
街灯L5 小时前
【kylin-Linux】Flash兼容插件包安装
大数据·linux·运维·kylin
Howrun7776 小时前
Linux_C++网络编程四种CS模型
linux·运维·服务器