OpenHarmony开发者论坛
标题:
将OpenHarmony RK设备散包镜像打包为一个整包
[打印本页]
作者:
润开鸿_贾佳豪
时间:
2024-9-4 22:08
标题:
将OpenHarmony RK设备散包镜像打包为一个整包
[md]本篇文章教大家使用瑞芯微的Linux_Pack_Firmware工具将rk设备的多个镜像文件打包为一个固件。首先感谢大佬[AlgoIdeas](
https://gitee.com/algoideas?login=from_csdn
)开源的打包工具,开源地址:[
https://gitee.com/openharmony-driver/ril_adapter
](
https://gitee.com/openharmony-driver/Linux_Pack_Firmware
)
接下来进行演示,下面我们使用OpenHarmony 4.1R版本的官方镜像进行演示
## 演示环境
1. OpenHarmony 4.1R版本的官方镜像,获取地址:
http://ci.openharmony.cn/workbench/cicd/dailybuild/dailyList
2.DAYU200开发板(rk3568)
3.linux开发环境
## 步骤
1.下载Linux_Pack_Firmware工具,
https://gitee.com/openharmony-driver/Linux_Pack_Firmware
2.将散包镜像文件放在Linux_Pack_Firmware工具Image下面,如下所示
![image.png](
https://dl-harmonyos.51cto.com/i ... rocess=image/resize
,w_561,h_1243)
3.然后根据散包镜像内容,修改打包规则文件 `rk356x-package-file`,以rk3568 4.1R官方默认镜像为例,内容如下:
```
# NAME Relative path
#
#HWDEF HWDEF
package-file package-file
bootloader Image/MiniLoaderAll.bin
parameter Image/parameter.txt
uboot Image/uboot.img
resource Image/resource.img
ramdisk Image/ramdisk.img
boot_linux Image/boot_linux.img
updater Image/updater.img
sys-prod Image/sys_prod.img
chip-prod Image/chip_prod.img
chip-ckm Image/chip_ckm.img
system Image/system.img
vendor Image/vendor.img
eng-system Image/eng_system.img
userdata:grow Image/userdata.img
```
4.之后执行打包脚本 `rk356x-mkupdate.sh`打包脚本
![image.png](
https://dl-harmonyos.51cto.com/i ... rocess=image/resize
,w_820,h_1228)
4.生成的打包文件在Linux_Pack_Firmware下
![image.png](
https://dl-harmonyos.51cto.com/i ... rocess=image/resize
,w_561,h_1111)
5.之后正常烧录即可
![image.png](
https://dl-harmonyos.51cto.com/i ... rocess=image/resize
,w_820,h_673)
开机正常
![image.png](
https://dl-harmonyos.51cto.com/i ... rocess=image/resize
,w_820,h_920)
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5