- 论坛徽章:
- 0
|
我知道H3C 的br104h 88e6218 是ARMBOOT 的bootloader,四针的console RS232,TP-LINK的十针com口(串口)就不知定义是什么,可用超级终端恢复。方法是:
接上串口,当出现“Hit b for boot setup”的时候,敲入按键b。
Hit b for bootsetup
ARMboot Rev 1.3for Huawei-3Com BR104H (Dec
5 2006 -09:46:3
_----_
____
| ---- |___/
__)___
|
|
_____)
|
|
______)
|
\__
______)
|
\_\________)
|
---,
/___/\_._._._./
ARMboot LEversion
ARMboot code: 001c0000 -> 001d1760
HW_VER =0x00000200
HW_BOT_VER =0x00000301
HW_SER_CONTROL =0x12345678
HW_NAME = BR104
LAN_MAC = 00:0F:E2:4D:9A:07
WAN_MAC = 00:0F:E2:4D:9A:08
ARMboot->
键入一个?号,可以看到所有的命令。
ARMboot-> ?
go - start application at address 'addr'
run - run commands in an environment variable
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
tftpboot- boot image via network using TFTP protocol
and env variables ipaddr and serverip
rarpboot- boot image via network using RARP/TFTP protocol
bootd - boot default, i.e., run 'bootcmd'
loads - load S-Record file over serial line
loadb - load binary file over serial line (kermit mode)
autoscr - run script from memory
md - memory display
mm - memory modify (auto-incrementing)
nm - memory modify (constant address)
mw - memory write (fill)
cp - memory copy
cp - memory copy
crc32 - checksum calculation
base - print or set address offset
printenv- print environment variables
setenv - set environment variables
saveenv - save environment variables to persistent storage
protect - enable or disable FLASH write protection
erase - erase FLASH memory
flinfo - print FLASH memory information
bdinfo - print Board Info structure
iminfo - print header information for application image
loop - infinite loop on address range
mtest - simple RAM test
icache - enable or disable instruction cache
dcache - enable or disable data cache
reset - Perform RESET of the CPU
echo - echo args to console
fsload - load binary file from a filesystem image
fsinfo - print information about filesystems
ls - list files in a directory (default /)
sleep - delay execution for some time
version - print monitor version
help - print online help
? - alias for 'help'ARMboot->
敲入printenv,可以看到网络的设置,可以看到br104h的ip地址为192.168.0.2,tftp 服务器的ip 地址为192.168.0.99
ARMboot->printenv
bootdelay=3
baudrate=38400
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.0.2
serverip=192.168.0.99
netmask=255.255.255.000
bootfile=bootrom.bin
sdramImgAddr=0x00100000
flashAddr=0xFFF80000
bootSource=flash
Environmentsize: 201/4092 bytes
ARMboot->
然后设置网卡地址为192.168.0.99。下载tftpd32软件。设置需要下载的文件的路径和网卡接口。
然后,键入tftp命令将br104.bin文件下载到内存0x8000处(如果出现无法下载,请检查网络连接,ip地址,tftpd的设置)
ARMboot->
ARMboot->tftp 8000 br104.bin
Please wait,this takes a while ...
TFTP from server192.168.0.99; our IP address is 192.168.0.2
Filename'br104.bin'.
Load address:0x8000
Loading: #######
Bytestransferred = 33964 (84achex)
烧进flash的指令:
ARMboot-> protect off 0x50000 0x1fffff
ARMboot-> erase 0x50000 0x1fffff
ARMboot-> cp 0x0c008000 0x50000 20000
完成 |
|