20170704-WNDR4300uboot help info

Unknown command 'env' - try 'help'
ar7240> help
? - alias for 'help'
base - print or set address offset
board_hw_id_set - set board_hw_id
board_hw_id_show - Show board_hw_id
board_model_id_set - set board_model_id
board_model_id_show - Show board_model_id
board_parameters_set - Set WPS PIN code, Serial number, SSID, Passphrase, MAC address.
board_passphrase_set - set passphrase on board
board_passphrase_show - Show board_passphrase
board_ssid_set - set ssid on board
board_ssid_show - Show board_ssid
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
chk_dniimg - check integrity of dni firmware image.
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
fw_recovery - start tftp server to recovery dni firmware image.
help - print online help
loadb - load binary file over serial line (kermit mode)
loadn_dniimg - load dni firmware image from NAND.
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
macset - Set ethernet MAC address
macshow - Show ethernet MAC addresses
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nm - memory modify (constant address)
nmrp - start nmrp mechanism to upgrade firmware-image or string-table.
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset - Perform RESET of the CPU
rnset - set region number
rnshow - Show Region Number on Board
run - run commands in an environment variable
setenv - set environment variables
snset - set serial number
tftpboot- boot image via network using TFTP protocol
version - print monitor version
wpspinset - set wpspin number

============================================================================================================================

ar7240> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nand:128k(u-boot),384k(u-boot-env),1280k(uImage),7m(rootfs),128k(dummy),128k(caldata)
bootcmd=nmrp;if loadn_dniimg 0 0x6c0000 0x81000000 && chk_dniimg 0x81000000; then bootm 0x81000000;else fw_recovery; fi
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.1
serverip=192.168.1.7
dir=
lu=tftp 0x80060000 ${dir}2fw.bin&&nand erase 0x0 0x20000&&nand write $fileaddr 0x0 $filesize
lf=tftp 0x80060000 ${dir}db12x${bc}-nand-jffs2${ns}&&nand erase 0x1c0000 0x700000&&nand write $fileaddr 0x1c0000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&nand erase 0x80000 0x140000&&nand write $fileaddr 0x80000 $filesize
stdin=serial
stdout=serial
stderr=serial
bootdelay=2
ethact=eth0

Environment size: 792/262140 bytes

原文地址:https://www.cnblogs.com/feige1314/p/7116646.html