Xiaomi Pad 5 Pro 12.4 (dagu), China-region Wi-Fi model 22081281AC, SM8250-AC, iPadOS 17.7.11 / arm64 target
Source and porting skeleton for the Xiaomi Pad 5 Pro 12.4 (dagu, China-region Wi-Fi, 22081281AC). Inputs collected from public DTS and device trees; not booted. Cannot be flashed until the bootloader is unlocked.
源记录: porting.toml, f8d638e3dd419c1e160d191d55e751808f3d5884.
本页按设备记录自动生成。
| 部分 | 状态 |
|---|---|
| 配置 | planned |
| 固件与启动 | planned |
| CPU 与中断 | planned |
| 内存与 DMA | planned |
| 存储与根卷 | planned |
| 显示 | planned |
| 输入 | planned |
| GPU | planned |
| 网络 | planned |
| cellular | not-applicable |
| 音频 | planned |
| 电源 | planned |
| 镜像组装 | planned |
| 诊断 | planned |
配置
planned
组件: ArmDTPlatform, ArmCpu, SoftwareAES, XnuPrelink, DarwinBoot.
硬件与依赖
- Board identity: Xiaomi Pad 5 Pro 12.4, China-region Wi-Fi, codename dagu, model 22081281AC.
- SoC: Qualcomm SM8250-AC (Snapdragon 870), Adreno 650, octa-core Kryo 585.
- Intended OS profile: ipados-17.7.11-21H461 (iPadOS 17 / arm64). iPadOS 27 and macOS 27 / arm64e are not selected.
- SoC feed: FFT-infra/UniXNU-sm8250-common commit 166235ec2480ff0992627b7aafa15c65ce6b4efa (community SM8250 common; no UniXNU-org SM8250 repository).
- Closest software cousins: elish (Pad 5 Pro 11-inch Wi-Fi) and enuma (Pad 5 Pro 5G). umi is a farther SM8250 phone reference; SoC-level items only.
配置
- board.toml schema_version = 2, board.name = dagu, board.soc = SM8250-AC, board.soc_source = sm8250, board.os_profile = ipados-17.7.11-21H461, board.kit = dagu.
- feeds.toml pins source sm8250 to https://github.com/FFT-infra/UniXNU-sm8250-common at 166235ec2480ff0992627b7aafa15c65ce6b4efa.
- kernel.defconfig = dagu_defconfig; device_tree.source = device:dts/dagu.dts; include_dirs = [soc:dts].
- config_fragments = [arch:configs/common.config, soc:configs/sm8250.config, os:configs/ipados.config].
- patch_series = [arch:patches/xnu/series, soc:patches/xnu/series, os:patches/xnu/series, device:patches/xnu/series].
- components.include = [ArmDTPlatform, ArmCpu, SoftwareAES, XnuPrelink, DarwinBoot]. Storage, display, input and GPU components are not selected.
操作步骤
- Copy UniXNU/examples/device, rename the defconfig and DTS to dagu, then retarget board.toml and feeds.toml from SM8550 to SM8250-AC and the iPadOS 17.7.11 profile.
- Fill hardware comments from opened public DTS and device trees. Leave DRAM size and userdata LBA as TODO.
- From the UniXNU checkout: ./unixnu defconfig dagu_defconfig -D ../UniXNU-dagu, then ./unixnu fetch -D ../UniXNU-dagu and python3 scripts/porting-record.py check --device ../UniXNU-dagu when the Linux host can run them.
开发经验
- On this Linux host, ./unixnu defconfig dagu_defconfig -D ../UniXNU-dagu and ./unixnu fetch -D ../UniXNU-dagu resolved arch/arm64, FFT-infra/UniXNU-sm8250-common at 166235ec2480ff0992627b7aafa15c65ce6b4efa, ipados-17.7.11-21H461 and the dagu board, then wrote unixnu.lock. status showed the intended component set and the SoC SMP patches in the series.
- Official UniXNU does not ship a SM8250 common repository. Nearby format 2 ports pin FFT-infra/UniXNU-sm8250-common at 166235ec, which provides dts/sm8250.dtsi, soc/configs/sm8250.config and the two SMP patch series.
- The official template defaults to SM8550 and iPadOS 17.7.11. This board keeps the same OS profile and arm64 path and only changes the SoC layer.
- board.example is omitted because identity, the SoC pin and sourced DTS facts are filled. Unknown measured values are explicit TODOs rather than invented numbers.
完成条件
- unixnu defconfig and fetch resolve the intended ARM64, SM8250, iPadOS 17.7.11 and dagu profiles with the pinned SoC commit.
- status --json shows the complete fragment and patch order, and every selected component has a record area.
当前范围
- This is a source skeleton produced on a Linux build box. It has not been host-verified with a full image build and has not been booted.
- A uefi-dagu firmware repository does not exist yet.
下一步
- After publication, confirm the Porting record workflow on the default branch. A full image build remains macOS/firmware-blocked.
证据
source: Official format 2 layout, publication topic and array-replacement rules used for this skeleton.source: Pinned SM8250 common commit used by nearby SM8250-AC community ports.source: Closest Wi-Fi family cousin (elish). Used for SoC/OS profile comparison only; board wiring was not copied.source: Closest format 2 SM8250-AC iPadOS 17 port structure. Used as a layout reference; unique enuma values were not copied.
固件与启动
planned
硬件与依赖
- Target firmware checkout would be a future uefi-dagu Mu-Silicium package (Platforms/Xiaomi/daguPkg/dagu.dsc). It is not published.
- Stock software on the user's unit was last recorded as official HyperOS 2 OS2.0.10.0.ULZCNXM. Official bind/unlock is currently closed.
- PSCI method smc is provided by soc:dts/sm8250.dtsi.
配置
- firmware.config = dagu, firmware.dsc = Platforms/Xiaomi/daguPkg/dagu.dsc, firmware.fd = Build/daguPkg/{target}_CLANGPDB/FV/SILICIUM_UEFI.fd.
- firmware.defines.DEVICE_MODEL = dagu.
- payload.loader = firmware, payload.volume = DAGU, payload.size_mib = 192, payload.kernel_args = [-v, serial=3].
- No [bootimg.image] or splash [[bootimg.dtb_node]] is set; those need a dagu bootloader and firmware DTB contract.
操作步骤
- Keep proprietary inputs out of git. List each extracted file in proprietary-files.txt only after a measured SHA-256 exists.
- Do not assemble or flash a boot image until an official unlock is available and userdata/DRAM inputs are measured.
开发经验
- Rinko-Studio BoardConfig.mk uses Android boot header version 3 and pagesize 4096 for the stock Linux kernel. That is not evidence for UniXNU's mkbootimg layout on this board.
- A splash reserved region was not present in the opened dagu overlay or dagu-sm8250.dtsi. elish numbers were not copied.
完成条件
- A board firmware package exists, builds, and documents framebuffer and memory handoff for dagu.
- Every required firmware member is listed with a measured hash in proprietary-files.txt.
当前范围
- No uefi-dagu tree, no hashed firmware members, and no device firmware log exist yet.
- The bootloader is locked; this repository must not be treated as a flashable image source.
下一步
- Create a dagu UEFI package only after the required firmware archive can be imported into .cache/firmware and hashed.
证据
CPU 与中断
planned
硬件与依赖
- SoC include dts/sm8250.dtsi: eight Kryo 585 cores, cpu@0..@300 Cortex-A55, cpu@400..@700 Cortex-A77, timebase-frequency 19200000, psci method smc.
- GICv3 at 0x17a00000 (distributor 64 KiB) and 0x17a60000 (redistributors), compatible arm,gic-v3, from the same SoC include.
- qcom,msm-id family 356 from kona.dtsi / kona-v2.dtsi / kona-v2.1.dtsi; board-id 51 0 from the dagu overlay.
配置
- dagu.dts includes sm8250.dtsi and does not override CPU status; all eight SoC CPU nodes remain enabled.
- payload.adt.chip_id = 356, derived from the kona qcom,msm-id, with unique_chip_id required.
操作步骤
- Keep CPU affinities and GIC ranges in the SoC repository. Record any dagu-specific enable or disable decisions in dts/dagu.dts.
- Confirm the live msm-id revision (0x10000 / 0x20000 / 0x20001) from a dagu firmware DTB or sysfs once the device can be read.
开发经验
- The dagu overlay is built against kona.dtb, kona-v2.dtb and kona-v2.1.dtb, so the running msm-id revision depends on silicon and the selected base DTB. SM8250-AC corresponds to kona v2.1 (356 0x20001).
- payload.adt.chip_id is a software identity, not an ECID.
完成条件
- Every enabled CPU reaches its entry checkpoint and timer/IPI handling works on each enabled CPU.
当前范围
- No dagu host or device CPU bring-up has been run. cpu_regs is not pinned in board.toml.
下一步
- After a firmware package exists, confirm MPIDR / enabled cores from a dagu DTB or live FDT.
证据
source: Eight-core map, PSCI smc, GICv3 0x17a00000/0x17a60000 and 19.2 MHz timebase.source: dagu qcom,board-id = <51 0>.source: kona v2.1 qcom,msm-id = <356 0x20001>.
内存与 DMA
planned
硬件与依赖
- Public device documentation lists RAM SKUs of 6 GB, 8 GB and 12 GB paired with 128 GB, 256 GB and 512 GB UFS.
- The opened dagu overlay and dagu-sm8250.dtsi do not publish a /memory reg. Stock kona.dtsi uses a zero placeholder.
- Family-common reserved nodes inherited through xiaomi-sm8250-common.dtsi: xbl_aop_mem at 0x80600000 size 0x260000, disp_rdump_memory at 0xb0400000 size 0x01000000. These are not a complete dagu memory map.
配置
- dts/dagu.dts memory@0 currently has reg = <0 0 0 0> as an explicit placeholder.
- payload.dram_size is intentionally unset so a single SKU is not pinned.
操作步骤
- On the target SKU, record the live /memory ranges and reserved holes, then set a single memory node and payload.dram_size for that SKU only.
开发经验
- Inventing a dram_size would silently exclude the other shipping SKUs. The skeleton records the variants and leaves a TODO.
- A conventional SM8250 DRAM base of 0x80000000 appears in other ports and in Linux board practice, but it is not written into this DTS as a measured dagu range.
完成条件
- The ADT DRAM range matches the measured SKU, and reserved regions used at handoff are accounted for.
当前范围
- No on-device memory map or firmware DTB memory node for dagu has been read in this work.
下一步
- Measure the target unit's DRAM banks and reserved holes; do not copy elish or enuma sizes.
证据
存储与根卷
planned
硬件与依赖
- SoC UFS host ufshc@1d84000 and phy@1d87000 from UniXNU-sm8250-common dts/sm8250.dtsi, currently disabled until a storage component is selected.
- xiaomi-sm8250-common.dtsi enables &ufsphy_mem as qcom,ufs-phy-qmp-v4 and &ufshc_mem with regulator supplies. dagu-sm8250.dtsi adds only an hsg4_synclength override.
- Userdata first_lba, last_lba and lba_bytes are not filled. A published ArrowOS BOARD_USERDATAIMAGE_PARTITION_SIZE of 114755874816 is a size, not GPT geometry, and storage SKUs differ.
配置
- No ShengUfs or other storage component is selected.
- board.toml omits [userdata] rather than inventing LBA numbers. configs/dagu_defconfig leaves CONFIG_XNU_NATIVE_UFS unset.
操作步骤
- After an official unlock, read the userdata GPT entry and logical block size on the target unit and only then fill [userdata].
- Select a UFS component only after clocks, PHY, ICE, SMMU and LUNs for this board are inventoried.
开发经验
- elish and enuma userdata LBA values must not be reused. Official porting rules require partition geometry from the target board.
完成条件
- Host register, clock, link and SMMU facts match the dagu inventory, and OS/SystemOS windows stay within the measured userdata partition.
当前范围
- No dagu GPT dump or on-device partition table is available in this skeleton.
下一步
- Measure userdata first_lba, last_lba and lba_bytes on the target SKU; do not copy another board.
证据
source: UFS host 0x1d84000 and PHY 0x1d87000 documented at SoC scope.source: dagu enables the common UFS nodes and only overrides hsg4_synclength.
显示
planned
硬件与依赖
- Panel dtsi dsi-panel-l81a-42-04-0a-video.dtsi: dual DSI DPHY video panel, 800 x 2560 per DSI (1600 x 2560 total), 120 Hz, 4 lanes, bpp 24, DSC 8 bpc / 8 bpp, HDR enabled.
- Backlight: two KTZ8866 I2C devices at address 0x11 on qupv3_se11_i2c and qupv3_se9_i2c, hwen GPIO tlmm 139.
- dagu-sm8250.dtsi sets &sde_dp { status = ok } and panel supplies enp/enn plus vddio L7A at 1.832 V.
- Rinko-Studio README describes an IPS LCD, 120 Hz, HDR10, Dolby Vision, 500 nits. Dolby Vision is not separately named in the opened panel timing node.
配置
- No display or GOP component is selected. CONFIG_XNU_NATIVE_MOBILE_DISPLAY and CONFIG_XNU_NATIVE_LEGACY_DISPLAY are unset.
- Panel geometry and the L81A identifier are recorded in dts/dagu.dts comments for later wiring.
操作步骤
- Choose a handoff path (inherit ABL framebuffer versus re-initialize DPU/DSI) only after a firmware package can preserve or program the L81A panel.
开发经验
- The 1600 x 2560 geometry is confirmed by both the panel timing (800+800) and Himax display-coords in dagu-sm8250.dtsi.
- DSC bit-per-component 8 matches an 8-bit panel pipeline in the opened timing node.
完成条件
- A known frame appears with the documented 1600 x 2560 geometry and color format, and backlight control works.
当前范围
- No framebuffer handoff, stride or pixel format has been measured on device. No display component is selected.
下一步
- Confirm the live panel variant and stride from a firmware DTB or a future UEFI GOP log.
证据
source: L81A dual DSI 800x2560@120Hz, bpp 24, DSC 8 bpc, HDR enabled.source: KTZ8866 backlight at I2C 0x11, sde_dp enabled, panel supplies and Himax 1600x2560 coords.
输入
planned
硬件与依赖
- Primary touch node himax_ts@0 on &qupv3_se4_spi, compatible himax,hxcommon, 4 MHz, spi-cpha, IRQ tlmm 39, reset tlmm 100, coords 0 1600 0 2560.
- vendor/xiaomi/dagu.config enables CONFIG_TOUCHSCREEN_HIMAX_IC_HX83121 and also CONFIG_TOUCHSCREEN_NT36523_HOSTDL_SPI. No NT36523 node was found in the opened dagu dtsi.
- Keyboard dock: nanosic,803 at &qupv3_se2_i2c address 0x4c, IRQ tlmm 83, reset tlmm 141.
- Volume up comes from the shared xiaomi-sm8250-common gpio_keys (pm8150 GPIO 6). Hall sensors are on tlmm 110 and 121. Volume down and power key nodes were not found in the opened dagu dtsi.
配置
- No touch or HID component is selected. Wiring is documented in dts/dagu.dts comments only.
操作步骤
- Confirm the touch IC actually present on the target unit before selecting a driver. Do not assume elish's NT36523 wiring.
开发经验
- dagu's opened board DTS wires Himax on SE4 SPI, which is a different controller and bus setup from elish's Novatek NT36523 description. The extra NT36523 Kconfig flag is recorded as an unresolved SKU question, not as a second wired device.
完成条件
- Touches map to the 1600 x 2560 panel, contacts keep stable IDs, and buttons produce expected HID reports.
当前范围
- No touch firmware file name or hash is present in the opened DTS. Volume-down and power key locations remain TODO.
下一步
- On the target unit, confirm the touch compatible string and firmware name; then decide whether a Himax or NT36523 driver applies.
证据
source: Himax SPI touch and nanosic,803 keyboard nodes as cited in inputs.source: Enables Himax HX83121 and also NT36523_HOSTDL_SPI.
GPU
planned
硬件与依赖
- SoC include describes Adreno 650: gpu@3d00000 compatible qcom,adreno-650.2, gmu@3d6a000, gpu_smmu@3da0000, all disabled until a GPU component with A650 scope is selected.
- soc/configs/sm8250.config leaves CONFIG_XNU_NATIVE_ADRENO unset, noting that the A650 path is not provided by a catalog component yet.
配置
- No Adreno or Metal component is selected in board.toml. dagu_defconfig leaves CONFIG_XNU_NATIVE_ADRENO unset.
操作步骤
- Reuse SoC-level A650 addresses from UniXNU-sm8250-common when a catalog component exists. Do not copy phone-board GPU policy from umi.
开发经验
- Nearby SM8250 ports also leave native Adreno off at the skeleton stage. Firmware names and hashes are not yet listed.
完成条件
- A selected A650 component completes submissions and presents a known image on this board.
当前范围
- No dagu GPU firmware hash, vote or SMMU stream inventory beyond the SoC include is recorded.
下一步
- Wait for an A650-capable catalog component, then list firmware members from a verified official package.
证据
网络
planned
硬件与依赖
- Wi-Fi device in kona.dtsi: wlan: qcom,cnss-qca6390@b0000000, compatible qcom,cnss-qca6390, wlan-en GPIO tlmm 20.
- Bluetooth in xiaomi-sm8250-common.dtsi: bt_qca6390, compatible qca,qca6390, reset GPIO tlmm 21, sw-ctrl GPIO tlmm 124.
- dagu-sm8250.dtsi overrides &wlan and &bluetooth regulator supplies (pm8150_s6 digital, pm8150_s5 rfa1 at 2.0 V).
配置
- No Wi-Fi component is selected. Chip identity and board regulator overrides are recorded in dts/dagu.dts comments.
操作步骤
- List QCA6390 firmware members and hashes from a verified official package before selecting a network component.
开发经验
- The wireless combo is QCA6390 (CNSS + BT) at SoC/family scope, with dagu-specific regulator overrides. This is a Wi-Fi-only board; see the cellular area.
完成条件
- Scanning, association and sustained traffic pass with the selected QCA6390 firmware.
当前范围
- No firmware file names or SHA-256 values are pinned. No association test has been run.
下一步
- Import official QCA6390 firmware into .cache/firmware and record measured hashes.
证据
cellular
not-applicable
硬件与依赖
- This repository targets the China-region Wi-Fi model (22081281AC). There is no onboard cellular modem in scope.
配置
- No modem, QRTR/QMI, SIM or IPA/QMAP component is selected, and none will be selected for this Wi-Fi model.
操作步骤
- Leave this area as not-applicable unless a different dagu SKU with a modem is explicitly targeted later.
开发经验
- enuma is the 5G cousin in the same tablet family and is not this board. Cellular work belongs on enuma, not on this Wi-Fi dagu skeleton.
完成条件
- The record continues to mark cellular as outside the scope of the Wi-Fi model.
当前范围
- not-applicable: Wi-Fi-only China-region dagu (22081281AC) has no modem to bring up in this repository.
下一步
- No cellular measurement is planned for this model.
证据
音频
planned
硬件与依赖
- dagu-sm8250.dtsi describes four Cirrus CS35L41 amplifiers on I2C (addresses 0x40, 0x41, 0x43 appear in the opened file) and includes dagu-audio-overlay.dtsi.
配置
- No DSP or audio component is selected. Amplifier compatible strings are recorded only as inventory.
操作步骤
- Inventory ADSP firmware and routes after the platform and display stages have a recorded baseline.
开发经验
- Audio hardware is present in the stock DTS but has no UniXNU implementation in this skeleton.
完成条件
- Each declared route carries the selected format through playback or capture.
当前范围
- No codec clock, firmware or route map has been turned into board configuration yet.
下一步
- Leave audio unselected until a driver with satisfied inputs is chosen from the catalog.
证据
电源
planned
硬件与依赖
- Rinko-Studio README: Li-Po 10000 mAh, non-removable battery.
- dagu.config enables QPNP SMB5 dagu, dual BQ27Z561 fuel gauge and BQ2597X charge-pump support.
- dagu-sm8250.dtsi sets mi,pd-power-max = <67> (67 W) on &pm8150b_pdphy.
配置
- No battery or platform-power component is selected in this skeleton.
操作步骤
- Record regulator ownership and supported transitions after firmware handoff exists.
开发经验
- The 10000 mAh figure comes from public device documentation, not from a fuel-gauge dump on the target unit.
完成条件
- Declared power controls and battery readings match observations on this board.
当前范围
- No on-device charge or capacity log is recorded here.
下一步
- Leave power components unselected until a firmware package can report regulators and the fuel gauge.
证据
source: Documents a non-removable Li-Po 10000 mAh battery.source: Enables dagu SMB5, dual BQ27Z561 and BQ2597X charge-pump Kconfig.
镜像组装
planned
硬件与依赖
- OS profile ipados-17.7.11-21H461 supplies the IPSW URL, product iPad7,1, build 21H461 and prelink roots.
- scripts/package.sh is the official unmodified packaging script and reads [package] unixnu = ../UniXNU.
- This skeleton was produced on a Linux build box. Kernel and skip-setup steps that need Xcode or hdiutil require macOS or the official macOS GitHub runner.
配置
- package.defconfig maps ipados-17.7.11-21H461 to dagu_defconfig.
- payload.adt sets ipad_identity and requires --unique-chip-id. root_match_volume_uuid is unset until a userdata image exists.
操作步骤
- From UniXNU: ./unixnu defconfig dagu_defconfig -D ../UniXNU-dagu && ./unixnu fetch -D ../UniXNU-dagu.
- Do not run bootimg as a flashable release until DRAM, userdata, firmware and an official unlock are available.
开发经验
- The official OS profile already pins the iPadOS 17.7.11 IPSW member hashes. This board does not duplicate them, and it does not select a 27-series profile.
完成条件
- Kernel and prelink succeed for the iPadOS 17.7.11 profile, the payload contains the declared inputs, and the boot image matches a verified dagu bootloader contract.
当前范围
- Linux hosts cannot run hdiutil or the iphoneos SDK path. A failed full image build on this box is not a repository-format failure.
- The official package.yml firmware checkout is blocked until uefi-dagu exists.
下一步
- Resolve sources with unixnu fetch when network and the driver allow it; record host evidence only for commands that actually succeed.
证据
诊断
planned
硬件与依赖
- The official device-documentation workflow is retained and calls UniXNU/UniXNU/.github/workflows/porting-record.yml@main.
- Log transport, recovery commands and image revisions will be needed during bring-up; none have been captured from a dagu unit.
配置
- No board-specific probe scripts are shipped in this skeleton beyond the official package.sh.
操作步骤
- Run python3 scripts/porting-record.py check --device ../UniXNU-dagu from the UniXNU checkout after record edits.
- Record the last confirmed checkpoint only from actual host or device logs.
开发经验
- The bootloader is locked and official unlock is closed, so device evidence cannot be collected until that changes. This repository must stay a source skeleton until then.
完成条件
- Each claimed milestone has a reproducible command, a full source revision and an accessible result.
当前范围
- unixnu.lock was written by a successful fetch on this Linux host and is committed with the skeleton. There is still no device log and no bring-up checkpoint.
下一步
- Enable and watch the Porting record workflow on the published default branch after the initial push.