【Tiny4412】Uboot常用命令
00. 目录
文章目录
- 00. 目录
- 01. Uboot帮助命令
- 02. md命令
- 03. mm命令
- 04. printenv命令
- 05. setenv命令
- 06. saveenv命令
- 07. reset命令
- 08. base命令
- 09. bdinfo命令
- 10. cmp命令
- 11. coninfo命令
- 12. crc32命令
- 13. dcache
- 14. echo命令
- 15. emmc命令
- 16. env命令
- 17. exit命令
- 18. version命令
- 19. source命令
- 20. sleep命令
- 21. showvar命令
- 22. reginfo命令
- 23. 附录
01. Uboot帮助命令
? 帮助
help 帮助
DengJin #help ? - alias for 'help' 帮助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 从内存中启动elf镜像bootm - boot application image from memory 从内存中启动应用镜像bootp - boot image via network using BOOTP/TFTP protocol 通过网络协议引导镜像bootvx - Boot vxWorks from an ELF imagechpart - change active partition 改变活动的分区cmp - memory compare 内存比较coninfo - print console devices and information 串口设备和信息cp - memory copy 内存拷贝crc32 - checksum calculation crc32校验dcache - enable or disable data cache 使能或者禁用数据cachednw - dnw - initialize USB device and ready to receive for Windows server (specific)echo - echo args to console 输出参数到串口editenv - edit environment variable 编辑环境变量emmc - Open/Close eMMC boot Partition 关闭或者打开emmc分区env - environment handling commands 环境变量操作exit - exit script 退出ext2format- ext2format - disk format by ext2 格式化ext3ext2load- load binary file from a Ext2 filesystem 从ext2文件系统中加载二进制文件ext2ls - list files in a directory (default /) 列出ext2文件系统中的文件ext3format- ext3format - disk format by ext3 使用ext3格式化分区false - do nothing, unsuccessfully fastboot- fastboot- use USB Fastboot protocol usb fastboot协议fatformat- fatformat - disk format by FAT32 格式化fatinfo - fatinfo - print information about filesystem fatload - fatload - load binary file from a dos filesystemfatls - list files in a directory (default /)fdisk - fdisk for sd/mmc. 分区go - start application at address 'addr' 从指定地址启动应用程序help - print command description/usage 帮助信息icache - enable or disable instruction cache 使能和禁用指令cacheiminfo - print header information for application imageimxtract- extract a part of a multi-imageitest - return true/false on integer compareloadb - load binary file over serial line (kermit mode)loads - load S-Record file over serial lineloady - load binary file over serial line (ymodem mode)loop - infinite loop on address rangemd - memory display 内存的内容显示mm - memory modify (auto-incrementing address) 内存的内容修改mmc - MMC sub systemmmcinfo - mmcinfo <dev num>-- display MMC info 显示MMC信息movi - movi - sd/mmc r/w sub system for SMDK boardmtdparts- define flash/nand partitionsmtest - simple RAM read/write testmw - memory write (fill)nfs - boot image via network using NFS protocol 使用NFS协议启动镜像nm - memory modify (constant address) 内存修改ping - send ICMP ECHO_REQUEST to network hostprintenv- print environment variables 打印环境变量reginfo - print register information 打印寄存器信息reset - Perform RESET of the CPU 重置CPU run - run commands in an environment variable 运行环境变量中的命令saveenv - save environment variables to persistent storage 保存设置setenv - set environment variables 设置环境变量showvar - print local hushshell variablessleep - delay execution for some time 睡眠source - run script from memory 从内存中运行脚本test - minimal test like /bin/shtftpboot- boot image via network using TFTP protocoltrue - do nothing, successfullyusb - USB sub-systemversion - print monitor version 输出u-boot的版本
02. md命令
DengJin # help md
md - memory displayUsage:
md [.b, .w, .l] address [# of objects]
DengJin # # 默认显示256字节
DengJin # md 40000000
40000000: ffffffff ffffffff ffffffff ffffffff ................
40000010: ffffffff ffffffff ffffffff ffffffff ................
40000020: ffffffff ffffffff ffffffff ffffffff ................
40000030: ffffffff ffffffff ffffffff ffffffff ................
40000040: ffffffff ffffffff ffffffff ffffffff ................
40000050: ffffffff ffffffff ffffffff ffffffff ................
40000060: ffffffff ffffffff ffffffff ffffffff ................
40000070: ffffffff ffffffff ffffffff ffffffff ................
40000080: ffffffff ffffffff ffffffff ffffffff ................
40000090: ffffffff ffffffff ffffffff ffffffff ................
400000a0: ffffffff ffffffff ffffffff ffffffff ................
400000b0: ffffffff ffffffff ffffffff ffffffff ................
400000c0: ffffffff ffffffff ffffffff ffffffff ................
400000d0: ffffffff ffffffff ffffffff ffffffff ................
400000e0: ffffffff ffffffff ffffffff ffffffff ................
400000f0: ffffffff ffffffff ffffffff ffffffff ................
DengJin # # 以字节为单位显示64个字节
DengJin # md.b 400000000
00000000: 06 00 00 ea fe ff ff ea fe ff ff ea fe ff ff ea ................
00000010: fe ff ff ea fe ff ff ea 1a 30 00 ea 1b 30 00 ea .........0...0..
00000020: a4 01 9f e5 00 10 a0 e3 00 10 80 e5 9c 01 9f e5 ................
00000030: 00 00 90 e5 3e 00 00 e2 3e 00 30 e3 0d 00 00 1a ....>...>.0.....
DengJin # # 从指定的地址开始显示8个字节
DengJin # md.b 40000000 8
40000000: ff ff ff ff ff ff ff ff ........
DengJin # # 以两个字节为单位 显示8个单位
DengJin # md.w 40000000 8
40000000: ffff ffff ffff ffff ffff ffff ffff ffff ................
DengJin # # 显示四个字节
DengJin # md.l 40000000 1
40000000: ffffffff ....
DengJin #
03. mm命令
内存修改内容命令
DengJin # help mm
mm - memory modify (auto-incrementing address)Usage:
mm [.b, .w, .l] address
DengJin # # 字节
DengJin # mm.b 40008000
40008000: ff ? 0xff
40008001: ff ? 0xee
40008002: ff ?
40008003: ff ?
40008004: ff ? quit# 两个字节为单位
DengJin # mm.w 40008000
40008000: eeff ? 0x1111
40008002: ffff ? 0x2222
40008004: ffff ? 0x3333
40008006: ffff ? quit# 四个字节为单位
DengJin # mm.l 40008000
40008000: 22221111 ? 11
40008004: ffff3333 ? 2
40008008: ffffffff ? 33
4000800c: ffffffff ? 44
40008010: ffffffff ? 55
40008014: ffffffff ? 66
40008018: ffffffff ? 77
4000801c: ffffffff ? 88
40008020: ffffffff ? quit
应用示例一:控制LED灯
# LED ---> GPM4_0 GPM4_1 GPM4_2 GPM4_3
# CON 0x110002E0
# DAT 0x110002E4# 所有的灯亮
DengJin #mm.l 0x110002E4
110002e4: 0000000c ? 0
110002e8: 00005555 ? quit# 所有的灯灭
DengJin #mm.l 0x110002E4
110002e4: 00000000 ? 0xf
110002e8: 00005555 ? quit
应用示例二:控制蜂鸣器
# Buzzer ---> GPD0_0# CON 0x114000A0
# DAT 0x114000A4# 配置为输出
DengJin #mm.l 0x114000A0
114000a0: 00000000 ? 0x1
114000a4: 0000000c ? quit# 高电平 峰鸣器叫
DengJin #mm.l 0x114000A4
114000a4: 0000000c ? 0xd
114000a8: 00000055 ? quit# 低电平 峰鸣器不叫
DengJin #mm.l 0x114000A4
114000a4: 0000000d ? c
114000a8: 00000055 ? quit
04. printenv命令
DengJin # help printenv
printenv - print environment variablesUsage:
printenv - print values of all environment variables
printenv name ...- print value of environment variable 'name'
DengJin # # 输出环境变量
DengJin #printenv
baudrate=115200 波特率
bootcmd=movi read kernel 0 40008000;movi read rootfs 0 41000000 400000;bootm 40008000 41000000
bootdelay=5 启动内核的时候延时
ethaddr=00:40:5c:26:0a:5b 硬件地址
gatewayip=192.168.0.1 网关
ipaddr=192.168.0.20 IP地址
netmask=255.255.255.0 掩码
serverip=192.168.0.10 服务器的IP地址Environment size: 252/16380 bytes
DengJin #
05. setenv命令
DengJin # help setenv
setenv - set environment variablesUsage:
setenv name value ...- set environment variable 'name' to 'value ...'
setenv name- delete environment variable 'name'
DengJin # # 设置环境变量
DengJin #setenv aa 33# 变量名后没有值 那么就是取消环境变量
DengJin #setenv aa
06. saveenv命令
DengJin # help saveenv
saveenv - save environment variables to persistent storageUsage:
saveenv
DengJin # # 保存环境变量
DengJin #saveenv
Saving Environment to SMDK bootable device...
done
07. reset命令
DengJin # help reset
reset - Perform RESET of the CPUUsage:
reset
DengJin # # 重新启动u-boot
DengJin #reset
08. base命令
DengJin # help base
base - print or set address offsetUsage:
base - print address offset for memory commands
base off- set address offset for memory commands to 'off'
DengJin # # 设置偏移地址
DengJin # base 40008000
Base Address: 0x40008000# 打印偏移地址
DengJin # base
Base Address: 0x40008000
DengJin #
09. bdinfo命令
DengJin # help bdinfo
bdinfo - print Board Info structureUsage:
bdinfo
DengJin # DengJin # bdinfo
arch_number = 0x00001200
boot_params = 0x40000100
DRAM bank = 0x00000000
-> start = 0x40000000
-> size = 0x10000000
DRAM bank = 0x00000001
-> start = 0x50000000
-> size = 0x10000000
DRAM bank = 0x00000002
-> start = 0x60000000
-> size = 0x10000000
DRAM bank = 0x00000003
-> start = 0x70000000
-> size = 0x0FF00000
ethaddr = 00:40:5c:26:0a:5b
ip_addr = 192.168.0.20
baudrate = 0 bps
TLB addr = 0x3FFF0000
relocaddr = 0x43E00000
reloc off = 0x00000000
irq_sp = 0x43CFBF58
sp start = 0x43CFBF50
FB base = 0x00000000
DengJin #
10. cmp命令
DengJin # help cmp
cmp - memory compareUsage:
cmp [.b, .w, .l] addr1 addr2 count
DengJin #
11. coninfo命令
DengJin # help coninfo
coninfo - print console devices and informationUsage:
coninfo
DengJin # coninfo
List of available devices:
serial 80000003 SIO
DengJin #
12. crc32命令
DengJin # help crc32
crc32 - checksum calculationUsage:
crc32 address count [addr]- compute CRC32 checksum [save at addr]
DengJin # crc32 40000000 8
CRC32 for 40000000 ... 40000007 ==> 2144df1c
DengJin #
13. dcache
DengJin # help dcache
dcache - enable or disable data cacheUsage:
dcache [on, off]- enable or disable data (writethrough) cache# 查看dcache状态
DengJin # dcache
Data (writethrough) Cache is OFF
DengJin #
14. echo命令
DengJin # help echo
echo - echo args to consoleUsage:
echo [args..]- echo args to console; \c suppresses newline# 输出信息到终端
DengJin # echo "hello world"
hello world
DengJin #
15. emmc命令
DengJin # help emmc
emmc - Open/Close eMMC boot PartitionUsage:
emmc open <device num>
emmc close <device num>
16. env命令
DengJin # help env
env - environment handling commandsUsage:
env default -f - reset default environment
env edit name - edit environment variable
env export [-t | -b | -c] addr [size] - export environmnt
env import [-d] [-t | -b | -c] addr [size] - import environmnt
env print [name ...] - print environment
env run var [...] - run commands in an environment variable
env save - save environment
env set [-f] name [arg ...]
17. exit命令
DengJin # help exit
exit - exit scriptUsage:
exit
DengJin # exit
exit not allowed from main input shell.
DengJin #
18. version命令
DengJin # help version
version - print monitor versionUsage:
version # 输出uboot版本信息
DengJin # versionU-Boot 2010.12 (Jun 04 2020 - 20:12:26) for TINY4412
DengJin #
19. source命令
DengJin # help source
source - run script from memoryUsage:
source [addr]- run script starting at addr- A valid image header must be present
DengJin #
20. sleep命令
DengJin # help sleep
sleep - delay execution for some timeUsage:
sleep N- delay execution for N seconds (N is _decimal_ !!!)
DengJin # sleep 3
DengJin #
21. showvar命令
DengJin # help showvar
showvar - print local hushshell variablesUsage:
showvar - print values of all hushshell variables
showvar name ...- print value of hushshell variable 'name'
DengJin # showvar
HUSH_VERSION=0.01
DengJin #
22. reginfo命令
DengJin # help reginfo
reginfo - print register informationUsage:
reginfo
DengJin #
23. 附录
其它命令放在后面部署环境的时候使用…
【Tiny4412】Uboot常用命令相关推荐
- UBoot常用命令手册
UBoot常用命令手册 U-Boot还提供了更加详细的命令帮助,可以通过"?"显示支持的命令列表,通过help [CommandName]命令还可以查看每个命令的参数说明. 1.b ...
- uboot和系统移植2(uboot常用命令)
1.5.uboot的常用命令1 1.5.1.类似linux终端的行缓冲命令行 (1)行缓冲的意思就是:当我们向终端命令行输入命令的时候,这些命令没有立即被系统识别,而是被缓冲到一个缓存区(也就是系统认 ...
- 史上最全的Uboot常用命令汇总(超全面!超详细!)收藏这一篇就够了
Linux 系统要启动就必须需要一个 bootloader 程序,也就说芯片上电以后先运行一段bootloader程序.这段bootloader程序会先初始化DDR等外设,然后将Linux内核从fla ...
- 嵌入式系统学习笔记之五-uboot常用命令之补充
1.nand 命令 uboot 也支持 NAND Flash 的操作命令,现在我们使用的 NAND 版的开发板,进行本节讲解. 输入"help nand"即可查看 NAND 相关命 ...
- linux如何使用uboot的命令,Uboot常用命令使用
1.前言 Uboot启动后,会进入到一个倒计时,在倒计时结束之前,如果此时我们按下键盘的回车键,将进入到uboot的命令行模式,有点类似Linux系统终端模式,如果没有按下回车键的话,将直接启动Lin ...
- linux的系统移植——uboot常用命令
1.uboot的常用命令 1.1 print \qquad查看uboot的环境变量 1.2 setenv.saveenv \qquad用法:setenv 变量名 变量值 功能:修改或者增加一个变量名的 ...
- uboot常用命令详解 2
U-boot发展到现在,他的命令行模式已经非常接近Linux下的shell了,在我编译的U-boot-2009.11中的命令行模式模式下支持"Tab"键的命令补全和命令的历史记录功 ...
- linux驱动之系统移植-----uboot常用命令汇总
信息查询类指令 查询所有支持的命令 : help 查询命令的用法 help <其他命令> 查询板子信息 bdinfo 查看所有环境变量 printenv 查看uboot版本 version ...
- uboot常用命令汇总
目录 前言 1.信息查询命令(bdinfo.printenv.versionn) 2.环境变量操作命令(setenv.saveenv) 3.内存操作指令(md.nm.mm.mw.cp.cmp) 4.网 ...
最新文章
- 互联网协议 — MQTT 消息队列遥测传输协议
- 介绍理想工作计算机 英语作文,我的理想工作英语作文(精选5篇)
- 《Humans vs Computers》作者访谈录
- python的盈利模式_八大盈利模式是什么?一篇文教会你盈利模式分析!
- Java 集合 List Arrays.asList
- Android Gradle和Gradle插件区别
- HTTP之get post
- 资产信息自动化收集系统 Venux
- hdu 1556 Color the ball (线段树做法)
- 创建分布式爬虫的步骤
- protobuf java学习
- Python3之日志模板
- cass有坐标文件生成里程文件_南方CASS里程文件生成
- STM32CubeIDE的一点使用技巧
- 探花交友_第2章-完善个人信息与MongoDB入门
- ubuntu14.04下安装图片编辑软件pinta
- Maven Framwork – Install and Config
- 【Matlab数理统计知识点合集】新手入门第十三天
- 常用格式如何互相转换(jpg转png)
- Phaser并发阶段器