1、环境搭建参考如下链接

https://blog.csdn.net/qq_33475105/article/details/109549056 参考链接

https://device.harmonyos.com/cn/docs/ide/user-guides/service_introduction-0000001050166905  官方链接

2、编译debug版本

python build.py ipcamera_hi3516dv300 -b debug

编译的生产的文件在/home/harmony/Documents/DevEco/Projects/HarmonyOS/out/ipcamera_hi3516dv300

3、烧录

3.1查看开发板环境参数

使用网口进行烧录,需要设置ip

setenv ipaddr 192.168.1.18  //设置开发板的ip

setenv serverip 192.168.1.15  //设置服务器ip 也就是虚拟机ip

saveenv  //保存环境参数

res      //重启uboot

uboot路径

/home/harmony/Documents/DevEco/Projects/HarmonyOS/vendor/hisi/hi35xx/hi3516dv300/uboot/out/boot

Hitool下载地址

http://www.hihope.org/download/download.aspx?mtt=33

 

3.2 uboot 环境参数

*************************************设置之前********************************************
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; saveenv; go 0x80000000
bootdelay=2
cpu=armv7
soc=hi3516dv300
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon
verify=n

#####################################设置之后######################################
hisilicon # 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; saveenv; go 0x80000000
bootdelay=2
cpu=armv7
ethact=eth0
ethaddr=00:39:3e:8c:72:d5
ipaddr=192.168.1.18
serverip=192.168.1.5
soc=hi3516dv300
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon
verify=n

3.3 烧录

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