1.进入WRV54G的Redboot命令模式。
按住reset按键,并接上电源,等待15秒。如果没有问题,redboot会进入待命模式。
把网线接到WRV54G的WAN口。路由默认的IP为192.168.1.1,端口为9000
在win下通过telnet连接路由。
参考下面的命令:
telnet 192.168.1.1 9000
成功的话会出现Redboot的提示符.
RedBoot>
2.配置Redboot.
在红色为redboot下输入
RedBoot> fconfig -iInitialize non-volatile configuration - continue (y/n)? y Run script at boot: t Boot script: Enter script, terminate with empty line >> fis load linux >> exec >> Boot script timeout (1000ms resolution): 2 Use BOOTP for network configuration: false Gateway IP address: Local IP address: Local IP address mask: Default server IP address: Console baud rate: 115200 GDB connection port: 9000 Force console for special debug messages: false Network debug at boot time: false Default network device: npe_eth0 Network hardware address [MAC] for npe_eth0: 0x00:0x03:0x47:0xDF:0x32:0xA8 Network hardware address [MAC] for npe_eth1: 0x00:0x03:0x47:0xDF:0x32:0xAA Update RedBoot non-volatile configuration - continue (y/n)? y ... Unlock from 0x507e0000-0x50800000: . ... Erase from 0x507e0000-0x50800000: . ... Program from 0x03fd0000-0x03ff0000 at 0x507e0000: . ... Lock from 0x507e0000-0x50800000: .
初始、格式化化整个flash RedBoot> fis init About to initialize [format] FLASH image system - continue (y/n)? y *** Initialize FLASH Image System ... Unlock from 0x507e0000-0x50800000: . ... Erase from 0x507e0000-0x50800000: . ... Program from 0x03fd0000-0x03ff0000 at 0x507e0000: . ... Lock from 0x507e0000-0x50800000: .
载入内核 RedBoot> load -r -b %{FREEMEMLO} -h 192.168.1.121 openwrt-ixp4xx-generic-zImage Using default protocol (TFTP) Raw file loaded 0x00024c00-0x00106663, assumed entry at 0x00024c00 写入内核 RedBoot> fis create linux ... Erase from 0x50080000-0x50180000: ........ ... Program from 0x00024c00-0x00106664 at 0x50080000: ........ ... Unlock from 0x507e0000-0x50800000: . ... Erase from 0x507e0000-0x50800000: . ... Program from 0x03fd0000-0x03ff0000 at 0x507e0000: . ... Lock from 0x507e0000-0x50800000: . 载入文件系统 RedBoot> load -r -b %{FREEMEMLO} -h 192.168.1.121 openwrt-ixp4xx-generic-squashfs.img Using default protocol (TFTP) Raw file loaded 0x00024c00-0x00204bff, assumed entry at 0x00024c00 写入文件系统 RedBoot> fis create rootfs ... Erase from 0x50180000-0x50360000: ............... ... Program from 0x00024c00-0x00204c00 at 0x50180000: ............... ... Unlock from 0x507e0000-0x50800000: . ... Erase from 0x507e0000-0x50800000: . ... Program from 0x03fd0000-0x03ff0000 at 0x507e0000: . ... Lock from 0x507e0000-0x50800000: . 重启 RedBoot> reset |