Quickstart & Repository Map
This page gives you a practical map of the UniOHOS dual-organization layout, local workstation prerequisites, and a 5-minute offline verification run you can execute without touching any device.
1. What UniOHOS Provides
UniOHOS builds open-source adaptation layers, kernel ABI verification tools, graphical recovery software, and declarative build manifests for running OpenHarmony across ARM64 and x86_64 hardware (phones, tablets, laptops/PCs, and SBCs).
To stay strictly open-source while supporting real consumer devices, the project separates two build directions:
- Approach A (Pure Open-Source OpenHarmony Base): Builds directly on upstream open-source
OpenHarmony(Apache-2.0) with zero proprietary blobs. Suitable for early bring-up, kernel validation, DRM/KMS bring-up, open-source Mesa graphics, and open driver development. - Approach B (Local BYOF Synthesis): Enables
OpenHarmony / HarmonyOSports on your own unlocked device by combining your device's local read-only partitions (BYOF, Bring Your Own Firmware) with UniOHOS open-source adaptation layers on your own computer. UniOHOS never hosts or redistributes commercial images or firmware blobs.
See Approach A vs Approach B (BYOF) for the detailed comparison.
2. Dual-Organization Repository Map
UniOHOS splits repositories across two GitHub organizations so cross-silicon platform code never gets duplicated inside board ports and Apache-2.0 userland stays physically separated from GPL-2.0-only kernel trees.
Organization profile, compliance policy, porting guidelines, brand assets, and reusable hygiene CI.
Bilingual VitePress documentation portal, architecture deep dives, and published device JSON Schema.
Cross-silicon runtime: early-bringup, sidecar-runtime, TPIDR_EL0 hybris-bridge, anco-engine, device-parts.
Declarative device.yaml validator, Approach A/B BYOF planner CLI, fs-tools, and hotbind harness.
Pure-Python zero-dependency GKI 6.x ABI, KMI, KCFI, BTF, module closure, and DeviceTree toolkit.
Official device registry and declarative manifests organized under devices/<vendor>/<codename>/.
Chipset-agnostic LVGL v9.2 graphical recovery engine, HDC Sideload, streaming Fastbootd, and liblp.
Optional standalone plugins under mere aggregation (e.g. cb1-hdr dynamic HDR under GPL-2.0-or-later).
Silicon porting organization profile, repository naming convention, and per-SoC team governance policy.
Shared XRING O1 userspace hardware adaptation (12 subsystems) + Xiaomi 15S Pro (dijun) board profile.
Linux 6.18 OpenHarmony / HarmonyOS patch stack, USB Type-C overlays, and custom .ko sources for XRING O1.
HiSilicon Kirin 9000C userspace BSP and Huawei Qingyun L420x (PC) Stage 1 bootstrap profile.
Pure-source kernel patch series, DeviceTree/ACPI layout, and module skeleton for Kirin 9000C.
One SoC, One Pair of Repositories
Devices sharing the same silicon family do not fork separate Git branches. They share UniOHOS-Devices/<vendor>-<soc>-bsp/common/ and isolate board deltas under profiles/<vendor>/<codename>/, while each device registers its manifest under UniOHOS/devices/devices/<vendor>/<codename>/.
3. Workstation Prerequisites
Install the baseline host tools on a 64-bit Linux workstation (Ubuntu 24.04, Debian 12+, Arch Linux, or Fedora):
| Tooling Group | Packages / Tools | Used For |
|---|---|---|
| Core Runtime & Scripting | python3 >= 3.9, git, make | uniohos-builder, gki-sdk, hygiene gates, and test suites |
| C/C++ Toolchain | clang, lld, llvm (-D_FORTIFY_SOURCE=3 ready) | Compiling core, recovery, plugin, and host ASan/UBSan/TSan tests |
| DeviceTree & Kernel | device-tree-compiler (dtc), bc, flex, bison | Compiling .dts/.dtbo overlays and Linux 6.x kernel trees |
| Partition & Image Tools | erofs-utils (mkfs.erofs, fsck.erofs), AOSP lpdump/lpunpack/lpmake | Inspecting and repacking super dynamic partitions and read-only EROFS images |
| Device Communication | fastboot, OpenHarmony hdc, adb (optional) | Flashing target slots, reading early logs, and running hotbind tests |
Configure your Git identity once so every commit carries a valid DCO 1.1 Signed-off-by: trailer:
git config --global user.name "YourGitHubHandle"
git config --global user.email "<ID>+YourGitHubHandle@users.noreply.github.com"4. Five-Minute Offline Verification
Run the declarative device validator, BYOF planner, and pure-Python GKI SDK test suites locally with zero device risk:
git clone https://github.com/UniOHOS/builder.git
cd builder
pip install -e .
# Validate the Xiaomi 15S Pro (dijun) reference manifest
uniohos-builder validate-device examples/dijun-reference.yaml
# Inspect Approach A pure open-source rootfs specification
uniohos-builder open-base-info --arch arm64
# Generate the 5-step offline dry-run BYOF plan
uniohos-builder byof-plan --device examples/dijun-reference.yaml --dry-run
# Run unit tests and repository hygiene checks
python3 -m unittest discover -s tests -v
python3 scripts/check_hygiene.pygit clone https://github.com/UniOHOS/gki-sdk.git
cd gki-sdk
pip install -e .
# Run pure-Python unit tests (zero third-party dependencies)
python3 -m unittest discover -s tests -v
python3 scripts/check_hygiene.pygit clone https://github.com/UniOHOS/core.git
cd core
# Run repository hygiene gate and native bootanimation CPU self-test
python3 scripts/check_hygiene.py
make -C device-parts/bootanimation/native-player test-cpugit clone https://github.com/UniOHOS/recovery.git
cd recovery
# Run hygiene check plus 3-mode host verification (Normal, ASan+UBSan, TSan)
make CC=clang verifygit clone https://github.com/UniOHOS/plugin.git
cd plugin
# Run hygiene check, build generic + xring-o1 sinks, and run host tests
make hygiene && make all && make test5. Where to Go Next
- Bringing up a new device: Start with Storage Layout &
superOrchestration, then follow the Device Porting Guide (Stage 0-4). - Understanding internals: Read the Architecture Overview and the dedicated deep dives on Boot & Storage and Graphics & Sidecar.
- Checking hardware support: Browse the Device Support Matrix, Xiaomi 15S Pro (
dijun), and Huawei Qingyun L420x. - Reviewing rules & licenses: Read Compliance & BYOF Policy and Contributing, DCO & Governance.