Skip to content

Xiaomi Redmi Note 3 (Kenzo) Snapdragon 650 ​

CodeDevB7/UniXNU-kenzo

Xiaomi Redmi Note 3 (kenzo) Snapdragon 650 porting record.

Source record: porting.toml, e48ccd6a69acb27a74a6067ef53284aa774d7948.

This page is generated from the device record.

AreaStatus
Configurationhost-verified
Firmware and bootplanned
CPU and interruptsimplemented
Memory and DMAplanned
Storage and rootplanned
Displayplanned
Inputplanned
GPUplanned
Networkplanned
Audioplanned
Powerplanned
Image assemblyplanned
Diagnosticsplanned

Configuration ​

host-verified

Components: ArmDTPlatform, ArmCpu, SoftwareAES, XnuPrelink, DarwinBoot.

Hardware and dependencies ​

  • Xiaomi Redmi Note 3, codename kenzo; Qualcomm MSM8956; selected profile ipados-17.7.11-21H461.
  • Shared SoC feed points to CodeDevB7/UniXNU-msm8956-common at d6845aea8fc3e5c14993b269fcca92927e85fb45, corrected from the connected device's active FDT.

Configuration ​

  • board.toml selects ArmDTPlatform, ArmCpu, SoftwareAES, XnuPrelink and DarwinBoot; kenzo_defconfig; SoC and OS config fragments; ordered arch, SoC, OS and device patch series.
  • [package] unixnu is ../UniXNU and [package.defconfig] maps ipados-17.7.11-21H461 to kenzo_defconfig.
  • [bootimg.image] defines base=0x80000000, pagesize=2048, offsets, and [[bootimg.dtb_node]] adds continuous splash buffer.

Procedure ​

  • Resolve board configuration from the UniXNU checkout with unixnu status -D UniXNU-kenzo.
  • Run scripts/package.sh --check --os ipados-17.7.11-21H461 from the device repository after required local sources are available.
  • Use .github/workflows/dts-adt.yml to compile the board DTS and generate the ADT on a macOS runner; use kernel.yml for the kernel build.

Development findings ​

  • The current repository uses format 2 and the shared SoC feed; the older handoff's build workflow description predates the current package interface.
  • The package script previously stopped immediately because [package].unixnu was absent; after recording the path and profile-to-defconfig mapping, host preflight resolved kenzo_defconfig and all 59 patches.
  • The extracted 86-DTB QCDT set contains reference roots only, but a live device-tree capture now identifies the bootloader-populated MSM8956 MTP tree and matching reference selector DTB 0.
  • The kernel-only macOS workflow checks out UniXNU at c34f018aafd6befd5dc93c05a8dccd5bdce6724b and uploads the kernel binary and redacted text logs. Its pre-build helper removes only the optional Sheng PMGR probe hunk from the generic boot-progress patch; it fails closed if the upstream hunk layout changes.
  • Run 43170315275 completed successfully on macOS. The final build and prelink produced kernel.macho with SHA-256 43bad77f58e9a3582f330ebb3c70ad4b48d0c350188d17c2bd38ed8454b7650f. The bootstrap pass first reported unresolved mockfs symbols before the configured archive build; the later main kernel link succeeded. The first successful run retained redacted logs but did not yet publish the kernel as an artifact.
  • Updated board.toml with verified bootimg parameters (base 0x80000000, pagesize 2048, offsets) and continuous splash DTB node; package check passed with 59 patches and kenzo_defconfig.

Completion criteria ​

  • The pinned SoC source resolves; package preflight writes the selected configuration and patch resolution completes for the selected OS profile.

Current limits ​

  • Package preflight, patch resolution, standalone DTS-to-ADT generation and kernel compilation/prelink are host-verified. UEFI firmware, payload, image assembly and device boot are unverified. Firmware repository, image inputs and device seed are not configured.

Next action ​

  • Integrate and validate the live-FDT-grounded SoC map in the ADT, then identify a Kenzo UEFI source and verify board firmware paths before attempting a complete package build.

Evidence ​

Firmware and boot ​

planned

Hardware and dependencies ​

  • Kenzo stock Android boot image and extracted device-tree data are present in the sibling kenzo-dump directory.
  • Created dedicated CodeDevB7/uefi-kenzo repository providing Platforms/Xiaomi/kenzoPkg, MemoryMapLib, BootShim.S, Resources/Configs/kenzo.toml, and verified kenzo.dtb.

Configuration ​

  • board.toml configures [firmware] with dsc = 'Platforms/Xiaomi/kenzoPkg/kenzo.dsc', fd = 'Build/kenzoPkg/{target}_CLANGPDB/FV/SILICIUM_UEFI.fd', base = 0x9FC00000, size = 0x300000.

