Skip to content

OPPO Reno Ace (PCLM10 / Project 19081, Snapdragon 855+ SM8150-AC) ​

shmilylee409-a11y/UniXNU-pclm10

Format 2 UniXNU port for OPPO Reno Ace (PCLM10, OPPO project 19081, Snapdragon 855 Plus / SM8150-AC) with verified SM8150 memory map, Samsung SOFEF03F-M 1080x2400@90Hz GOP framebuffer, Synaptics S3706 touch on QUPv3 SE17 I2C, UFS 3.0, and Adreno 640 v2.

源记录: porting.toml, 4e9214d6571c670d73e73478fbfb4cf58624d0e8.

本页按设备记录自动生成。

部分状态
配置implemented
固件与启动device-verified
CPU 与中断device-verified
内存与 DMAdevice-verified
存储与根卷device-verified
显示device-verified
输入device-verified
GPUplanned
网络device-verified
音频planned
电源device-verified
镜像组装device-verified
诊断device-verified

配置 ​

implemented

组件: ArmDTPlatform.

硬件与依赖 ​

  • OPPO Reno Ace retail model PCLM10 (OP4A89, OPPO project 19081, oppo,dtsi_no = <19081>) on Qualcomm Snapdragon 855 Plus (SM8150-AC, msm-id = <0x153 0x20000>, board-id = <8 0>).
  • UniXNU-sm8150-common shared SoC repository pinned at commit f363dcda920101a99e440ce3e8b68849122a3c0a.
  • Upstream Android kernel DTS reference guh0613/android_kernel_oppo_sm8150 (arch/arm64/boot/dts/19081/) and UEFI reference Project-Aloha/mu_aloha_platforms (Platforms/SurfaceDuo1Pkg/Device/oppo-pclm10/).

配置 ​

  • board.toml selects schema_version = 2, board.name = 'pclm10', board.soc = 'SM8150', board.soc_source = 'sm8150', and board.os_profile = 'ipados-17.7.11-21H461'.
  • configs/pclm10_defconfig sets CONFIG_BOARD_PCLM10=y and CONFIG_SOC_SM8150=y on top of arch:configs/common.config, soc:configs/sm8150.config, and os:configs/ipados.config.
  • Patch series order is arch:patches/xnu/series, soc:patches/xnu/series, os:patches/xnu/series, device:patches/xnu/series.

操作步骤 ​

  • Run ./unixnu defconfig pclm10_defconfig -D ../UniXNU-pclm10 from the UniXNU checkout.
  • Verify resolution and status via ./unixnu status --json -D ../UniXNU-pclm10 and python3 scripts/porting-record.py check --device ../UniXNU-pclm10.

开发经验 ​

  • Retail model PCLM10 corresponds to OPPO project 19081 (SM8150-AC); early community posts occasionally confused PCKM00 (OPPO Reno2 SM7150) with Reno Ace.
  • All selected components in board.toml resolve against canonical IDs in UniXNU/components.toml (ArmDTPlatform, ArmCpu, SoftwareAES, DarwinBoot, XnuPrelink, GopFramebuffer, RamBlock, VirtioMmioBlock, ShengUfs, VerifiedRoot, AppleKeyStoreState).

完成条件 ​

  • All source pins resolve; every selected component has a record; status shows the intended overrides and patch order.

当前范围 ​

  • Board-specific XNU patches remain empty until first hardware boot log triage.

下一步 ​

  • Build the prelinked kernel and UEFI boot image via GitHub Actions macOS runner or local Xcode toolchain.

证据 ​

固件与启动 ​

device-verified

组件: DarwinBoot.

