一、注册gitee账号
gitee账号注册、添加码云SSH公钥、、配置用户信息 1.注账账号,配置邮箱 2.添加 SSH 参考:https://gitee.com/help/articles/4181 3.检验是否配置成功 ssh -T git@gitee.com 二、代码下载 鸿蒙开源地址: https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.0-LTS.md 1. 通过repo + ssh 下载 repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.0-LTS --no-repo-verify repo sync -c repo forall -c 'git lfs pull' 2. 通过repo + https 下载 repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.0-LTS --no-repo-verify repo sync -c repo forall -c 'git lfs pull' 三、代码编译 1. 下载编译器及二进制工具 进入build目录 执行 ./prebuilts_download.sh 执行中可能会报如下错误 ,原因 有两个文件中的配置有问题,太老了,库中没有,更新下即可 npm ERR! code EINTEGRITY npm ERR! verification failed while extracting uglify-es@3.3.10 解决方法: 进入 developtools 目录 执行 repo sync -c 更新下代码 然后删除 如下两个目录的 package-lock.json developtools/ace-ets2bundle/compiler/ developtools/ace-js2bundle/ace-loader 然后再执行 ./prebuilts_download.sh 如下所示,表示己成功 2. 编译代码,出镜像 在根目录下 执行下面的编译命令, 根据你自己的设备类型如Hi3516DV300、 rk3568等,填对应的内容 ./build.sh --product-name Hi3516DV300 镜像在如下目录 out/ohos-arm-release/packages/phone/images 四、烧录设备 驱动及海思烧写工具下载地址: https://gitee.com/hihope_iot/docs/tree/master/HiSpark-AI-Camera-Developer-Kit/Software/tools 1. 安装USB设备驱动 HiUSBBurnDriver 2. USB 补丁的安装 usb-patch-for-win8win10.reg 3. 安装usb串口驱动 USB-to-Serial Comm Port.exe 4. 烧写工具 hitool


