• 鸿蒙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:harmonyhisicodecode-404devicehisiliconhispark_taurussdk_liteosubootoutootu-boot-hi3516dv300.bin"/>
    <Part Sel="1" PartitionName="kernel" FlashType="emmc" FileSystem="none" Start="1M" Length="9M" SelectFile="Z:harmonyhisicodecode-404outhispark_taurusipcamera_hispark_taurusOHOS_Image.bin"/>
    <Part Sel="1" PartitionName="rootfs" FlashType="emmc" FileSystem="none" Start="10M" Length="20M" SelectFile="Z:harmonyhisicodecode-404outhispark_taurusipcamera_hispark_taurus
    ootfs_vfat.img"/>
    <Part Sel="1" PartitionName="userfs" FlashType="emmc" FileSystem="none" Start="30M" Length="50M" SelectFile="Z:harmonyhisicodecode-404outhispark_taurusipcamera_hispark_taurususerfs_vfat.img"/>
    </Partition_Info>
    作者:卡哇伊大喵

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

  • 相关阅读:
    再战徐州
    hibernate系列1
    linux 下python操作mysql
    java synchronized
    深入ASP.NET MVC之九:Ajax支持
    深入ASP.NET MVC之六:Model Binding的实现
    深入ASP.NET MVC之十:服务器端Model Validation
    深入ASP.NET MVC之四:Filter和Action的执行
    深入ASP.NET MVC之七:ActionResult的执行(View的加载和渲染)
    深入ASP.NET MVC之五:Model Binding
  • 原文地址:https://www.cnblogs.com/HarmonyOS/p/14705164.html
Copyright © 2020-2023  润新知