Procedure ​

  • Follow the UniXNU UEFI integration guide, then build and inspect the device FD and boot image on a supported host.

Development findings ​

  • Established the kenzoPkg platform package in CodeDevB7/uefi-kenzo commit 4f1ceae. Configures BootShim.S with ARM64 header, MemoryMapLib with all 6 Kenzo hardware carveouts, GICv2 at 0x0B000000/0x0B002000, Arch Timer at 19.2 MHz, and SimpleFBDxe on splash framebuffer 0x83000000 (1080x1920).
  • The user confirms fastboot boot works for temporary boots; boot image header parameters in board.toml and kenzo.toml are unified.

Completion criteria ​

  • Firmware image builds, enters UniXNU, publishes the framebuffer and preserves the documented memory reservations.

Current limits ​

  • Firmware volume build and device boot execution remain unverified; full EDK2 submodule integration and cloud build workflow pending.

Next action ​

  • Set up GitHub Actions firmware compilation workflow in CodeDevB7/uefi-kenzo to build SILICIUM_UEFI.fd.

Evidence ​

CPU and interrupts ​

implemented

Components: ArmCpu.

Hardware and dependencies ​

  • The connected Kenzo reports six online Linux CPUs and soc_id 266 (MSM8956). Its active FDT identifies MSM8956 MTP, qcom,msm-id <0x10a 0>, qcom,board-id <8 0>; these selectors match extracted DTB 0. A draft postmarketOS Kenzo DTS requests revision 1.1 instead and does not match the live tree.
  • The captured active FDT reports CPU MPIDRs 0-3, 0x100 and 0x103 as CPUs; 0x101 and 0x102 are NAK placeholders.

Configuration ​

  • The shared SoC DTSI sets /cpus/timebase-frequency to 19200000, observed CPU affinity values 0-3 and 0x100/0x103, PSCI method smc, GICv2 ranges 0x0b000000/0x1000 and 0x0b002000/0x1000, and exports the controller as intc. The debug UART uses captured range 0x078b0000/0x200 and interrupt <0 0x6c 0>.
  • The board configuration selects ArmCpu; the SoC fragment enables the GIC and architectural timer.

Procedure ​

  • Compile dts/kenzo.dts with the pinned SoC include using dtc -I dts -O dtb.
  • Generate the selected OS/device ADT with scripts/make-adt.py and inspect the output against required XNU nodes.
  • After the UEFI path exists, boot XNU and capture per-core entry, timer and IPI logs against the captured Android FDT CPU/GIC data.

Development findings ​

  • The active device FDT confirms MSM8956 MTP selector cells, six CPU MPIDRs (0-3, 0x100, 0x103), PSCI SMC, the configured GIC ranges, timer tuples and debug UART range/interrupt. The shared SoC DTSI was corrected for MPIDR 0x103 and the UART resources. No XNU secondary-core or IPI bring-up has been measured.

Completion criteria ​

  • Every enabled CPU reaches its entry checkpoint and timer/IPI handling works on each enabled CPU.

Current limits ​

  • The capture is the running Android kernel FDT; CPU entry, XNU timer/IPI behavior, and whether a future UEFI payload receives the same nodes are unverified.

Next action ​

  • Build and inspect the ADT with the corrected pinned SoC tree, then validate XNU CPU entry, timer and IPI after a UEFI boot path exists.

Evidence ​

Memory and DMA ​

planned

Hardware and dependencies ​

  • The live active FDT reports /memory/reg <0 0x80000000 0 0x80000000>, matching the current DTS 2 GiB window; Linux reports CPUs 0-5 online.
  • Analysis of kenzo-dump/iomem.txt and extracted_dtb_0.dtb identifies exact physical firmware carveout nodes and sizes.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for memory and dma.

Procedure ​

  • Follow the memory and dma stage in the porting guide and record the actual commands.

Development findings ​

  • The active Android FDT confirms the 2 GiB DRAM range at 0x80000000. All memory gaps in iomem.txt are reconciled to device-tree nodes: other_ext_region (5M at 0x86300000), modem_region (86M at 0x86c00000), reloc_region (23M at 0x8c200000), and tzapp_region (25M at 0x8dd00000). Upper System RAM from 0x8f600000 to 0xffffffff (1802 MiB) is continuous and free.
  • Recommended placement for UEFI FD (FD_BASE) is in upper RAM (e.g. 0x90000000 or 0x9fc00000), safely above all carveouts.

Completion criteria ​

  • All handoff regions are accounted for and each enabled DMA engine accesses its allocated range with the documented cache policy.

Current limits ​

  • Complete DRAM banks, firmware carveouts, DMA addressability, cache policy and SMMU ownership remain unverified on UEFI.

