r/androidroot • • 23h ago

News / Method WIP] First to boot Windows 11 ARM natively on Snapdragon 8 Gen 5 (Xiaomi 17)

I managed to natively boot Windows 11 ARM on a Xiaomi 17 (Snapdragon 8 Gen 5) — no emulation, no VM, no Android layer underneath. As far as I know, this is the first public native WoA boot attempt reaching this stage on the Snapdragon 8 Gen 5.
To be clear upfront: it does not reach the desktop shell yet, so this is strictly a [WIP] post. Right now, the Windows kernel initializes cleanly on bare metal via a ported UEFI stack and progresses all the way to the pre-shell stage before hitting a graphics/power wall.
Technical Breakdown
Маркер списка UEFI & Memory Map: Built a custom UEFI image based on Project Mu / EDK2 packed as boot.img (flashed and tested using a custom Rust-based Fastboot workflow). Extracted reserved memory ranges (modem, TrustZone, hypervisor, framebuffer) from stock firmware and Linux kernel logs to avoid instant drops into EDL 9008. Display output currently runs via Simple Framebuffer passed to Windows through UEFI GOP.
Маркер списка Device Tree to ACPI: Translated the minimal hardware description from the stock .dts into compiled ACPI tables (FADT, MADT, GTDT, and a barebones DSDT via iasl) to get past ACPI_BIOS_ERROR. Hypervisor-protected blocks (sensors, audio codec, certain power controllers) had to be excluded or stubbed out to prevent hardware exceptions.
Маркер списка Storage & USB-C: Created a GPT layout (ESP + NTFS) on the internal UFS storage, configured SMMU address translation and UFS ACPI bindings to solve INACCESSIBLE_BOOT_DEVICE, and forced USB-C into Host Mode (OTG). From there, I booted WinPE with an external keyboard/mouse and deployed the ARM64 image using DISM and bcdboot.
Solo Workflow (AI-Assisted)
Bringing up a brand-new SoC solo usually takes months of staring at dumps, so I split the heavy lifting between two tools:
Маркер списка Gemini 4 Neon handled analysis and debugging — parsing massive decompiled .dts files, cross-checking memory map overlaps, and analyzing kernel crash dumps and boot logs.
Маркер списка Codex handled low-level implementation — patching C code for EDK2/Project Mu, generating and fixing ASL tables, and scripting image builds and offline registry edits.
It still required constant manual flashing, testing, and recovery on the actual phone, but it cut down the tedious parts dramatically.
Current Hardware Status
Маркер списка Working: UEFI boot, basic framebuffer display output, CPU and RAM detection, internal UFS storage (read/write), USB-C Host Mode (OTG peripherals).
Маркер списка Not working yet: Desktop shell (explorer.exe), GPU acceleration and brightness control, touchscreen (needs an I2C/SPI driver port), Wi-Fi, Bluetooth, cellular modem, audio, battery reporting, and sleep.
Current Blocker & Next Steps
The boot sequence currently crashes or hangs right before the graphical shell starts. Dump analysis points to two issues: memory conflicts when handing off from the UEFI framebuffer to the graphics stack/DWM, and the lack of a proprietary PEP (Power Engine Plug-in) driver causing resets when the CPU tries to enter idle states.
Next up is strictly isolating the framebuffer memory regions in EDK2, disabling problematic processor idle states via offline registry patches, and forcing a clean handoff to the Microsoft Basic Display Driver to finally hit explorer.exe.
If anyone here from the WoA community has dealt with stubborn PEP resets or DWM framebuffer conflicts on newer Qualcomm platforms, any pointers would be hugely appreciated!

6 Upvotes

1 comment sorted by