OpenHarmony is a distributed OS that is designed to run on top of variety of OS kernels. Currently the supported kernels are Zephyr, Yocto, and FreeRTOS. To build OpenHarmony image, you need to add multiple layers called meta-ohos. The meta-ohos is an umbrella meta layer containing all layers required to build OpenHarmony Image based on existing kernel meta-layers. This section describes how to build, add layers, and run the OpenHarmony image.
OpenHarmony is a distributed OS that is designed to run on top of variety of OS kernels ranging from RTOSs to Linux. To build OpenHarmony image, you need to add multiple layers called **meta-ohos**. The **meta-ohos** is a set of bitbake layers for building OpenHarmony images using the bitbake infrastructure, it is a _umbrella_ meta layer containing all layers required to build. This section describes the architecture of **meta-ohos** and procedures invloved in building and running the OpenHarmony image using supported kernels.
* `Build and Run Using Zephyr <using zypher>`_
* `Build and Run Using Linux <using linux>`_
* `Build and Run Using FreeRTOS <using freertos>`_
**Figure 1 meta-ohos overview**
...
...
@@ -16,7 +13,6 @@ OpenHarmony is a distributed OS that is designed to run on top of variety of OS
:alt: meta-ohos overview
Prerequisites
s
To start working with **meta-ohos** first install git repo:
...
...
@@ -26,221 +22,155 @@ To start working with **meta-ohos** first install git repo:
$ sudo apt-get update
$ sudo apt-get install git-repo
.. _using zypher:
Building and Running OpenHarmony image
************************************************
Build and Run Using Zypher
-----------------------------------------
1. Once git repo has been installed, clone the necessary repositories.
1. Once git repo has been installed, clone the necessary repositories using the following commands:
For Zephyr, zephyr-philosophers is one of the sample applications available in meta-zephyr layer by Yocto project. It's easy to build other samples using recipes available in meta-zephyr/recipes-kernel/zephyr-kernel/ directory.
.. code-block:: console
./ohos/
└── sources
├── meta-freertos
├── meta-ohos
├── meta-openembedded
├── meta-zephyr
└── poky
2. Build OHOS flavour of your choice. Currently OpenHarmony supports Linux, Zephyr, and FreeRTOS.
* **OHOS Linux flavour**
Default Linux distro is poky-tiny. You can choose any of the following machines (default is qemux86):
* qemux86
* qemux86-64
* qemuarm
* qemuarmv5
4. After the build is successful, run the image by executing the following command:
To build Linux-based OHOS, execute following commands:
`zephyr-philosophers` is one of the sample applications available in meta-zephyr layer by Yocto project. It's easy to build other samples using recipes available in `meta-zephyr/recipes-kernel/zephyr-kernel/` directory.
* **OHOS FreeRTOS flavour**
For FreeRTOS you can choose any of the following machines:
* qemuarmv5
To build FreeRTOS-based OHOS, execute following commands: