IoTGateway/BSP/OpenHarmony RK3568

From ESS-WIKI
Jump to: navigation, search

Openharmony BSP Version

Openharmony 5.0.2

Kernel 5.10.208

Build Environment on Host

Currently, we adopt Docker as build environment.

You can get the latest version of swr.cn-south-1.myhuaweicloud.com/openharmony-docker/docker_oh_standard:3.2 Docker image for developing Openharmony projects.

Docker command:

docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/docker_oh_standard:3.2;

Run Docker example

Step1 Run docker container (example)

docker run --privileged -it --name Openharmony_build_5.0.2 -v /home/your-name/mycode:/home/adv/BSP:rw swr.cn-south-1.myhuaweicloud.com/openharmony-docker/docker_oh_standard:3.2 /bin/bash

Step2 In container, change the user. (example)

$ sudo chown adv:adv -R BSP

Getting  Source Code

$ cd ~/BSP
$ curl https://storage.googleapis.com/git-repo-downloads/repo > repo
$ mkdir rk3568_Openharmony-5.0.2
$ cd rk3568_Openharmony-5.0.2
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com
$ git config --global http.postBuffer 52428800000
$ git config --global http.maxRequestBuffer 100M
$ git config --global core.compression 0
$ ../repo init -u https://kag-sw.visualstudio.com/RK3568-OpenHarmony/_git/rk3568-openharmony502-manifest -b master -m default.xml
------If you want to get the latest code, please use default.xml------
------If you want to get LVDS display code, please use RK3568_OH5.0_OIV5016.xml------
------If you want to get HDMI display code, please use RK3568_OH5.0_OIV5017.xml------
$ ../repo sync

 

Getting third_party  (must download)

Baidu:third_party Key: a887

Exit docker and copy the file to /home/your-name/mycode
$ cp third_party.tar.gz /home/your-name/mycode/rk3568_Openharmony-5.0.2/OpenHarmony5.0.2

In container and Unzip file
$ docker attach Openharmony_build_5.0.2
$ tar zxvf ~/BSP/rk3568_Openharmony-5.0.2/OpenHarmony5.0.2/third_party.tar.gz

Compile all

Build RSB-4810 project

$ ./build/prebuilts_download.sh
$ ./build.sh --product-name rk3568 --ccache

All image in

out/rk3568/packages/phone/images/

The common image files are listed below:

boot_linux.img
chip_ckm.img
chip_prod.img
config.cfg
eng_system.img
MiniLoaderAll.bin
parameter.txt
ramdisk.img
resource.img
sys_prod.img
system.img
uboot.img
updater.img
userdata.img
vendor.img

How to update images?

There are three ways to update images:

1._Using_AndroidToool.

Note : Right click and select "Import Configuration", then choose the config.cfg file from the images directory.