硬件与依赖 ​

  • Project-Aloha / Silicium EDK2 UEFI firmware for oppo-pclm10 (Platforms/SurfaceDuo1Pkg/Device/oppo-pclm10) and UniXNU/uefi-sheng.
  • Extracted single DTB dts/oppo-pclm10-19081.dtb (486447 bytes, oppo,prjversion = <1 19081>) containing /reserved-memory/cont_splash_region at 0x9d000000 (size 0x02400000).
  • UEFI FD loaded at 0x9fc00000 (size 0x00300000), FV region at 0x9f800000 (size 0x00400000), SEC heap/page tables/stack at 0x9ff00000..0xa0000000, DXE heap at 0xa5800000 (size 0x1a800000).

配置 ​

  • board.toml [firmware] selects config = 'pclm10', dsc = 'Platforms/OPPO/pclm10Pkg/pclm10.dsc', preflight = ['scripts/prepare-pclm10-uefi.py'], and [bootimg] dtb = 'build/pclm10/pclm10.dtb'.
  • scripts/prepare-pclm10-uefi.py injects Resources/Configs/pclm10.toml and Platforms/OPPO/pclm10Pkg/ into the UniXNU/uefi-sheng checkout and stages dts/oppo-pclm10-19081.dtb to build/pclm10/pclm10.dtb.
  • patches/darwinboot-32mb.patch aligns DarwinBoot payload/XNU handoff to SIZE_32MB on 896 MiB UEFI memory window while preserving cont_splash at 0x9d000000.

操作步骤 ​

  • Run scripts/prepare-pclm10-uefi.py --uefi ../uefi-pclm10 --device . --tree ../UniXNU, then build UEFI firmware with DarwinBoot integrated and pack into Android boot.img via scripts/build-sweet-boot.py.

开发经验 ​

  • dts/oppo-pclm10-19081.dtb already defines /reserved-memory/cont_splash_region (0x9d000000, 0x02400000), qseecom_region (0xa0000000, 0x01400000), and cdsp_sec_regions (0xa4c00000, 0x00c00000), so placing DXE Heap at 0xa5800000 (424 MiB) avoids all Bank 0 carveouts.
  • Device-verified SIZE_32MB UEFI + DarwinBoot handoff on OPPO Reno Ace (serial 34d5cb55) into xnu-8796 (iOS 16.7.16 20H392) via fastboot flash boot + fastboot reboot, leaving Android OS partitions intact.

完成条件 ​

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

当前范围 ​

  • UEFI identity map remains capped below 4 GiB; multi-GB DRAM expansion is handled inside XNU arm_init via pclm10-ram-mb.

下一步 ​

  • Keep Android dual-boot layout intact while keeping uefi-32m-896m/boot-uefi-32m.img aligned with sweet-16k.yml.

证据 ​

CPU 与中断 ​

device-verified

组件: ArmCpu.

硬件与依赖 ​

  • 8x Kryo 485 cores (MPIDR 0x000..0x700): 4x Cortex-A55 Silver (0x000..0x300 @ 1.80 GHz), 3x Cortex-A76 Gold (0x400..0x600 @ 2.42 GHz), 1x Cortex-A76 Prime (0x700 @ 2.96 GHz).
  • PSCI 1.0 over SMC; GICv3 distributor at 0x17a00000 (size 0x10000), redistributors at 0x17a60000 (size 0x100000, stride 0x20000); 19.2 MHz architected counter with virtual timer INTID 19.

配置 ​

  • Inherited from UniXNU-sm8150-common dts/sm8150.dtsi via dts/pclm10.dts.
  • board.toml sets cpu_regs = '0,0x100,0x200,0x300,0x400,0x500,0x600,0x700', psci_method = 'smc', and kernel_args = ['-v', 'serial=3', 'cpus=8', 'armcpu-self-ipi=1'].

操作步骤 ​

  • Boot XNU with cpus=8 and verify all 8 Kryo 485 cores come online via PSCI CPU_ON with working GICv3 SGI1 IPIs and virtual timer interrupts (INTID 19).

开发经验 ​

  • Device-verified 8/8 Kryo 485 SMP initialization (cpu 0..7, MPIDR 0x0..0x700) on PCLM10: PSCI CPU_ON rc=0 on all secondary cores and SWEET CPU: 8/8 CPUs initialized, SGI1 verified.

