Skip to content

Instantly share code, notes, and snippets.

@mizhka
Last active May 21, 2019 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizhka/1256aed0aa535d318cb369407616293d to your computer and use it in GitHub Desktop.
Save mizhka/1256aed0aa535d318cb369407616293d to your computer and use it in GitHub Desktop.
WHR-300 uboot help
BUFFALO U-BOOT Ver 1.03
AP93 (ar7240) U-boot
sri
=====================================================================================================================================
TAP CALC (read_cnt=512)
----+--------------------------------------------------------------------------------------------------------------------------------
TAP | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
----+--------------------------------------------------------------------------------------------------------------------------------
FAIL| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 512 512 512 512 512 512 512 512 512 512 51
----+--------------------------------------------------------------------------------------------------------------------------------
---------------------
SELECT tap0=7 / tap1=8
#### ddr registers
B8000000 = C7BC8CD0
B8000004 = 9DD0E6A8
B8000008 = 00000033
B800000C = 00000002
B8000010 = 00000000
B8000014 = 00004AF0
B8000018 = 000000FF
B800001C = 00000007
B8000020 = 00000008
B8000024 = 00000005
B8000028 = 00000005
32 MB
Memory Test (address line)
Memory Test start(0xA0000000) end(0xA2000000) size(33554432)
Data line test start:0xa0000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0xa0000000 len:0x2000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:5
fill Pattern 5555AAAA Writing... Reading...
fill Pattern AAAA5555 Writing... Reading...
fill Pattern 0000FFFF Writing... Reading...
fill Pattern FFFF0000 Writing... Reading...
fill Pattern AAAAAAAA Writing... Reading...
Top of RAM usable for U-Boot at: 82000000
Reserving 290k for U-Boot at: 81fb4000
Reserving 136k for malloc() at: 81f92000
Reserving 44 Bytes for Board Info at: 81f91fd4
Reserving 36 Bytes for Global Data at: 81f91fb0
Reserving 128k for boot params() at: 81f71fb0
Stack Pointer at: 81f71f98
Now running in RAM - U-Boot at: 81fb4000
id read 0x100000ff
flash size 4194304, sector count = 1024
Flash: 4 MB
In: serial
Out: serial
Err: serial
Memory Test
uboot use 81F71FB0 - 82000000
Memory Test start(80000000) end(81F00000) size(01F00000)
Pattern 00000000 Writing... Reading...
Memory Test OK
### buf_ver=[1.03] U-Boot Ver.=[1.03]
### build_date(env)=[Dec 3 2010 - 10:58:02] build_date(bin)=[Dec 3 2010 - 10:58:02]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x81f922d9)
: cfg1 0xf cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1e
eth0 up
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7014
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0 02:AA:BB:CC:DD:1E
, eth1 00:03:7F:09:0B:AD
tftp server(receive) go, waiting:4[sec]
Load address: 0x80f00000
Abort
no file was loaded.
ar7240> <INTERRUPT>
ar7240> dcache
Unknown command 'dcache' - try 'help'
ar7240> help
? - alias for 'help'
TFTPS - boot image via network as TFTP server
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - invoke DHCP client to obtain IP/boot params
echo - echo args to console
erase - erase FLASH memory
ethreg - S26 PHY Reg rd/wr utility
exit - exit script
flinfo - print FLASH memory information
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
imls - list all images found in flash
itest - return true/false on integer compare
ledb - LED test blink
ledoff - LED test off
ledon - LED test on
ledt - LED test toggle
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing)
mtdparts- define flash/nand partitions
mtest - simple RAM test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
pci - list and access PCI Configuration Space
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
set_inspection - set/unset inspection mode
set_mtest - set mtest parameters. (for next bootup)
setenv - set environment variables
sleep - delay execution for some time
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment