![](https://s5-media.51cto.com/ost/pc/static/noavatar.gif)
回复
@toc
本文介绍 OpenHarmony3.2 beta3, liteos-a:hispark_taurus 使用/foundation/graphic
,开发界面应用。
源码见附件,签名参考签名
源码中带有做好的签名文件:myapp\myliteosapp\helloworldapp\cert\app-profile-20-sys.p7b
源码在OpenHarmony根目录中的路径:myapp\myliteosapp
文件build\subsystem_config.json
添加
"myapp": {
"path":"myapp",
"name": "myapp"
}
文件vendor\hisilicon\hispark_taurus\config.json
添加
{
"subsystem": "myapp",
"components": [
{ "component": "myliteos_app", "features":[ "" ] }
]
}
编译烧录参考3516应用调用到驱动尝试,参考其步骤和本文的一些配置进行编译烧录。
使用docker编译,镜像的版本:
sudo docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
内容如下,自己可以根据实际情况调整,二进制文件路径根据自己实际的二进制文件路径进行修改。
<?xml version="1.0" encoding="GB2312" ?>
<Partition_Info>
<Part Sel="1" PartitionName="fastboot" FlashType="emmc" FileSystem="none" Start="0" Length="1M" SelectFile="D:\harmony_tool\hispark_taurus\u-boot-hi3516dv300.bin"/>
<Part Sel="1" PartitionName="kernel" FlashType="emmc" FileSystem="none" Start="1M" Length="9M" SelectFile="D:\harmony_tool\hispark_taurus\OHOS_Image.bin"/>
<Part Sel="1" PartitionName="rootfs" FlashType="emmc" FileSystem="none" Start="10M" Length="50M" SelectFile="D:\harmony_tool\hispark_taurus\rootfs_vfat.img"/>
<Part Sel="1" PartitionName="userfs" FlashType="emmc" FileSystem="none" Start="60M" Length="100M" SelectFile="D:\harmony_tool\hispark_taurus\userfs_vfat.img"/>
</Partition_Info>
文件目录:/device/board/hisilicon/hispark_taurus/uboot/out/boot/u-boot-hi3516dv300.bin
编译成功,会生成app的动态库,重新烧录系统即可。