完成条件 ​

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

当前范围 ​

  • EPSS dynamic frequency scaling for the 2.96 GHz Prime core is not yet implemented.

下一步 ​

  • Add optional EPSS OPP frequency scaling once Adreno GPU bring-up starts.

证据 ​

内存与 DMA ​

device-verified

硬件与依赖 ​

  • 8 GB / 12 GB LPDDR4X @ 2133 MHz across Bank 0 (0x80000000..0xbbb00000), Carveout Hole (0xbbb00000..0xc0000000), Bank 1 (0xc0000000, size 0x80000000), and Bank 2 (0x140000000+).
  • OPPO project 19081 reserved-memory layout: hyp_mem (0x85700000, 0x600000), xbl_aop_mem + cmd_db (0x85d00000..0x85f40000), gpu_prr (0x85f40000, 0x10000), smem (0x86000000, 0x200000), qtee (0x86200000, 0x1800000), expanded tzapps_mem (0x87a00000, 0x5d00000), pil_mem (0x8d700000, 0xf400000), cont_splash_region (0x9d000000, 0x2400000), fv_region (0x9f800000, 0x400000), uefi_fd (0x9fc00000, 0x300000), pstore (0x17fe00000, 0x200000).
  • Apps SMMU-500 at 0x15000000 (UFS stream 0x300, USB stream 0x140) and GPU SMMU-500 at 0x02ca0000.

配置 ​

  • dts/pclm10.dts sets memory@c0000000 reg = <0x0 0xc0000000 0x0 0x80000000> and records all 11 no-map reserved-memory regions plus ramoops pstore.
  • scripts/apply-pclm10-sweet-overlay.py adds pclm10-ram-mb=<512..2816> expansion in osfmk/arm/arm_init.c (0xC4800000..0x174800000 across DDR Bank 1+2 below PANIC_LOG_BASE 0x17E000000 and PStore 0x17FE00000).

操作步骤 ​

  • Boot with --owned-memory-size 0x30000000 and pclm10-ram-mb=2816; verify vm_page_bootstrap page count, absence of VM swap failures, and SMMU stream 0x300/0x140 DMA.

开发经验 ​

  • Device-verified 2816 MiB (2.75 GiB) DRAM via pclm10-ram-mb=2816 with 16 KiB pages: vm_page_bootstrap reported 176859 free pages + 3365 wired pages (180224 total 16K pages = 2816 MiB) and eliminated earlier VM swap file failures.
  • Apps SMMU-500 stream bypass verified on hardware for UFS (stream 0x300) and USB DWC3 (stream 0x140) above 4 GiB.

完成条件 ​

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

当前范围 ​

  • DRAM window is capped at 2816 MiB (0xC4800000..0x174800000) to avoid DDR Bank 2 PANIC_LOG_BASE (0x17E000000) and PStore (0x17FE00000).

下一步 ​

  • Validate GPU SMMU (0x02ca0000) mappings when Adreno 640 driver work begins.

证据 ​

存储与根卷 ​

device-verified

组件: SoftwareAES.

硬件与依赖 ​

  • Samsung UFS 3.0 storage (128 GB / 256 GB) on Qualcomm ufshc@1d84000 (MMIO 0x01d84000, size 0x2500), QMP v4 PHY at 0x01d87000, ICE at 0x01d90000, GCC UFS clock window at 0x00177000 (size 0x1000).
  • Apps SMMU at 0x15000000 with stream ID 0x300 and 4096-byte logical block size; dual-boot LUN 0 GPT partition 'ios' (20480 MiB at first block 0x359cf00).

配置 ​

  • dts/pclm10.dts enables &ufs and &ufs_smmu from sm8150.dtsi.
  • scripts/mkiosroot-mac.sh + scripts/sweet/sweet-root-tweaks.py stage iOS 16.7.16 (20H392) HFS+ rootfs into the dual-boot 'ios' LUN 0 partition.

