目录:
1.通过repo下载代码
2.编译
3.HI3516设置
4.烧录
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(执行编译)
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的网段,所以这样设置
<?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" data-tomark-pass />
<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" data-tomark-pass />
<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" data-tomark-pass />
<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" data-tomark-pass />
</Partition_Info>
作者:卡哇伊大喵
想了解更多内容,请访问51CTO和华为合作共建的鸿蒙社区:https://harmonyos.51cto.com