找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 14864|回复: 11

TP-Link WDR7800 v1 TTL刷机指南 - OpenWRT

[复制链接]
发表于 2018-8-6 10:23 | 显示全部楼层 |阅读模式
经过两天的不断折腾,终于成功刷上OpenWRT,记录下。

# 硬件
1. 拆开机器上的5颗螺丝,然后需要一点力气才能打开(因为卡口比较紧)。
2. LED水平向上摆放,找到左上角的4个孔(在8个孔下方);从左到右依次为TX,RX, GND, VCC;
3. 依次连接USB2TTL板子上的RX, TX, GND。(VCC悬空,USB2TTL上面选择的3.3V,应该是用不上的)
4. PUTTY设置串口连接,波特率117500,(注意不是115200,要不然uboot显示乱码),注意保存log
5. 焊接RX下方的R9, R10 (两个电阻左侧焊起来),这样就可以在putty里面输入命令了。

# U-boot
1. 默认开机进入SLP login, 但是试了几个密码都不成功;所以没有进行备份。
2. 重启,在Auto rebooting in 1s的时候快速输入slp, 进入uboot(可能需要多试几次才能进入,我输入slp还加了Enter键才进入的)
3. 进入slp后,通过tftp刷入breed WDR6500版本 (这个版本串口没有办法输入命令,但是可以启动;其它版本试过了,可以输入命令,但是不能启动)
4. 注意,我没有成功备份art,所以后面用的art是从wdr7400v2来的。希望有wdr7800v1 art的同学分享下。
5. reset键进入breed,后面进行openwrt升级(在breed web界面操作)
6. 修改TPLINK mac地址到eth1 地址(可以从前面putty log中得到)


# 刷入OpenWRT
1. openwrt官网下载wdr6500 v2对应的factory build
2. breed升级固件输入openwrt

3. breed刷入备份过的art (我用的WDR7400v2的art)
4. 重启后,进入openwrt


# OpenWRT 配置
1. Luci或者ssh root@192.168.1.1进入openwrt, 推荐luci
2. 设置WAN口PPPOE账号密码,然后可以正常连回宽带使用了。
3. 后面的配置因人而异,可以选择保存配置。


评分

参与人数 2恩山币 +2 收起 理由
ezhimeng + 1 感谢你的分享
心理有数 + 1 TTL能上个图就更好了

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2018-8-6 11:39 | 显示全部楼层
难得上传了,跟WDR7400是一样的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-6 13:27 | 显示全部楼层
怎么没有图呢,,上图啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-23 13:37 | 显示全部楼层
谢谢!知道怎么进uboot了
可以使用SecureCRT 软件用鼠标右键定义一串slp(就是让securecrt按一下右键就输入slp)
-----------------------------------------------
U-Boot 1.1.4 (Oct 24 2016 - 12:27:13)(COMPRESSED)

ap151 - Dragonfly 1.0

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 205k for U-Boot at: 83fcc000
Reserving 132k for malloc() at: 83fab000
Reserving 44 Bytes for Board Info at: 83faafd4
Reserving 36 Bytes for Global Data at: 83faafb0
Reserving 128k for boot params() at: 83f8afb0
Stack Pointer at: 83f8af98
Now running in RAM - U-Boot at: 83fcc000
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 2048
Flash:  8 MB
Using default environment

Autobooting in 1 seconds
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
Fetching MAC Address from 0x83fefabc
ath_gmac_enet_initialize: reset mask:c02200
Dragonfly----> S27 PHY *
GMAC: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
ATHRS27: resetting s27
ATHRS27: s27 reset done
GMAC: cfg1 0x800c0000 cfg2 0x7214
eth1: 00:0c:f0:60:dc:98
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0, eth1
Setting 0x181162c0 to 0x82
ath> slpslp
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-23 13:38 | 显示全部楼层
WDR7800 uboot 能用的命令
---------------------------------------------------------------
ath> help  
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
httpd   - start www server for firmware recovery
jmpaddr   - jump to a address
mct   - simple RAM test
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
progmac2 - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ath>
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-23 13:41 | 显示全部楼层
本帖最后由 jiuweiljp 于 2019-2-23 13:49 编辑

显示 env参数。可以知道以下信息1、Uboot 32kB
2、奇怪怎么有两个uboot啊
3、串口的速率就是115200不是楼主在(https://www.right.com.cn/FORUM/thread-332892-1-1.html)帖子中说的128000.
4、ART在固件的最后64KB
5、原厂的固件载入地址  0x9f030000
6、如果如要tftp 写固件 电脑的ip需要是 192.168.1.10

----------------------------
ath> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:32k(u-boot1),32k(u-boot2),3008k(rootfs),896k(uImage),64k(mib0),64k(ART)
bootcmd=jmpaddr 0x9f030000
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.1
serverip=192.168.1.10
loadaddr=0x82000000
dir=
lu=tftp 0x80060000 ${dir}tuboot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}ap151${bc}-jffs2&&erase 0x9f010000 +$filesize&&cp.b $fileaddr 0x9f010000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f300000 +$filesize&&cp.b $fileaddr 0x9f300000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 702/4092 byte
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-11 12:52 | 显示全部楼层
我的是WDR7800千兆版,想TTL刷原厂固件(官网下载),不知道怎么写刷机命令后面的内存地址,
比如步骤
1,接好TTL,启动输入TPL,进入UBOOT(这个我应该会)
2,setenv ipaddr 192.168.1.2(设置IP地址,我会)
3,setenv serverip 192.168.1.10(设置服务器地址,我会)
4,tftpboot (这个命令后面怎么写不会?直接tptpboot wdr7800.bin 行不行?我看有些是tftpboot 0x8000000 wdr7800.bin,不懂这里的0x780000000是什么地址)
5,erase (擦除命令后面地址不会写,不敢乱写)
6,cp.b(写入命令后面地址也不会写,不敢乱写)
7,bootm(这个命令也不会写,看有些人有这个命令,有些人又不需要这个命令)
8,断电重启
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-23 16:41 | 显示全部楼层


ath>
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
mct   - simple RAM test
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
progmac2 - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ath>

3. 进入slp后,通过tftp刷入breed WDR6500版本 (这个版本串口没有办法输入命令,但是可以启动;其它版本试过了,可以输入命令,但是不能启动)
4. 注意,我没有成功备份art,所以后面用的art是从wdr7400v2来的。希望有wdr7800v1 art的同学分享下。
5. reset键进入breed,后面进行openwrt升级(在breed web界面操作)
6. 修改TPLINK mac地址到eth1 地址(可以从前面putty log中得到)


已经进入这个界面 ,下面怎么操作,教教,谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-24 15:26 来自手机 | 显示全部楼层
我怎么反复做breed 界面循环,刷了openwrt没有用?请高手指导指导
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-1-4 12:33 | 显示全部楼层
怎么没有图呢,,上图啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-30 16:06 | 显示全部楼层
楼主的7800是百兆的还是千兆版的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2024-1-21 16:18 | 显示全部楼层
我的WDR7500 刷错bread,ttl直接没输出了,进不了u-boot,真成砖了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 11:07

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表