操作步骤 ​

  • Boot with rd=ufsroot0 ufsroot=ios ufsrw=1 rootrw=1 ufscache=1 and verify LUN0 4K block reads/writes, HFS+ root mount, launchd, and tail-partition console log flushing.

开发经验 ​

  • Device-verified sweet_ufs read-write mount of the 20480 MiB 'ios' LUN 0 partition (block 0x359cf00, DMA 0xcb518000) booting iOS 16.7.16 (20H392) into SpringBoard while preserving all Android OS partitions.

完成条件 ​

  • 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.

当前范围 ​

  • Uses HFS+ iOS 16.7.16 rootfs partition alongside Android LUN 0 partitions rather than APFS sealed volume.

下一步 ​

  • Preserve the dual-boot 'ios' LUN 0 GPT layout across future kernel updates.

证据 ​

显示 ​

device-verified

组件: GopFramebuffer.

硬件与依赖 ​

  • Samsung SOFEF03F-M 6.5-inch FHD+ (1080x2400 @ 90Hz) single-DSI command-mode AMOLED panel with DSC (dsi_samsung_sofef03f_m_amoled_fhd_plus_90fps_cmd).
  • Panel TLMM GPIOs: TE = GPIO 8, Reset = GPIO 6, Mode/VDDD(1.1V) = GPIO 152, VCI(3.0V) = GPIO 25, ErrFlag = GPIO 49; DCS backlight range 6..2047.
  • UEFI GOP continuous splash linear framebuffer at 0x9d000000 (size 0x02400000, 1080x2400, 32bpp BGRA8888, stride 4320).

配置 ​

  • SweetFramebuffer publishes AppleCLCD 1080x2400 stride 4320 at 0x9d000000 (presented as 1125x2436 BGRA8888) and registers qcom_usb_debug_register_framebuffer(&qud_fb) for live USB PNG capture.
  • AppleCLCD::present() bilinearly downscales the logical 1125x2436 frame to 1080x2400 via a cached horizontal LUT and L1 rowbuf[2048] + memcpy Write-Combine bursts (preventing WC bus stalls and 22/23px edge clipping, with sweetfb_crop=1 opt-in), composites multi-layer SrcOver alpha, clears uncovered background, and drains stores with dsb sy.
  • AppleARMBacklight (sweetbacklight=1, sweetbl_dcs=1) verifies DISP_CC (0x0af00000) + DSI0 (0x0ae94000) active state, publishes CoreBrightness IODisplayParameters/calibration properties, and writes 10-bit MIPI DCS 0x51 brightness packets via DSI0 TPG FIFO.
  • SweetFramebuffer RequestPowerChange (selector 12) handles display on/off transitions from backboardd.

操作步骤 ​

  • Boot XNU with sweetfb_noconsole=1 sweetfb_hz=15 sweetbacklight=1 sweetbl_dcs=1 qcom-usb-debug=1 qcom-usb-ctl=1, capture CRC-verified PNG frames via scripts/screenshot-xnu-usb.py, and sweep Control Center brightness slider via pclm10-autoswipe=100.

开发经验 ​

  • Replaced upstream 1125x2436->1080x2400 center-crop (top=33, bot=12, dock_L=8, dock_R=7) and direct volatile WC writes with L1-buffered bilinear scaling + memcpy bursts, eliminating edge clipping (top=50, bot=23..29, dock_L=28, dock_R=28) and sustained-animation WC disconnects.
  • Device-verified 1080x2400 iOS 16.7.16 UI across Lock Screen, Home Screen, Settings (initial and scrolled), App Library, and Control Center via CRC32-verified live USB screenshot capture.
  • iOS 16.7.16 CoreBrightness _DisplayCreateWithID requires AppleARMBacklight class conformance plus all 9 backlight-calibration-parameters keys (including current-for-max/mid-backlight and hardware-max-current-limit) before starting libEDR and delivering brightness-nits updates.
  • Device-verified Control Center slider ramp (20 steps lvl=537..984, dcs_ok=1) and display-on brightness restoration (lvl=984, dcs_ok=1) over DSI0 TPG FIFO MIPI DCS 0x51 on 34d5cb55.

