|
【HarmonyOS HiSpark AI Camera試用連載 】Uboot 支持的指令分享及env參數(shù)記錄, 在上電后立即輸入任意按鍵可以進(jìn)入AI camera的uboot,uboot支持的指令可以通過(guò)下help查看全部指令如下,每個(gè)指令也可以下
- 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 [format]
- 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 unreset CPU1_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 [dev color]
- showvar - print local hushshell variables
- sleep - delay execution for some time
- source - run script from memory
- startgx - startgx - open graphics layer.
- - startgx [layer addr stride x y w h]
- startvl - startvl - open video layer.
- - startvl [layer addr stride x y w h]
- startvo - startvo - open vo device with a certain output interface.
- - startvo [dev intftype sync]
- stopgx - stopgx - close graphics layer.
- - stopgx [layer]
- stopvl - stopvl - close video layer.
- - stopvl [layer]
- stopvo - stopvo - close interface of vo device.
- - stopvo [dev]
- 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 [format]
- 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 unreset CPU1_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 [dev color]
- showvar - print local hushshell variables
- sleep - delay execution for some time
- source - run script from memory
- startgx - startgx - open graphics layer.
- - startgx [layer addr stride x y w h]
- startvl - startvl - open video layer.
- - startvl [layer addr stride x y w h]
- startvo - startvo - open vo device with a certain output interface.
- - startvo [dev intftype sync]
- stopgx - stopgx - close graphics layer.
- - stopgx [layer]
- stopvl - stopvl - close video layer.
- - stopvl [layer]
- stopvo - stopvo - close interface of vo device.
- - stopvo [dev]
- 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
-
復(fù)制代碼 如果想要查看具體的使用參數(shù)可以下
help XXX
此處以u(píng)sb指令為例,輸出如下
- hisilicon # help usb
- usb - USB sub-system
- Usage:
- usb start - start (scan) USB controller
- usb reset - reset (rescan) USB controller
- usb stop [f] - stop USB [f]=force stop
- usb tree - show USB device tree
- usb info [dev] - show available USB devices
- usb test [dev] [port] [mode] - set USB 2.0 test mode
- (specify port 0 to indicate the device\“s upstream port)
- Available modes: J, K, S[E0_NAK], P[acket], F[orce_Enable]
- usb storage - show details of USB storage devices
- usb dev [dev] - show or set current USB storage device
- usb part [dev] - 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 #
-
復(fù)制代碼 最后記錄下當(dāng)前的uboot env
通過(guò)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 #
復(fù)制代碼 |
|