uboot常用命令

本文介绍了UBoot的常用命令,包括help、re、printenv、setenv、saveenv、run、crc32、cp、cmp、bootm、nand scrub、nand erase、nand write、nand read及nand bad等,详细讲解了每个命令的功能和使用方法,并通过实际操作示例演示了数据的读写与比较,旨在帮助嵌入式系统初学者理解和掌握UBoot操作。
摘要由CSDN通过智能技术生成

uboot常用命令

  1.help:帮助命令。单独使用可以列出当前uboot的所有指令,后面加上相应的命令可以注解相应的命令
  2.re:重新启动嵌入式系统。
  3.printenv:打印当前系统环境变量。
  4.setenv:设置环境变量,
   格式:setenv name value,表示将name变量设置成value值;如果没有这个参数,表示删除该变量。
  5.saveenv:保存环境变量到NAND中。可以简化为sa。
  6.run:执行环境变量中的命令,格式:run var,可以跟几个环境变量名。
  7.crc32:计算校验值。
   格式:crc32 address count [addr],第一个参数是需校验的起始地址,第二个参数是校验的数据字节数,第三个参 数是保存校验值的地址。
  8.cp:在内存中复制数据块,
   格式:cp source target count,第一个参数是源地址,第二个参数是目的地址,第三个参数是复制数目。
  9.cmp:比较内存中的数据块,
   格式:cmp addr1 addr2 count,第一个参数是内存地址一,第二个参数是内存地址二,第三个是比较长度(单位是字节数除以4,以WORDS为单位)。
  10.bootm:可以引导启动存储在内存中的程序映像。

=> help ? - 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 erase - erase FLASH memory flinfo - print FLASH memory information 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 loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nfs - boot image via network using NFS protocol nm - memory modify (constant address) printenv - print environment variables 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 setenv - set environment variables sleep - delay execution for some time tftpboot - boot image via network using TFTP protocol version - print monitor version
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值