完成条件 ​

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

当前范围 ​

  • Native DPU TE (GPIO 8) refresh modulation is not wired yet; display off fades AMOLED pixels to black and RequestPowerChange runs at software vsync.

下一步 ​

  • Optional: wire native MDSS TE IRQ (GPIO 8) and RequestPowerChange DCS 0x28/0x29 power gating if hardware DPU composition is enabled later.

证据 ​

输入 ​

device-verified

硬件与依赖 ​

  • Primary touchscreen: Synaptics S3706A (I2C slave 0x20) on qupv3_se17_i2c (MMIO 0x00c80000, qupv3_2 wrapper 0x00c00000, TLMM SOUTH SDA GPIO 55, SCL GPIO 56, reset GPIO 54, IRQ GPIO 122).
  • Power & pull-up: vdd_2v8 = <&pm8150_l17> (RPMh ldoa17 3.0V), enable1v8_gpio = <&pm8150l_gpios 5> (SPMI PPID 0x4c4, APID 318); 1080x2400 coords, up to 10 contacts.
  • Physical buttons: Volume Up (&pm8150_gpios 6), Volume Down (&pm8150_gpios 7), Power key via PM8150 PON (SPMI APIDs 247 / 260).

配置 ​

  • scripts/apply-pclm10-sweet-overlay.py configures sweet_touch.c for SM8150 TLMM SOUTH GPIO 55/56 software I2C bitbang fallback when SE17 GENI_IF_DISABLE_RO (0x64=0x1) indicates TZ-locked GPI mode.
  • RMI4 S3706A F12_DATA_BASE (d1_off=0) + DATA15 obj_attention + F01 wake/IRQ init publish multi-touch events via SweetHIDTouch (aligned 1:1 to 1080x2400 scaled display with fOffX=0, fOffY=0); sweet_keys.c publishes PON/GPIO buttons via SweetHIDButtons.

操作步骤 ​

  • Boot with sweettouch=1 sweettouchdelay=3 sweetkeys=1 and verify S3706A probe (0x20), SpringBoard swipe/tap coordinates, and physical key HID delivery.

开发经验 ​

  • TrustZone locks QUPv3 SE17 to GPI DMA mode (GENI_IF_DISABLE_RO 0x64=0x1) and GCC wrap2 s_ahb_clk (0x1e008) is HWCG-gated; software I2C bitbang on TLMM SOUTH GPIO 55/56 after PM8150L GPIO5 high enables reliable 10ms multi-touch polling.
  • OPPO S3706A F12 stores finger slots directly at F12_2D_DATA_BASE (d1_off=0) and obj_attention at f12_d+3, verified with real finger swipes and 1:1 scaled UI unlock/Settings/App Library navigation on hardware.

完成条件 ​

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

当前范围 ​

  • Touch runs in 10ms polled bitbang mode rather than interrupt-driven TLMM IRQ 122.

下一步 ​

  • Optional: wire TLMM GPIO 122 interrupt trigger to reduce idle I2C polling.

证据 ​

GPU ​

planned

硬件与依赖 ​

  • Qualcomm Adreno 640 v2 (SM8150-AC bin, up to 675 MHz, chip-id 0x06040001, 1 MiB GMEM).
  • MMIO windows: kgsl_3d0 0x02c00000 (0x40000), GMU 0x02c6a000 (0x30000), RSCC 0x02c8d000 (0x2000), PDC 0x0b290000 / 0x0b490000, GPU SMMU-500 0x02ca0000, GPUCC 0x02c90000 (0x9000), GCC 0x00100000 (0x1f0000).
  • Reserved regions: AOP CMD DB 0x85f20000 (0x20000), GPU PRR 0x85f40000 (0x10000), PIL GPU ZAP shader region 0x99515000 (0x2000).

