鸿蒙HI3516-HAP的编译

目录:

1.通过repo下载代码

2.编译

3.HI3516设置

4.烧录

环境搭建请看https://device.harmonyos.com/cn/docs/start/introduce/oem_quickstart_3516_environment-0000001054501981

1.通过repo下载代码

repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c

2.编译

hb set(设置编译路径)
.(选择当前路径)
选择ipcamera_hispark_taurus@hisilicon并回车
hb build -f(执行编译)

鸿蒙HI3516-HAP的编译-2021426

3.HI3516设置
HI3516插上网线连路由器,串口连电脑

打开串口工具,串口接收到数据,当接收到这行是发送任何字符

Hit any key to stop autoboot:  2  1  0 

 

然后发送

setenv bootcmd "mmc read 0x0 0x80000000 0x800 0x4800; go 0x80000000";

 然后发送,因为root变大了,所以这里是20M

setenv bootargs "console=ttyAMA0,115200n8 root=emmc fstype=vfat rootaddr=10M rootsize=20M rw";1.


报错配置重启

saveenv1.

reset1.

 

4.烧录
HITool下载地址:http://www.hihope.org/AllDocuments/HiHopeSDK/Hi3516/Hi3516-HiTool.zip

链接:https://pan.baidu.com/s/1GBfKvta60vbnfA7daDCJog 提取码:1mk2 

因为我的路由器是192.168.3的网段,所以这样设置


鸿蒙HI3516-HAP的编译-2021426

<?xml version="1.0" encoding="GB2312" ?>
<Partition_Info ProgrammerFile="">
<Part Sel="1" PartitionName="fastboot" FlashType="emmc" FileSystem="none" Start="0" Length="1M" SelectFile="Z:\harmony\hisicode\code-404\device\hisilicon\hispark_taurus\sdk_liteos\uboot\out\boot\u-boot-hi3516dv300.bin"/>
<Part Sel="1" PartitionName="kernel" FlashType="emmc" FileSystem="none" Start="1M" Length="9M" SelectFile="Z:\harmony\hisicode\code-404\out\hispark_taurus\ipcamera_hispark_taurus\OHOS_Image.bin"/>
<Part Sel="1" PartitionName="rootfs" FlashType="emmc" FileSystem="none" Start="10M" Length="20M" SelectFile="Z:\harmony\hisicode\code-404\out\hispark_taurus\ipcamera_hispark_taurus\rootfs_vfat.img"/>
<Part Sel="1" PartitionName="userfs" FlashType="emmc" FileSystem="none" Start="30M" Length="50M" SelectFile="Z:\harmony\hisicode\code-404\out\hispark_taurus\ipcamera_hispark_taurus\userfs_vfat.img"/>
</Partition_Info>
作者:卡哇伊大喵

想了解更多内容,请访问51CTO和华为合作共建的鸿蒙社区:https://harmonyos.51cto.com

posted @ 2021-04-26 16:10  HarmonyOS技术社区  阅读(468)  评论(0编辑  收藏  举报