最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

commands in U-boot

工作和技术 crifan 2068浏览 0评论

commands in U-boot(v=1.1.6)

you can input "help" or "?" then it will display:

?       – alias for ‘help’
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’
bootm   – boot application image from memory
bootp   – boot image via network using BootP/TFTP protocol
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
go      – start application at address ‘addr’
help    – print online help
iminfo – print header information for application image
itest   – return true/false on integer compare
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
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
nfs     – boot image via network using NFS protocol
nm      – memory modify (constant address)
ping    – send ICMP ECHO_REQUEST to network host
printenv– print environment variables
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
setenv – set environment variables
sleep   – delay execution for some time
tftpboot– boot image via network using TFTP protocol
version – print monitor version

if you want to see more details about some specific command ,you can type:

help command_name

such as :

# help nand
nand info                  – show available NAND devices
nand device [dev]     – show or set current device
nand read[.jffs2]     – addr off|partition size
nand write[.jffs2]   addr off|partiton size – read/write `size’ bytes starting at offset `off’ to/from memory address `addr’
nand erase [clean] [off size] – erase `size’ bytes from offset `off’ (entire device if not specified)
nand bad – show bad blocks
nand dump[.oob] off – dump page
nand scrub – really clean NAND erasing bad blocks (UNSAFE)
nand markbad off – mark bad block at offset (UNSAFE)
nand biterr off – make a bit error at offset (UNSAFE)
nand lock [tight] [status] – bring nand to lock state or display locked pages
nand unlock [offset] [size] – unlock section

转载请注明:在路上 » commands in U-boot

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.166 seconds, using 22.15MB memory