配置 ​

  • soc:configs/sm8150.config enables CONFIG_XNU_NATIVE_ADRENO=y.
  • dts/pclm10.dts enables &gpu, &gmu, &gpu_smmu, &gpucc, and &gcc from sm8150.dtsi.
  • proprietary-files.txt lists a640_sqe.fw, a640_gmu.bin, and a640_zap.{mdt,b00,b01,b02,elf}.

操作步骤 ​

  • Stage Adreno 640 vendor firmware from PCLM10 /vendor/firmware, note the 0x99515000 ZAP PIL address on project 19081, and test GMU/CP ring initialization.

开发经验 ​

  • Because OPPO project 19081 shifts pil_region to 0x8d700000, the GPU ZAP PIL sub-region sits at 0x99515000 (size 0x2000) rather than nabu's 0x98f15000.

完成条件 ​

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

当前范围 ​

  • Adreno 640 ZAP shader physical address offset (0x99515000) must be passed to the GPU bring-up driver.

下一步 ​

  • Extract a640_* firmware blobs from PCLM10 vendor image and test Adreno 640 initialization after CPU/storage boot.

证据 ​

网络 ​

device-verified

硬件与依赖 ​

  • Qualcomm WCN3990 integrated 802.11a/b/g/n/ac 2x2 MU-MIMO Wi-Fi & Bluetooth 5.0 (BT UART on qupv3_se14_4uart @ 0x00a98000, WLAN FW PIL at 0x9b000000 size 0x00180000).
  • Synopsys DWC3 USB 3.1 Controller at 0x0a600000 behind QSCRATCH 0x0a6f8800 and SNPS Femto HS PHY @ 0x088e2000 (SMMU stream 0x140).

配置 ​

  • pil_mem in dts/pclm10.dts preserves the WLAN firmware carveout at 0x9b000000 (0x00180000).
  • scripts/apply-pclm10-sweet-overlay.py adapts sweet_usb.c GCC clocks (0x0f010/0x0f014/0x0f018/0x0f050/0x0f054), QSCRATCH UTMI-PIPE routing, PHY restore across CSFTRST, and SMMU stream 0x140 bypass for USB CDC-ECM (sweetusb=2).

操作步骤 ​

  • Boot with sweetusb=2 usbstream=0x140 qcom-usb-debug=0; verify Sweet iOS (USB Ethernet) VID 0x1209 PID 0x0001 enumeration on macOS and UDP port 5141 RX into pclm10_watchdog_thread.

开发经验 ​

  • Device-verified USB CDC-ECM networking on PCLM10: macOS enumerated Sweet iOS (USB Ethernet) on en2 (status: active, 02:00:5e:77:ee:01) and XNU received broadcast UDP port 5141 REBOOT triggering fastboot return in 7s.
  • WCN3990 uses SNOC/QMI rather than PCIe MHI and remains deferred.

完成条件 ​

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

当前范围 ​

  • USB CDC-ECM shares the single DWC3 controller with QcomXnuUsbDebug (mutually exclusive per boot); WCN3990 Wi-Fi is not yet enabled.

下一步 ​

  • Assign 192.168.7.1/24 on host en2 when using sweetusb=2 for interactive TCP/UDP traffic or nc -ukl 5140 live logs.

证据 ​

音频 ​

planned

硬件与依赖 ​

  • Qualcomm WCD934x (Tavil) audio codec over SLIMbus, dual stereo speakers (Dolby Atmos), 3.5mm headset jack, and ADSP PIL region at 0x9b200000 (size 0x01e00000).

配置 ​

  • dts/pclm10.dts preserves smem_mem (0x86000000) and adsp_region inside pil_mem (0x9b200000, 0x01e00000).

操作步骤 ​

  • Defer audio subsystem bring-up until interactive UI and touch input are verified.

