Redmi Turbo 4 / POCO X7 Pro (rodin): Dimensity 8400-Ultra, 8/12/16 GiB LPDDR5X, 6.67" AMOLED 1220x2712, UFS
Redmi Turbo 4 / POCO X7 Pro (rodin): MediaTek Dimensity 8400-Ultra (MT6899, 8x Cortex-A725 arm64), 12 GiB LPDDR5X, UFS storage. Porting target: UniXNU UEFI + XNU boot chain for the ipados-17.7.11-21H461 profile; configuration chain and UEFI scaffold are in place, drivers are in progress.
源记录: porting.toml, 1269114a246fc2ab8fd6871d2c910c64939880c4.
本页按设备记录自动生成。
| 部分 | 状态 |
|---|---|
| 配置 | implemented |
| 固件与启动 | planned |
| CPU 与中断 | implemented |
| 内存与 DMA | planned |
| 存储与根卷 | planned |
| 显示 | planned |
| 输入 | implemented |
| GPU | planned |
| 网络 | planned |
| cellular | planned |
| 音频 | implemented |
| 电源 | planned |
| 镜像组装 | planned |
| 诊断 | planned |
配置
implemented
组件: ArmDTPlatform, ArmCpu, XnuPrelink, SoftwareAES.
硬件与依赖
- UniXNU-mt6899-common SoC repository (created, values unreviewed)
- OS profile selected: ipados-17.7.11-21H461 (arm64, iPad7,1 identity; profile supplies [ipsw] and [kernel.prelink])
- Kernel sources: MiCode/Xiaomi_Kernel_OpenSource bsp-rodin-v-oss @ 2cd69ee4193920840ee3c837384716a66b1faecd; MiCode/MTK_kernel_device_modules bsp-rodin-v-oss @ bc2dfc01f75b5fbc42d614c8c39700022cba9323 (board DTS)
配置
- board.toml [board] os_profile = ipados-17.7.11-21H461; [ipsw] and [kernel.prelink] inherited from the profile
操作步骤
- Choose the OS profile from UniXNU/profiles/os/
- Pin UniXNU-mt6899-common with a reviewed commit in feeds.toml
- Run ./unixnu defconfig, fetch, status --json, tree
- Verify the resolver chain on CI (defconfig/fetch/status all passing)
开发经验
- Scaffold created 2026-11-15; SoC pin da0f6103bd3529a78c4ce1a2818190a07a6734c1 now resolved in feeds.toml.
- Board DTS sources identified in MTK_kernel_device_modules: arch/arm64/boot/dts/mediatek/rodin.dts and companions.
- Resolver chain verified 2026-11-15: defconfig/fetch/status/tree exit 0 on Linux (aarch64 host, CI pending toolchain).
完成条件
- Resolved profiles and patch order confirmed by ./unixnu status --json
当前范围
- Toolchain build still running on CI; kernel/tree steps not yet end-to-end verified there.
下一步
- Finish the cached UniXNU toolchain CI run, then verify build kernel and tree on the same host.
证据
固件与启动
planned
硬件与依赖
- Stock boot.img and vendor_boot.img (header v4) dumped from the device
- Mu-Silicium fork target for rodin (uefi-rodin), not created yet
配置
- board.toml [bootimg.image]: base=0x40000000, pagesize=4096, header_version=4
操作步骤
- Create uefi-rodin from uefi-sheng / Mu-Silicium
- Describe the MTK boot chain handoff and PSCI method
开发经验
- Stock images use Android boot image header version 4; kernel loads at 0x40000000, ramdisk at 0x66f00000, page size 4096.
- Vendor ramdisk is ~41 MiB and lives in vendor_boot; boot.img carries only the kernel (~16.6 MiB).
- The vendor DTB (~444 KiB, FDT v17) sits inside vendor_boot.img at 0x2965040, after the vendor ramdisk.
- Vendor bootargs: console=tty0, androidboot.hardware=mt6899, vmalloc=400M, swiotlb=noforce.
完成条件
- Firmware builds and the stock bootloader jumps to BootShim
当前范围
- UEFI firmware for rodin does not exist; the bootimg v4 tool support is unverified.
下一步
- Survey the Mu-Silicium base for an MTK reference and map the vendor DTB into the UEFI device-tree flow.
证据
CPU 与中断
implemented
组件: ArmCpu.
硬件与依赖
- Vendor DTB extracted from the stock vendor_boot.img (rodin-vendor.dtb)
配置
- mt6899.dtsi: GIC v3 at 0xc400000 (dist 0x40000, redist 0xc440000/0x200000), 4 cells
- mt6899.dtsi: armv8 timer, 13 MHz, vendor interrupt cells
- rodin.dts: MPIDR 0x000-0x700, capacities 0x400/0x3bb/0x3cb
操作步骤
- Extract the vendor DTB from vendor_boot.img and decompile it with dtc
- Copy confirmed GIC, timer and CPU topology values into mt6899.dtsi
开发经验
- 8x Cortex-A725 with enable-method psci; vendor DTB groups cpu0-3, cpu4-6 and cpu7 into three cpufreq domains.
- Timer clock is 13 MHz (0xc65d40) as declared by the vendor DTB.
- PSCI 1.0 with method smc, matching psci_method = "smc" in board.toml.
完成条件
- All cores enumerate in the kernel with the correct timer rate
当前范围
- Values are read from the blob but not yet verified on hardware.
- Idle states and full CPU bindings not yet translated.
下一步
- Verify GIC/timer behavior during the first UEFI bring-up, then translate idle states.
证据
内存与 DMA
planned
组件: ArmDTPlatform.
硬件与依赖
- Installed RAM confirmed: 12 GiB (test device is the 12+256 variant)
配置
- board.toml [payload] dram_size = "0x300000000" (12 GiB)
操作步骤
- Record DRAM size, reservations and DMA policy
开发经验
- Test device: 12 GiB LPDDR5X + 256 GiB UFS.
- Vendor DTB declares only a 1 GiB window at 0x40000000; the 12 GiB map spans 0x40000000..0x340000000 and must be confirmed against the bootloader memory map.
- Reserved regions use MTK-specific "mediatek,reserved" nodes and need mapping to UniXNU reservations.
完成条件
- Kernel maps full DRAM with required reservations
当前范围
- Only the 1 GiB DTB window is known; the extended memory map is unconfirmed.
下一步
- Survey the bootloader DRAM report and MTK DRAMC setup, then extend the memory description.
证据
按下一步操作收集证据。
存储与根卷
planned
硬件与依赖
- Device GPT dump (userdata first/last LBA); UFS host and PHY details from vendor DTS
配置
- board.toml [userdata]: first_lba=0x354300, last_lba=0x3d937f7, lba_bytes=4096 (from /dev/block/sdc GPT dump)
操作步骤
- Adapt UFS storage per /porting/ufs; fill [userdata] in board.toml
开发经验
- GPT parsed from /dev/block/sdc: 4096-byte logical blocks, disk 246.32 GiB, 'userdata' at LBA 0x354300..0x3d937f7 (~233 GiB).
- Full partition table recorded in docs/hardware-notes.md; MTK A/B scheme with boot_a/boot_b, lk_a/lk_b (LittleKernel), super (11 GiB dynamic).
完成条件
- APFS root and Data volumes mount from the device UFS
当前范围
- UFS host/PHY adaptation not started; no UniXNU UFS component selected yet.
下一步
- Select a UFS component from the catalog and map the MTK UFS host controller (from mt6899.dts / vendor sources) onto it.
证据
显示
planned
组件: GopFramebuffer.
硬件与依赖
- Panel driver and DSI configuration from the rodin kernel sources
配置
- board.toml [components]: GopFramebuffer supplies the display component; panel timing from vendor DTS (resolution 1220x2712 AMOLED)
操作步骤
- Follow /porting/display: controller/GOP, panel, stride, backlight
开发经验
- Panel: 6.67" AMOLED, 1220x2712, up to 120 Hz (vendor specs).
- DSI controller: mediatek,mt6899-dsi (disp1_dsi0) with mmsys0/1 and GCE disp events, read from the vendor DTB.
- Panel variants referenced in the touch node: rodin_42_02_0a_dsc_vdo and rodin_36_02_0b_dsc_vdo (DSC VDO).
- DTBO overlay confirms the two panel drivers: o10_42_02_0a_dsc_vdo,lcm (panel1@0) and o10_36_02_0b_dsc_vdo,lcm (panel2@1) — dual-source panel strategy.
完成条件
- Framebuffer visible at every boot stage with working brightness
当前范围
- Panel driver sources live in MTK_kernel_modules (LCM driver table); not yet read.
下一步
- Read the rodin LCM drivers in MTK_kernel_modules for the two panel variants, then design the display adaptation.
证据
按下一步操作收集证据。
输入
implemented
硬件与依赖
- Board DTS source: MTK_kernel_device_modules bsp-rodin-v-oss, arch/arm64/boot/dts/mediatek/xiaomi_rodin_mt6899_touch.dtsi
配置
- Touch IC: Goodix GT9916R (gtp), fallback Focaltech 3683g
- Bus: SPI1 @ 15 MHz; CLK GPIO50, CSB GPIO51, MISO GPIO52, MOSI GPIO53; SCP SPI2 alternate mode
- IRQ GPIO9, reset GPIO134, AVDD GPIO73 from mt6368_vtp (1.8 V)
操作步骤
- Follow /porting/input: bus, sensor protocol, interrupts, contact IDs
开发经验
- Touch driver is not in the vendor DTB blob but in module sources: xiaomi,touch-spi on spi1, coordinates 1220x2712 (panel-max-x 121999, super-resolution factor 100).
- Panels referenced by the touch node: rodin_42_02_0a_dsc_vdo and rodin_36_02_0b_dsc_vdo.
完成条件
- Touch, buttons and volume keys work
当前范围
- Goodix GT9916R SPI protocol needs driver work; no UniXNU touch component exists for this IC yet.
下一步
- Read the Goodix SPI driver in MTK_kernel_modules (drivers/input/touchscreen/...) and design the UEFI/XNU touch adaptation.
证据
GPU
planned
硬件与依赖
- Mali-G720 driver design; no Mali driver exists in the UniXNU catalog
配置
- board.toml [components]: input covered by the catalog HID components once selected
操作步骤
- Survey ArmMali userspace/kernelspace sources; define the smallest hardware-verifiable step
开发经验
- UniXNU GPU components (Adreno740, AdrenoMetal) target Qualcomm Adreno; Mali-G720 requires a new driver from zero.
- Vendor DTB: mali@13000000, compatible "mediatek,mali", "arm,mali-valhall" — Valhall CSF architecture confirmed.
完成条件
- Console-class rendering first; Metal acceleration later
当前范围
- No existing implementation to reuse; long lead time expected.
下一步
- Write a driver plan against the Mali CSF architecture and decide the first verifiable milestone.
证据
按下一步操作收集证据。
网络
planned
硬件与依赖
- connsys_wifi.img (MT7902 Wi-Fi firmware, dumped, hash pinned)
- connsys_bt.img (MT7902 BT firmware, dumped, hash pinned)
配置
- Adreno 740 (MT6899 iGPU); GopFramebuffer is the display component in board.toml [components]
操作步骤
- Follow /porting/network and /porting/bluetooth
开发经验
- Chip confirmed as MT7902: gen4-mt79xx WLAN driver in MTK_kernel_modules bsp-rodin-v-oss (connectivity/wlan/core/gen4-mt79xx/chips/mt7902); BT over SDIO ID 0x790A, firmware BT_RAM_CODE_MT7902_1_1_hdr.bin.
- Vendor DTB: wifi@18000000, compatible "mediatek,wifi", emi-connac-ver 2 — Connac gen2 class silicon.
- Community mt76 porting for MT7902 exists (built on this BSP) and can inform a UniXNU adaptation.
完成条件
- Association and packet transfer
当前范围
- No UniXNU Wi-Fi component for MT7902; firmware package must be extracted from the vendor image.
下一步
- Extract the MT7902 firmware blobs from the rodin vendor image and review the gen4-mt79xx driver interfaces.
证据
按下一步操作收集证据。
cellular
planned
硬件与依赖
- Scope decision: modem bring-up is a large separate effort
配置
- No network component selected yet; MTK connectivity handled via cellular/baseband scope
操作步骤
- Survey the vendor sources and map hardware onto a catalog component
开发经验
- Area not yet surveyed in depth
完成条件
- Component works on the device
当前范围
- Integrated MT6899 modem; no plan yet.
下一步
- Decide whether cellular is in scope; otherwise mark not-applicable with a reason.
证据
按下一步操作收集证据。
音频
implemented
硬件与依赖
- DTBO overlay: 2x awinic,aw882xx_smartpa on I2C 0x34/0x35
- MTK_kernel_modules bsp-rodin-v-oss sound/ drivers for the DSP and routes
配置
- No baseband component selected yet; vendor modem userspace remains required
操作步骤
- Follow /porting/power
开发经验
- SmartPA: 2x AW882XX (stereo speakers) on I2C addresses 0x34 and 0x35.
- Notification/RGB LED: AW21024 on I2C 0x30 (power/driver ownership overlap).
完成条件
- Playback and capture
当前范围
- Audio DSP (audio_dsp.img firmware present) not yet surveyed.
下一步
- Map the audio DSP service model from the module sources and audio_dsp.img.
证据
电源
planned
硬件与依赖
- Regulators, battery units, firmware ownership from vendor DTS
配置
- No audio component selected yet
操作步骤
- Follow /porting/power
开发经验
- Area not yet surveyed in depth
完成条件
- Battery reporting and supported transitions
当前范围
- No plan yet.
下一步
- Record the power tree from the vendor DTS.
证据
按下一步操作收集证据。
镜像组装
planned
硬件与依赖
- Original kernelcache, IPSW, firmware inputs
配置
- board.toml carries no power section yet; PSCI method smc recorded for handoff
操作步骤
- Complete [kernel.prelink], [ipsw], [payload] in board.toml; implement scripts/package.sh
开发经验
- Area not yet surveyed in depth
完成条件
- ./unixnu bootimg produces a flashable image from a clean checkout
当前范围
- All REQUIRED_ placeholders unfilled.
下一步
- Supply the IPSW and kernelcache inputs and run the first ./unixnu build kernel attempt.
证据
按下一步操作收集证据。
诊断
planned
硬件与依赖
- UART/USB console access plan
配置
- boot image header v4: kernel 0x40000000, ramdisk 0x66f00000, pagesize 4096 (from stock boot/vendor_boot)
操作步骤
- Set up log capture per /porting/log-capture
开发经验
- Area not yet surveyed in depth
完成条件
- Boot logs captured from the first UEFI stage
当前范围
- Console method untested on rodin.
下一步
- Confirm the debug UART pinout for rodin and wire the log capture procedure.
证据
按下一步操作收集证据。