1. 串口与pc连接,pc端使用putty或secureCRT打开串口。
2. 启动路由器,当U-Boot出现"Autobooting in 3 seconds"后输入tpl,进入U-Boot的命令行。
3. 在存放openwrt镜像的pc上打开tftp服务器。
4. 在U-Boot命令行中依次输入一下命令:
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.100
tftpboot 0x80000000 openwrt-xxx-generic-xxx-squashfs-factory.bin
erase 0x9f020000 +0x332004
cp.b 0x80000000 0x9f020000 0x332004
boot.m 0x9f020000
5. 之后路由器进入第一次启动状态。