开发经验 ​

  • ADSP firmware carveout is located at 0x9b200000 (30 MiB) in android-pclm10.dtb.

完成条件 ​

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

当前范围 ​

  • ADSP GLINK/APR and WCD934x codec drivers are not implemented.

下一步 ​

  • Defer until after display, storage, and touch bring-up.

证据 ​

按下一步操作收集证据。

电源 ​

device-verified

硬件与依赖 ​

  • PM8150 (SID 0), PM8150B (SID 2 SMB5 @ 0x1000..0x1300), and PM8150L (SID 4) PMICs over SPMI (0x0c440000 / 0x0e600000 / 0x0c40a000); RPMh RSC at 0x18220000 and AOP CMD DB at 0x85f20000.
  • Dual-cell (2S) 4000 mAh battery with TI BQ27541 fuel gauge (oplus,bq27541-battery @ 0x55) on qupv3_se15_i2c (TLMM EAST 0x03500000 GPIO 27 SDA / GPIO 28 SCL, dtbo fragment@65) and STM8S fast-charge MCU @ 0x26.
  • Awinic AW8697 LRA haptic actuator (awinic,aw8697_haptic @ 0x5a) on qupv3_se7_i2c (TLMM SOUTH GPIO 98/99, dtbo fragment@51).

配置 ​

  • scripts/apply-pclm10-sweet-overlay.py enables SPMI SID 2 reads in bsd/dev/sweet_spmi.c and reads BQ27541 via TLMM EAST GPIO 27/28 bitbang + PM8150B SMB5 (0x1310, 0x110b, 0x1006, 0x1007, 0x100d) in SweetBattery.cpp.
  • sweet_rpmh.c votes L11C (ldoa17 3000 mV) via RPMh TCS0 ACTIVE for touch power.

操作步骤 ​

  • Boot with sweetbattery=1 and verify BQ27541 voltage/SOC/current, PM8150B SMB5 USB/charging state, RPMh ldoa17 TCS0 completion, and SpringBoard status-bar charging icon.

开发经验 ​

  • dtbo.img fragment@65 confirmed BQ27541 @ 0x55 is wired to qupv3_se15_i2c (TLMM EAST 0x03500000 GPIO 27/28), not qupv3_se1_i2c (GPIO 114/115).
  • Device-verified dual-cell BQ27541 readout (raw 8633 mV -> 4316 mV/cell, SOC 100%, 0 mA) and PM8150B SID 2 SMB5 telemetry (usb=0x10, path=0x95, chg=0x47), reflected by the live Lock Screen charging indicator.
  • Device-verified BQ27541 bq_recover() 9-clock SCL recovery yielding mv_ok=1(8623) soc_ok=1(100) on poll 0 and AW8697 LRA haptic probe (err=0 id=0x97) + BY_DRV_TIME boot tap (glb=0->0) on 34d5cb55.

完成条件 ​

  • Declared power controls and battery readings match observations; RPMh rail voting completes cleanly.

当前范围 ​

  • Sleep/resume S2R and 65W SuperVOOC protocol negotiation with STM8S (0x26) remain unimplemented; I2C bitbang uses polled GPIO 27/28.

下一步 ​

  • Optional: expose AW8697 IOKit haptic trigger service once CoreBrightness display backlight verification completes.

证据 ​

镜像组装 ​

device-verified

组件: XnuPrelink, AppleKeyStoreState.

硬件与依赖 ​

  • Android v2 boot.img (SIZE_32MB UEFI FD + patched DTB) + FAT32 payload.img carrying rebased kernel.development.sweet (xnu-8796 ios-sweet) and pclm10-sweet.adt.
  • PANIC_LOG_BASE = 0x17E000000 in scripts/mkadt-sweet-pclm10.py sits in DDR Bank 2 above 2816 MiB RAM (0x174800000) and below PStore (0x17FE00000).

