电子产业一站式赋能平台

PCB联盟网

搜索
查看: 1602|回复: 3
收起左侧

【HarmonyOS HiSpark AI Camera试用连载 】Uboot 支持的指令分享及env参数记录

[复制链接]

2607

主题

2607

帖子

7472

积分

高级会员

Rank: 5Rank: 5

积分
7472
发表于 2021-1-11 09:57:35 | 显示全部楼层 |阅读模式
【HarmonyOS HiSpark AI Camera试用连载 】Uboot 支持的指令分享及env参数记录, 在上电后立即输入任意按键可以进入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 [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
      


复制代码 如果想要查看具体的使用参数可以下

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 [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 #
      


复制代码 最后记录下当前的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 #

复制代码
回复

使用道具 举报

0

主题

9

帖子

26

积分

一级会员

Rank: 1

积分
26
发表于 2021-4-10 22:33:50 | 显示全部楼层
学到了学到了
回复 支持 反对

使用道具 举报

0

主题

8

帖子

24

积分

一级会员

Rank: 1

积分
24
发表于 2021-4-19 16:44:59 | 显示全部楼层
非常需要,感谢分享
回复 支持 反对

使用道具 举报

0

主题

6

帖子

35

积分

一级会员

Rank: 1

积分
35
发表于 2022-12-5 11:55:05 | 显示全部楼层

非常需要,感谢分享
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


联系客服 关注微信 下载APP 返回顶部 返回列表