常用U-BOOT命令介绍

常用U-BOOT命令介绍
1. 得到所有命令列表

2. help: help usb, 列出USB功能的使用说明

3. ping:注:只能开发板PING别的机器

4. setenv: 设置互环境变量:

5. setenv serverip 192.168.0.1

6. setenv ipaddr 192.168.0.56

7. setenv bootcmd ‘tftp 32000000 vmlinux; kgo 32000000’

8. saveenv: 保存环境变量

9. 在设置好环境变量以后, 保存变量值

10. tftp: tftp 32000000 vmlinux, 把server(IP=环境变量中设置的serverip)中/tftpdroot/ 下的vmlinux通过TFTP读入到物理内存32000000处。

11. kgo: 起动没有压缩的linux内核,kgo 32000000

12. bootm:起动UBOOT TOOLS制作的压缩LINUX内核, bootm 3200000

13. protect: 对FLASH进行写保护或取消写保护, protect on 1:0-3(就是对第一块FLASH的0-3扇区进行保护),protect off 1:0-3取消写保护

14. erase: 删除FLASH的扇区, erase 1:0-2(就是对每一块FLASH的0-2扇区进行删除)

15. cp: 在内存中复制内容, cp 32000000 0 40000(把内存中0x32000000开始的0x40000字节复制到0x0处)

16. mw: 对RAM中的内容写操作, mw 32000000 ff 10000(把内存0x32000000开始的0x10000字节设为0xFF)

17. md: 修改RAM中的内容, md 32000000(内存的起始地址)

18. usb:

l usb start: 起动usb 功能

l usb info: 列出设备

l usb scan: 扫描usb storage(u 盘)设备

19. fatls:列出DOS FAT文件系统, 如:fatls usb 0列出第一块U盘中的文件

20. fatload: 读入FAT中的一个文件,如:fatload usb 0:0 32000000 aa.txt

21. 把USB中的aa.txt 读到物理内存0x32000000处!

22. flinfo: 列出flash的信息

23. loadb: 准备用 KERMIT协议接收来自kermit或超级终端传送的文件。

24. nfs: nfs 32000000 192.168.0.2:aa.txt , 把192.168.0.2(LINUX 的NFS文件系统)中的NFS文件系统中的aa.txt 读入内存0x32000000处。

转载于:https://www.cnblogs.com/ajuanabc/archive/2006/01/23/2464467.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 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' 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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值