配置 ​

  • .github/workflows/sweet-16k.yml builds kernel.development.sweet on macos-15-intel (with Xcode 15) from pinned ios-sweet + scripts/apply-pclm10-sweet-overlay.py + QcomXnuUsbDebug.
  • scripts/build-sweet-boot.py builds pclm10-sweet.adt, rebases the Mach-O kernel, packs FAT32 payload.img, and emits boot-sweet.img.

操作步骤 ​

  • Build kernel via sweet-16k.yml, assemble boot-sweet.img with scripts/build-sweet-boot.py, and flash to Android boot partition via fastboot flash boot.

开发经验 ​

  • Switching sweet-16k.yml xnu job to macos-15-intel resolves arm64 runner capacity stalls (~12-13 min kernel build).
  • Raising PANIC_LOG_BASE to 0x17E000000 in scripts/mkadt-sweet-pclm10.py clears DDR Bank 1+2 for 2816 MiB XNU DRAM without overlapping PStore.
  • scripts/apply-pclm10-sweet-overlay.py populates all 9 mandatory iOS 16 CoreBrightness calibration keys in AppleARMBacklight and adds Control Center brightness slider autoswipe gestures (6/7) for automated backlight verification.

完成条件 ​

  • Kernel and boot-sweet.img build cleanly, fit the 100 MiB Android boot partition, and boot on PCLM10 hardware.

当前范围 ​

  • Local Linux/macOS python3.9 lacks stdlib tomllib required by UniXNU/scripts/porting-record.py; CI porting-record.yml runs validation on Ubuntu 26.04 Python 3.12+.

下一步 ​

  • Keep final interactive boot-sweet.img (CI 43144689220, sha256 06b2daf5927137b231a68293e989ed894ae008bcedcff98be1e576ed40e9e404) synced with any future GPU/Wi-Fi/audio milestones.

证据 ​

诊断 ​

device-verified

硬件与依赖 ​

  • QcomXnuUsbDebug CDC-ACM USB console (VID 0x1209 / PID 0x316d, serial QcomXnuUsbDebug), QcomUsbControl (2048-byte replies, HELLO/STATUS/REBOOT/SCREENSHOT/SHOTNEXT), and QcomUsbScreenshot (768-byte RLE RGB chunks).
  • Pclm10BootReset.c fastboot reboot via IMEM restart_reason (0x146bf65c), PM8150 PON spare, and PS_HOLD.

配置 ​

  • scripts/xnu_usb_control.py sets REPLY_BYTES = 2048 and scripts/screenshot-xnu-usb.py accepts MAX_CHUNK = 768 matching QcomUsbControl.h / QcomUsbScreenshot.h.
  • scripts/apply-pclm10-sweet-overlay.py hooks bsd_autoconf USB worker, pclm10-autoreset, pclm10-panic-reset, and UDP 5141 watchdog reset.

操作步骤 ​

  • Boot with -v -enable_kprintf_spam serial=3 qcom-usb-debug=1 qcom-usb-ctl=1; capture logs via collect-xnu-usb.py --control-socket, grab screenshots via scripts/screenshot-xnu-usb.py, and reboot via xnu_usb_control.py reboot.

开发经验 ​

  • Upstream QUD bumped QUD_SCREENSHOT_CHUNK to 768 and SXNU_CONTROL_REPLY_BYTES to 2048, so host scripts needed REPLY_BYTES = 2048 and MAX_CHUNK = 768 to transfer 1626-byte SHOTNEXT frames without timing out.
  • QcomXnuUsbDebug kprintf tee relies on -enable_kprintf_spam to stay active before bsd_autoconf; keeping -v -enable_kprintf_spam with sweetfb_noconsole=1 preserves both live USB control and a clean GUI framebuffer.

完成条件 ​

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

当前范围 ​

  • Using QcomXnuUsbDebug disables sweetusb CDC-ECM for that boot because both share DWC3 at 0x0a600000.

下一步 ​

  • Keep xnu_usb_control.py and screenshot-xnu-usb.py synced with QUD upstream chunk sizes.

证据 ​

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