为了学习OpenHarmony小型和标准设备的开发,买了润和的HCIP认证套件进行开发。按照https://device.harmonyos.com/cn/docs/documentation/guide/ide-hi3516dv300-compile-0000001146686054介绍的方法烧写HCIP套件的镜像,每次都是在下载完U-Boot后系统等待几秒后超时,遇到如下错误:
* 终端进程“/home/vboxuser/Huawei/DevEco-Device-Tool/core/deveco-venv/bin/hos 'run', '--target', 'upload', '--project-dir', '/home/vboxuser/Documents/DevEco/Projects/OpenHarmony-v3.1-Release', '--environment', 'ipcamera_hispark_taurus'”已终止,退出代码: 1。
* 终端将被任务重用,按任意键关闭。
{"upload": ["device/board/hisilicon/hispark_taurus/uboot/out/boot/u-boot-hi3516dv300.bin", "out/hispark_taurus/ipcamera_hispark_taurus/OHOS_Image.bin", "out/hispark_taurus/ipcamera_hispark_taurus/rootfs_vfat.img", "out/hispark_taurus/ipcamera_hispark_taurus/userfs_vfat.img"]}
Transferring files...
100%, Transferring file: u-boot-hi3516dv300.bin
100%, Transferring file: OHOS_Image.bin
100%, Transferring file: rootfs_vfat.img
100%, Transferring file: userfs_vfat.img
100%, Transferring file: deveco.ini
100%, Transferring file: deveco.cfg
Files transfer completed
Processing ipcamera_hispark_taurus (platform: hisilicon_arm; board: hi3516dv300; framework: hb)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Configuring upload...
AVAILABLE: hiburn-net, hiburn-serial, hiburn-usb
CURRENT: upload_protocol = hiburn-usb
Uploading with HiBurn
Operation paused, Please press Enter key to continue
The burn.config file was loaded successfully!
The current select chip: Hi3516DV300
chip file path: Resources/Common/ChipProperties/Hi3516DV300.chip
The preference.config file was loaded successfully!
startFrameInfo :
SerialPort has been connented, Please power off, then power on the device.
If it doesn't work, please try to repower on.
Open USB Success
########################################################################################################### ---- 10%
######################################################### ---- 20%
######################################################### ---- 30%
######################################################### ---- 100%
Boot download completed!
和润和的技术人员一起进行了分析,发现虽然HCIP认证套件和Hi3516DV300 AI Camera差不多,但是还是有微小差别的,所以OpenHarmony官方代码所提供的U-Boot并不能使用,所以下载时需要把fastboot换成润和提供的u-boot_hi3516_ytb_3.1.bin文件,只有这个文件才能让HCIP认证套件正常启动。