鸿蒙HI3516-HAP的编译-2021426 原创

卡哇伊大喵
发布于 2021-4-26 10:17
浏览
1收藏

环境搭建请看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";


报错配置重启

saveenv
reset

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>

安装HAP包请看https://blog.csdn.net/qq_33259323/article/details/111307192


 

 

 

©著作权归作者所有,如需转载,请注明出处,否则将追究法律责任
标签
3
收藏 1
回复
举报
回复
添加资源
添加资源将有机会获得更多曝光,你也可以直接关联已上传资源 去关联
    相关推荐