--------------------------------------------------------------------
TTL线刷过程:
--------------------------------------------------------------------
一、准备软件
1、任意使用串口助手工具AccessPort、SecureCRT等,将波特率设置为115200;
2、tftp服务软件tftpd32.exe,将固件wr941v4_100723.bin放在服务软件目录或设置为固件目录;
二、准备硬件
1、使用自制串口-TTL模块,IC为旧电脑MAX202CPE。最好使用带串口的电脑,硬串口数据稳定,系统为XP。无条件可以购买USB-TTL转接线。
2、在TL-WR941N V4主板JP2上,从JP2依次为TX-,RX+,GND,V+,焊接上旧电脑主板上拆下的3针跳线,从JP2处焊接3针,V+不需要接。
三、开始TTL刷固件,
1、打开串口助手工具,波特率115200
2、串口连接RS232-TTL模块,TTL的TX-,RX+,GND插口依次插在WR941主板的自接插针上,WR941_V4接上外节电源,观察串口助手窗口,如果出现反复如下数据,即可。否则可能是TX-,RX+接反,交换插即可。
-------------------------------------------------------------------
U-Boot 1.1.4 (Apr 12 2013 - 19:34:20)
AP93 (ar7240) U-boot
DRAM:
sri
#### TAP VALUE 1 = 8, 2 = 8
32 MB
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP ERROR - must RESET board to recover
Resetting...
-------------------------------------------------------------------
3、在串口助手发送位置依次发送如下命令
在接收窗口出现Autobooting in 1 seconds,马上在发送串口发送tpl命令,进入路由器指令状态ar7240>。
(ar7240>?可以显示指令帮助)
ar7240> ?
reset - Perform RESET of the CPU
? - alias for 'help'
base - print or set address offset
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
loadb - load binary file over serial line (kermit mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
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
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ar7240>
A、tpl
A回、回显ar7240>
B、setenv ipaddr 192.168.1.1(含回车)
B回、回显ar7240>setenv ipaddr 192.168.1.1
C、setenv serverip 192.168.1.5(含回车)
C回、回显ar7240>setenv serverip 192.168.1.5
D、printenv(含回车)
D回、回显ar7240>printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
ipaddr=192.168.1.1
serverip=192.168.1.5
Environment size: 355/65532 bytes
ar7240>
E、自定义设置本地网口后,运行tftp服务软件
IP地址:192.168.1.5
子网掩码:255.255.255.0
网关:192.168.1.1
E、tftpboot 0x80000000 wr941v4_100723.bin(含回车)
E回、回显ar7240>tftpboot 0x80000000 wr941v4_100723.bin
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.5; our IP address is 192.168.1.1
Filename 'wr941v4_100723.bin'.
Load address: 0x80000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############
done
Bytes transferred = 3932160 (3c0000 hex)
ar7240>
F、erase 0x9f020000 +0x3c0000(含回车)
F、回、回显ar7240>erase 0x9f020000 +0x3c0000
First 0x2 last 0x3d sector size 0x10000
61
Erased 60 sectors
ar7240>
G、cp.b 0x80000000 0x9f020000 0x3c0000(含回车)
G回、回显ar7240>cp.b 0x80000000 0x9f020000 0x3c0000
Copy to Flash... write addr: 9f020000
done
ar7240>
H、bootm 0x9f020000
H回、回显ar7240>bootm 0x9f020000
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
Booting AR7240(Python)...
Linux version 2.6.15--LSDK-7.3.0.300 gcc version 3.4.4 #1 Mon May 31 09:58:33 CST 2010
flash_size passed from bootloader = 4
CPU revision is: 00019374
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs init=/sbin/init mtdparts=ar7100-nor0:128k(u-boot),1024k(kernel),2816k(rootfs),64k(config),64k(art) mem=32M
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30532k/32768k available (1382k kernel code, 2220k reserved, 293k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
Returning IRQ 48
AR7240 GPIOC major 0
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
HDLC line discipline: version $Revision: #1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 8192K size 1024 blocksize
PPP generic driver version 2.4.2
NET: Registered protocol family 24
cmdlinepart partition parsing not available
Searching for RedBoot partition table
5 RedBoot partitions found on MTD device ar7240-nor0
Creating 5 MTD partitions on "ar7240-nor0":
0x00000000-0x00020000 : "boot"
0x00020000-0x00120000 : "kernel"
0x00120000-0x003e0000 : "rootfs"
0x003e0000-0x003f0000 : "config"
0x003f0000-0x00400000 : "art"
->Oops: flash id 0x10215 .
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 81
TL-WR941N刷DD-WRT固件体验全过程
134 浏览量
2016-05-12
06:53:59
上传
评论
收藏 2.2MB RAR 举报
中游鱼
- 粉丝: 93
- 资源: 51
最新资源
- springboot-mavenBaseDemo 内容包含:springboot的maven基础状态,1.8JDK可以直接运行
- otis rsl远程串行接口协议标准.pdf
- buildx构建镜像时所需的镜像文件
- F103-霸道开发板2.8寸电阻触摸屏例程.rar
- Google(高德)地图瓦片python代码下载
- Python实现输出杨辉三角形
- polsarpro官方教程、操作说明 PolSARpro v5.0 Software Training Course
- STM32 TouchGFX的使用二图片显示
- buildx镜像文件,也可以通过网上其他方式获取
- 【中级软件设计师】上午题12-软件工程(2):单元测试、黑盒测试、白盒测试、软件运行与维护
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