# device_unionpi **Repository Path**: algoideas/device_unionpi ## Basic Information - **Project Name**: device_unionpi - **Description**: OpenHarmony 3.1 Release for UnionPi-Tiger (Amlogic A311D) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: OpenHarmony-3.1-Release - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 101 - **Created**: 2022-02-08 - **Last Updated**: 2022-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: unionpi, OpenHarmony ## README # device_unionpi ## 描述 本仓库存放了unionpi开发板(UnionPi Tiger)相关源码及补丁(适用于OpenHarmony-3.1-Release版本) ## 源码下载 ```shell mkdir openharmony cd openharmony repo init -u https://gitee.com/algoideas/unionpi -b OpenHarmony-3.1-Release -m devboard_unionpi.xml --no-repo-verify repo sync -c repo forall -c 'git lfs pull' ./build/prebuilts_download.sh --skip-ssl # 打入unionpi相关补丁到openharmony中 ./device/unionpi/build/patch-unionpi.sh ``` ## 编译方法 ```shell ./build.sh --product-name a311d --ccache ``` 或推荐采用如下命令(生成的镜像采用sparse格式,镜像大小会小很多,便于烧录,该命令仅适用OpenHarmony-3.1-Release) ```shell ./build.sh --product-name a311d --ccache --sparse-image ``` ## 生成镜像 ```shell ./device/unionpi/build/packer-unionpi.sh ``` 生成成功后,在 `out/a311d/packages/phone/images/` 目录下将生成 `OpenHarmony.img` 镜像文件。 ## 烧写方法 使用 `USB_Burning_Tool.exe` 工具烧写 `OpenHarmony.img` 镜像。 > 详细可参考主线版本的烧录详细说明(仅参考烧录部分即可):https://gitee.com/openharmony/device_board_unionman/tree/master/unionpi_tiger ## 注意事项 1. 目前OpenHarmony-3.1-Release版本横屏自适应官方适配未完善,OpenHarmony的master分支已经解决该问题(主线版本更新很频繁,相对于OpenHarmony-3.1-Release版本的功能需逐步合入及及时跟进主线版本的更新完善); 2. 主线master版本,分布式应用密码输入和显示页面大小可能没有自适应横屏(800x400),需要替换该文件(建议解压对比),以下文件主要对比OpenHarmony-3.1—Release版本:https://gitee.com/algoideas/patchs_unionpi/blob/OpenHarmony-3.1-Release/distributedhardware.tar.gz 其中主要修改如下文件(OpenHarmony官方gitee的matser分支同样需要注意修改): (1)、foundation/distributedhardware/devicemanager/common/include/show_confirm_dialog/dialog_ui/js/pages/index/index.css (2)、foundation/distributedhardware/devicemanager/ext/pin_auth/show_pin_dialog/dialog_ui/js/pages/index/index.css (3)、foundation/distributedhardware/devicemanager/ext/pin_auth/input_pin_dialog/dialog_ui/js/pages/index/index.css 3. 如果从OpenHarmony-3.1-Release版本升级到master版本,因master分支环境变量解析功能更新,需要执行如下命令,以确保新的环境变量生效。 在烧录完成master版本后,重启按Ctrl+C进入Uboot执行以下命令: ```shell env default -a env save ``` ## 相关仓 以下为OpenHarmony主线版本相关仓库(7月份上的主干,主要关注master分支,每日构建请参考:http://ci.openharmony.cn/dailys/dailybuilds) - [device_board_unionman](https://gitee.com/openharmony/device_board_unionman) - [vendor_unionman](https://gitee.com/openharmony-sig/vendor_unionman) - [device_soc_amlogic](https://gitee.com/openharmony-sig/device_soc_amlogic) > 注: Unionpi Tiger于7月份开始上主仓,未考虑合入OpenHarmony的OpenHarmony-3.1-Release分支