Next action ​

  • Verify UEFI FD base placement and reconcile future UEFI memory map against the identified carveouts.

Evidence ​

Storage and root ​

planned

Hardware and dependencies ​

  • Identify the storage and root hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for storage and root.

Procedure ​

  • Follow the storage and root stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first storage and root observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Host: register, clock, link and SMMU facts match the board inventory.
  • Reads: SCSI capacity, GPT and known blocks are correct; OS/SystemOS windows stay within userdata.
  • Root: the configured volume mounts and launchd starts. Persistence: writes survive reboot within the allocated Data region.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required storage and root inputs before implementation.

Evidence ​

Collect evidence using the next action.

Display ​

planned

Hardware and dependencies ​

  • BOE NT35532 1080p video mode DSI panel (1080x1920, 24/32bpp) with continuous splash framebuffer at 0x83000000 (40 MiB).
  • Hardware DT node /soc/qcom,mdss_mdp@1a00000/qcom,mdss_fb_primary binds to cont_splash_mem at 0x83000000.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for display.

Procedure ​

  • Follow the display stage in the porting guide and record the actual commands.

Development findings ​

  • Primary FB and continuous splash memory are verified at 0x83000000 with 40 MiB size. UEFI SimpleFBDxe can bind directly to this pre-initialized buffer (1080x1920) without requiring full DSI/MDP5 clock init.

Completion criteria ​

  • A known frame appears with correct geometry and colors, then userland presentation and backlight controls work.

Current limits ​

  • Hardware inputs are identified; SimpleFBDxe integration into UEFI FD is pending.

Next action ​

  • Configure SimpleFBDxe in the Kenzo UEFI package using framebuffer base 0x83000000, 1080x1920.

Evidence ​

Input ​

planned

Hardware and dependencies ​

  • Identify the input hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for input.

Procedure ​

  • Follow the input stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first input observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Touches map to the display, simultaneous contacts keep stable IDs, release events arrive, and buttons produce expected HID reports.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required input inputs before implementation.

Evidence ​

Collect evidence using the next action.

GPU ​

planned

Hardware and dependencies ​

  • Identify the gpu hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for gpu.

Procedure ​

  • Follow the gpu stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first gpu observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • GPU submissions complete, mapping/fence handling is correct, a known image renders, and the selected Metal client presents it.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required gpu inputs before implementation.

Evidence ​

Collect evidence using the next action.

Network ​

planned

Hardware and dependencies ​

  • Identify the network hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for network.

Procedure ​

  • Follow the network stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first network observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Scanning, association, address configuration and sustained receive/transmit traffic pass with the selected firmware.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required network inputs before implementation.

Evidence ​

Collect evidence using the next action.

Audio ​

planned

Hardware and dependencies ​

  • Identify the audio hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for audio.

Procedure ​

  • Follow the audio stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first audio observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Each declared route carries the selected audio format through playback or capture and handles start/stop correctly.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required audio inputs before implementation.

Evidence ​

Collect evidence using the next action.

Power ​

planned

Hardware and dependencies ​

  • Identify the power hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for power.

Procedure ​

  • Follow the power stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first power observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Declared power controls and battery readings match observations; each claimed sleep/resume transition restores its dependent peripherals.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required power inputs before implementation.

Evidence ​

Collect evidence using the next action.

Image assembly ​

planned

Hardware and dependencies ​

  • Identify the image assembly hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for image assembly.

Procedure ​

  • Follow the image assembly stage in the porting guide and record the actual commands.

Development findings ​

  • Collect the first image assembly observation, its cause when established, and the resulting implementation decision.

Completion criteria ​

  • Kernel and prelink succeed, payload contains all declared inputs, and the boot image matches the bootloader format and size limit.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required image assembly inputs before implementation.

Evidence ​

Collect evidence using the next action.

Diagnostics ​

planned

Hardware and dependencies ​

  • Identify the diagnostics hardware, resources and existing component interfaces for this board.

Configuration ​

  • Record the board.toml fields, DTS properties and defconfig values used for diagnostics.

Procedure ​

  • Follow the diagnostics stage in the porting guide and record the actual commands.

Development findings ​

  • The MSM8956 feed lock now pins the live-FDT-grounded SoC correction d6845aea8fc3e5c14993b269fcca92927e85fb45; it corrects CPU MPIDR 0x103 and UART resources. This updates source resolution only and does not add an on-device XNU diagnostic probe.

Completion criteria ​

  • Each claimed milestone has a reproducible command, a matching source/image revision and an accessible result.

Current limits ​

  • Hardware inputs and implementation are pending for this example board.

Next action ​

  • Inventory the required diagnostics inputs before implementation.

Evidence ​

Released under the BSD-2-Clause-Patent License.