【HarmonyOS HiSpark AI Camera试用连载 】Uboot 支持的指令分享及env参数记录
【HarmonyOS HiSpark AI Camera试用连载 】Uboot 支持的指令分享及env参数记录, https://www.pcbbar.com/data/attachment/forum/202009/12/154809tz1xr3m1v91j82x8.jpg 在上电后立即输入任意按键可以进入AI camera的uboot,uboot支持的指令可以通过下help查看全部指令如下,每个指令也可以下[*]hisilicon # 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
[*]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
[*]dcache - enable or disable data cache
[*]ddr - ddr training function
[*]decjpg - jpgd - decode jpeg picture.
[*]decjpg
[*]dhcp - boot image via network using DHCP/TFTP protocol
[*]dm - Driver model low level access
[*]echo - echo args to console
[*]editenv - edit environment variable
[*]env - environment handling commands
[*]exit - exit script
[*]false - do nothing, unsuccessfully
[*]fatinfo - print information about filesystem
[*]fatload - load binary file from a dos filesystem
[*]fatls - list files in a directory (default /)
[*]fatsize - determine a file\“s size
[*]getinfo - print hardware information
[*]go - start application at address \“addr\“
[*]go_cpu1 - PeRForm power on and unresetCPU1_A7
[*]gzwrite - unzip and write memory to block device
[*]help - print command description/usage
[*]icache - enable or disable instruction cache
[*]iminfo - print header information for application image
[*]imxtract- extract a part of a multi-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
[*]loadx - load binary file over serial line (xmodem mode)
[*]loady - load binary file over serial line (ymodem mode)
[*]loop - infinite loop on address range
[*]md - memory display
[*]mii - MII utility commands
[*]mm - memory modify (auto-incrementing address)
[*]mmc - MMC sub system
[*]mmcinfo - display MMC info
[*]mw - memory write (fill)
[*]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
[*]reset - Perform RESET of the CPU
[*]run - run commands in an environment variable
[*]saveenv - save environment variables to persistent storage
[*]setenv - set environment variables
[*]setexpr - set environment variable as the result of eval expression
[*]setvobg - setvobg - set vo backgroud color.
[*] - setvobg
[*]showvar - print local hushshell variables
[*]sleep - delay execution for some time
[*]source - run script from memory
[*]startgx - startgx - open graphics layer.
[*] - startgx
[*]
[*]startvl - startvl - open video layer.
[*] - startvl
[*]
[*]startvo - startvo - open vo device with a certain output interface.
[*] - startvo
[*]stopgx - stopgx - close graphics layer.
[*] - stopgx
[*]stopvl - stopvl - close video layer.
[*] - stopvl
[*]stopvo - stopvo - close interface of vo device.
[*] - stopvo
[*]test - minimal test like /bin/sh
[*]tftpboot- boot image via network using TFTP protocol
[*]true - do nothing, successfully
[*]unzip - unzip a memory region
[*]usb - USB sub-system
[*]usbboot - boot from USB device
[*]version - print monitor, compiler and linker version
[*]hisilicon # 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
[*]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
[*]dcache - enable or disable data cache
[*]ddr - ddr training function
[*]decjpg - jpgd - decode jpeg picture.
[*]decjpg
[*]dhcp - boot image via network using DHCP/TFTP protocol
[*]dm - Driver model low level access
[*]echo - echo args to console
[*]editenv - edit environment variable
[*]env - environment handling commands
[*]exit - exit script
[*]false - do nothing, unsuccessfully
[*]fatinfo - print information about filesystem
[*]fatload - load binary file from a dos filesystem
[*]fatls - list files in a directory (default /)
[*]fatsize - determine a file\“s size
[*]getinfo - print hardware information
[*]go - start application at address \“addr\“
[*]go_cpu1 - Perform power on and unresetCPU1_A7
[*]gzwrite - unzip and write memory to block device
[*]help - print command description/usage
[*]icache - enable or disable instruction cache
[*]iminfo - print header information for application image
[*]imxtract- extract a part of a multi-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
[*]loadx - load binary file over serial line (xmodem mode)
[*]loady - load binary file over serial line (ymodem mode)
[*]loop - infinite loop on address range
[*]md - memory display
[*]mii - MII utility commands
[*]mm - memory modify (auto-incrementing address)
[*]mmc - MMC sub system
[*]mmcinfo - display MMC info
[*]mw - memory write (fill)
[*]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
[*]reset - Perform RESET of the CPU
[*]run - run commands in an environment variable
[*]saveenv - save environment variables to persistent storage
[*]setenv - set environment variables
[*]setexpr - set environment variable as the result of eval expression
[*]setvobg - setvobg - set vo backgroud color.
[*] - setvobg
[*]showvar - print local hushshell variables
[*]sleep - delay execution for some time
[*]source - run script from memory
[*]startgx - startgx - open graphics layer.
[*] - startgx
[*]
[*]startvl - startvl - open video layer.
[*] - startvl
[*]
[*]startvo - startvo - open vo device with a certain output interface.
[*] - startvo
[*]stopgx - stopgx - close graphics layer.
[*] - stopgx
[*]stopvl - stopvl - close video layer.
[*] - stopvl
[*]stopvo - stopvo - close interface of vo device.
[*] - stopvo
[*]test - minimal test like /bin/sh
[*]tftpboot- boot image via network using TFTP protocol
[*]true - do nothing, successfully
[*]unzip - unzip a memory region
[*]usb - USB sub-system
[*]usbboot - boot from USB device
[*]version - print monitor, compiler and linker version
[*]
复制代码 如果想要查看具体的使用参数可以下
help XXX
此处以usb指令为例,输出如下
[*]hisilicon # help usb
[*]usb - USB sub-system
[*]
[*]Usage:
[*]usb start - start (scan) USB controller
[*]usb reset - reset (rescan) USB controller
[*]usb stop - stop USB =force stop
[*]usb tree - show USB device tree
[*]usb info - show available USB devices
[*]usb test - set USB 2.0 test mode
[*] (specify port 0 to indicate the device\“s upstream port)
[*] Available modes: J, K, S, P, F
[*]usb storage - show details of USB storage devices
[*]usb dev - show or set current USB storage device
[*]usb part - print partition table of one or all USB storage devices
[*]usb read addr blk# cnt - read `cnt\“ blocks starting at block `blk#\“
[*] to memory address `addr\“
[*]usb write addr blk# cnt - write `cnt\“ blocks starting at block `blk#\“
[*] from memory address `addr\“
[*]hisilicon #
[*]
复制代码 最后记录下当前的uboot env
通过env print查看如下
[*]hisilicon # env print
[*]arch=arm
[*]baudrate=115200
[*]board=hi3516dv300
[*]board_name=hi3516dv300
[*]bootargs=console=ttyAMA0,115200n8 root=emmc fstype=vfat rootaddr=10M rootsize=15M rw
[*]bootcmd=mmc read 0x0 0x80000000 0x800 0x4800; go 0x80000000
[*]bootdelay=2
[*]cpu=armv7
[*]ethact=eth0
[*]soc=hi3516dv300
[*]stderr=serial
[*]stdin=serial
[*]stdout=serial
[*]vendor=hisilicon
[*]verify=n
[*]
[*]Environment size: 329/262140 bytes
[*]hisilicon #
复制代码 学到了学到了 非常需要,感谢分享
非常需要,感谢分享
页:
[1]