Skip to content

Troubleshooting & FAQ ​

Answers to recurring technical pitfalls encountered during ARM64 bring-up, kernel ABI alignment, graphics bridging, and compliance reviews.

Boot & Early Bring-up ​

Why do non-root OpenHarmony services fail to connect to Unix domain sockets after custom PID1 boot?

If your Stage-1 PID1 creates /dev (or /dev/unix/socket) while a restrictive umask is active, /dev can end up with mode 0700 owned by root. Non-root OpenHarmony services then fail silently with EACCES. Explicitly run chmod 0755 /dev before executing switch_root.

Why does the device hard-reboot at a fixed uptime during Stage 0 or Stage 1?

When loading the vendor .ko dependency closure in Stage-1 PID1, encountering EEXIST (a module already built-in or loaded) must be treated as non-fatal. If your loader aborts on EEXIST, hardware watchdog modules (snps,dw-wdt, xring,adsp-wdt, etc.) never load and the SoC watchdog resets the board after a fixed timeout.

Why does first-stage init crash with EBUSY on /dev, /proc, or /sys?

Do not leave stock AOSP first_stage_init CHECKCALL(mount(...)) calls running on mountpoints already initialized by your custom PID1 wrapper. Check mount state cleanly or hand off cleanly into OpenHarmony's switch_root /usr /bin/init --second-stage.

Kernel ABI & Hardware Capabilities ​

Why do stock vendor .ko modules refuse to load on a custom Linux 6.18 kernel?

GKI 6.6 / 6.18 kernels enforce EXTENDED_MODVERSIONS symbol CRCs, exact .gnu.linkonce.this_module struct sizing, and zero ARM64 GOT (311/312) relocations under KCFI. Run gki-abi-gate, gki-kcfi-ko-gate, and gki-btf-diff from UniOHOS/gki-sdk offline before flashing to catch mismatches immediately.

Why does calling a vendor GPU library directly from OpenHarmony Musl crash?

ARM64 Android GPU drivers inline mrs xN, tpidr_el0 assuming Bionic TCB slot offsets, which are incompatible with Musl libc's TLS layout. Start Stage 2 bring-up on open-source Mesa (PanVK / Turnip), then enable UniOHOS/core/hybris-bridge static bti c dual-TLS trampolines in Stage 3.

Why is /dev/kvm unavailable on Xiaomi 15S Pro (dijun)?

On retail Xiaomi XRING O1 hardware, the OEM EL2 hypervisor (xhee) occupies EL2, so Linux boots at EL1 without KVM access. This is an architectural hardware boundary documented honestly as Unsupported in the device matrix.

Licensing, BYOF & Community ​

Can I upload a prebuilt Approach B image or stock vendor blobs to GitHub Releases or PRs?

No. All Git repositories and GitHub Releases under UniOHOS and UniOHOS-Devices maintain zero proprietary binary hosting. Share only open-source code, build scripts, patches, and device.yaml recipes; Approach B synthesis runs strictly on the device owner's local computer.

How do I keep a host process purely Apache-2.0 if I want functionality from a GPL-2.0-or-later plugin?

Run the plugin out-of-process over CLI or IPC (or omit the optional plugin). Dynamically loading (dlopen) a GPL-2.0-or-later shared library such as cb1-hdr into an Apache-2.0 host process combines them at runtime under GPL-3.0-or-later compatibility.

How do I report a security vulnerability or IP/trademark concern?

Use GitHub Private Vulnerability Reporting (Security -> Advisories -> Report a vulnerability) on the affected repository, or UniOHOS/.github/security/advisories/new.

Independent Open-Source Community (CC-BY-4.0). Not affiliated with Huawei, HiSilicon, OpenAtom Foundation, Xiaomi, Qualcomm, MediaTek, or Arm.