码迷,mamicode.com
首页 > 其他好文 > 详细

uboot 命令总结

时间:2014-05-15 04:22:22      阅读:349      评论:0      收藏:0      [点我收藏+]

标签:c   tar   int   get   com   a   

uboot中实现了很多的命令,这些命令很多是非常实用的   这里就总结一下


第一项:当然是help 命令

u-boot-1.2.0的help命令能打印出啥来:
[arm79-uboot-1.2.0]# 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‘
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
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
date - get/set/reset date & time
dcache - enable or disable data cache
echo - echo args to console
erase - erase FLASH memory

flinfo - print FLASH memory information
go - start application at address ‘addr‘
help - print online help
icache - enable or disable instruction cache
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
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
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

以上就是总的接受的命令

第二   介绍重要的命令

flinfo 打印出 nor flash的所有信息

version 命令  显示uboot的版本

data  命令   显示时间

coninfo 命令  打印所有控制设备的信息

printenv 命令   显示当前的环境变量设置

setenv 修改环境变量命令 :setenv ipaddr 192.168.1.1   将ip地址改成后面的ip

saveenv 命令 将上个命令设置的环境变量  保存到nand  flash中

cmp 命令  对两端内存地址开始的数据进行比较  :cmp 0x0  0x3  0x1   零地址和三地址  比一个数

cp  命令 内存复制命令   :cp  0x0 0x3 0x1   吧0x0  到  0x3   一个数

mm 命令 按顺序显示内存单元的内容  地址会自动递增   附加功能就是可以修改这个内存的值   后面输入就可以了

mtest 命令   测试内存的命令    在一个内存不停的读写

mw命令   项内存写入命令  mm命令也有这个功能

nm 命令  内存读写命令   两个功能   有bug

md 命令 打印指定内存的数据  打印量为 0xff 地址空间

bdinfo 命令  显示各模块的base  地址和空间分配  ip 地址等

第三  uboot中的网络命令

ping  命令   ping网络命令

tftp 命令 tftp  协议下载  :tftp  0xa000000 ramboot.bin   下载bin文件到0xa0000000

go命令 直接跳转到可执行文件的入口地址   执行可执行文件   可以和上调一同使用  测试

reset 命令  重启开发板

set 命令  修改命令   set   reset  go 0x0     将go  0x0   用reset代替   和宏有点像哈

run  命令  执行set过的命令   run reset











uboot 命令总结,布布扣,bubuko.com

uboot 命令总结

标签:c   tar   int   get   com   a   

原文地址:http://blog.csdn.net/weiwei_xiaoyu/article/details/25707187

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!