Approach A vs Approach B (Local BYOF Workflow)
UniOHOS keeps all public repositories 100% free of proprietary vendor binaries while supporting both pure open-source system builds and full hardware bring-up on consumer devices.
1. Side-by-Side Comparison
| Dimension | Approach A: Pure Open-Source OpenHarmony Base | Approach B: Local BYOF Firmware Synthesis |
|---|---|---|
| System Rootfs Source | Upstream open-source OpenHarmony (Apache-2.0) | Locally synthesized on the user's computer from user-owned partitions (BYOF, Bring Your Own Firmware) + UniOHOS open-source adaptation layers |
| Proprietary Blobs Hosted by UniOHOS | 0 bytes | 0 bytes (only open-source code, schemas, and device.yaml recipes are published) |
| Graphics Stack | Open-source Mesa (PanVK / Turnip / RADV / ANV / llvmpipe) | Dual-engine router: local GPU via hybris-bridge with automatic Mesa fallback |
| Non-GPU Hardware | Open-source kernel & native VDI drivers | Isolated Bionic Sidecar mounting local /vendor read-only, incrementally replaceable by open drivers |
| Primary Use Case | Stage 0-2 bring-up, kernel/ABI testing, open driver & firmware development | Stage 3-4 full hardware enablement (OpenHarmony / HarmonyOS) on user-owned unlocked devices |
Current v0.1.0 CLI Support | uniohos-builder open-base-info (spec CLI; automated build recipes & CI preview images planned) | uniohos-builder validate-device + byof-plan --dry-run + fs-tools (end-to-end automated assembly planned iteratively via PRs) |
2. Approach A: Inspecting the Pure Open-Source Base Spec
Use UniOHOS/builder to query the Apache-2.0 OpenHarmony base target specification for arm64 or x86_64:
uniohos-builder open-base-info --arch arm64
uniohos-builder open-base-info --arch x86_64 --jsonThe arm64 specification targets uniohos-open-base-arm64.erofs (Apache-2.0, proprietary_blobs_bytes: 0), combining:
- OpenHarmony Musl libc,
init,samgr,hilog,hdf_devmgr, andhdc UniOHOS/coreearly-bringupplus generic DRM/KMScomposer_vdiandbuffer_vdi- Open-source Mesa 3D (
PanVKfor Arm Mali/Immortalis,Turnipfor Qualcomm Adreno,llvmpipefallback) - Critical modem and calibration partition
ro,norecoveryguards
3. Approach B: Local BYOF Synthesis Workflow
Under Approach B, all device-specific proprietary files stay strictly on the device owner's local workstation outside any Git directory.
Step 1: Dump Local Read-Only Partitions Outside Git
From your own unlocked device, archive the partitions declared under byof_inputs.local_partitions in device.yaml (for example vendor_a, odm_a, vendor_boot_a, dtbo_a) into a private local workspace directory (UNIOHOS_WORK_DIR). Never commit or attach these files to Git, Issues, or Pull Requests.
Step 2: Validate the Device Recipe
uniohos-builder validate-device devices/xiaomi/dijun/device.yaml --jsonThe validator enforces device.schema.json (v1.0), including byof_inputs.zero_remote_blobs == true and selinux.zero_neverallow == true.
Step 3: Generate the 5-Step Offline Synthesis Plan
uniohos-builder byof-plan --device devices/xiaomi/dijun/device.yaml --dry-run --jsonbyof-plan emits a deterministic 5-step local execution plan with remote_blob_downloads: 0:
verify_local_byof_inputs: Confirm required local read-only partitions are present and list untouched low-level bootchain partitions.verify_gki_kernel_and_dtbo: Validate<vendor>-<soc>-kernelbranch/tag,dtbo_target, zero GKI ABI CRC drift, and custom out-of-tree.komodules viaUniOHOS/gki-sdk.compile_core_and_bsp: BuildUniOHOS/coreand<vendor>-<soc>-bsp(bsp_profileordevice_overlay_repo), primary GPU engine plus fallback Mesa driver, and declared Sidecar services.pack_tiered_erofs_and_selinux: Pack local read-only EROFS images (64KBPTE_CONTTier-0 alignment viafs-tools) and incremental SELinux.cilpolicy (neverallow == 0), enforcingro,norecoveryguards on critical partitions.emit_non_destructive_slot_plan: Produce the target slot deployment plan (e.g.,slot _b, keepingslot _auntouched for rollback).
Compliance Boundary
UniOHOS and UniOHOS-Devices repositories and GitHub Releases never host extracted OEM firmware, commercial system images, or proprietary .so/.ko/.ta files. See Compliance & BYOF Policy and LEGAL.md.