Skip to content

Lenovo TB710FU: minimal macOS 27 kernel bring-up, storage and hardware boot unqualified (limingerf) ​

limingerf/UniXNU-tb710fu

Clean native-only macOS 27 kernel build for Lenovo TB710FU. Hardware boot, prelink and macOS userspace remain unqualified.

源记录: porting.toml, cf643221155ba2cb185bf969eb5f90c8d6243d2f.

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

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

配置 ​

implemented

组件: ArmDTPlatform, ArmCpu, XnuPrelink.

硬件与依赖 ​

  • Pinned official UniXNU and XNU revisions in upstream.lock.json; the macos-27.3-26C5035r profile; the repository-local soc feed.

配置 ​

  • board.toml selects ArmDTPlatform, ArmCpu and XnuPrelink. Its explicit archive and patch arrays replace inherited arrays; preserve the recorded order.
  • The patch order is arch, device pre-OS, OS, then device XNU. The kernel configuration includes arch common and OS macOS fragments.

操作步骤 ​

    1. Resolve the pinned official checkout and profile without editing fetched source caches.
    1. Generate the selected defconfig and inspect the resolved status and component dependencies.
    1. Run the bounded native-only macOS CI build and retain the source revisions, invocation and first actual failure or kernel artifact.

开发经验 ​

  • The clean board identity matches this record. No USB or UFS controller component is selected; the local kit source currently holds a hardware-independent CDC protocol/log-ring slice.
  • The previous workspace mixes initial skeletons and later experiments. It is evidence only and is not a feed for this clean build.

完成条件 ​

  • Official record validation and resolved status pass with the intended identity, component closure, OS profile, archives and patch order.

当前范围 ​

  • Run 43844823907 passed native and strict prelink; no device boot or runtime qualification is claimed by this record.

下一步 ​

  • Capture a device checkpoint against the exact signed image hash; retain the native/PAC and hardware gates as separate work.

证据 ​

固件与启动 ​

host-verified

组件: DarwinBoot.

硬件与依赖 ​

  • A clean pinned UEFI base and reviewed TB710FU overlay; locally held stock boot-chain backups; a qualified firmware DTB and framebuffer handoff.

配置 ​

  • board.toml firmware selects the reviewed source-only TB710FU overlay on uefi-sheng 66421cb7; vendor gates remain closed.
  • A separate shared SimpleFb patch validates memory lookup, range and GOP error paths. Tb710fuKeyInputDxe reads physical PMIC status through the v7 observer and publishes SimpleTextIn; source provenance and host checks are in docs/UEFI_INPUT.md.

操作步骤 ​

    1. Check out pinned official UniXNU and uefi-sheng sources.
    1. Apply the reviewed source patch and board overlay, then run the source-policy preflight.
    1. Run the official build firmware command and inspect required GUIDs in the real nested FV/FFS volumes.

开发经验 ​

  • Previous evidence records FD base 0xA7100000, FD size 0x300000 and Android boot header version 4. These are import candidates, not clean-build verification.
  • The previous overlay disables custom display and vendor hardware DXE to preserve ABL scanout; enabling the whole vendor dependency chain was associated with loss of display.

完成条件 ​

  • A pinned firmware build preserves reviewed memory reservations and enters the intended loader with a usable log channel on this board.

当前范围 ​

  • The source-only overlay imports no proprietary firmware inputs. New hardware boot, scanout stride/format, reserved memory and EL1 PAC remain unqualified.
  • A previous UniXNU menu observation does not qualify this rebuilt FD or macOS userspace.

下一步 ​

  • The physical-key candidate passed cloud compilation and local ten-module FV verification. Next qualify physical keys on this exact FD in a separately authorized device test.

证据 ​

CPU 与中断 ​

planned

组件: ArmCpu.

硬件与依赖 ​

  • Board-specific enabled MPIDRs, PSCI method, GIC redistributor affinities, timer frequency and per-core EL1 PAC evidence.

配置 ​

  • ArmCpu is selected for compilation. No board DTS or SMP success is supplied by the native-only build.

操作步骤 ​

    1. Compare the selected stock DTB and DTBO with the pinned same-device Linux reference.
    1. Qualify the primary core, PSCI and timer before enabling secondary cores.
    1. In a later authorized device test, record each enabled MPIDR, GICR affinity, timer/IPI checkpoint and required PAC behavior.

开发经验 ​

  • The same-device reference disables physical affinities 0x100 and 0x200, leaving 0x000, 0x300, 0x400, 0x500, 0x600 and 0x700. Linux logical CPU numbering must not replace physical affinity values.
  • Previous Android evidence reports six logical CPUs and EL0 paca/pacg features. It does not establish per-core EL1 PAC operation or successful XNU SMP.

完成条件 ​

  • Every enabled core reaches its entry checkpoint with matching affinity, working local timer and IPI, and the selected arm64e requirements pass.

当前范围 ​

  • No core has been qualified by this clean project. The timer frequency and GICR mapping still require board evidence.

下一步 ​

  • Parse the selected local stock DTB/DTBO and retain a redacted CPU, PSCI, timer and GIC fact table.

证据 ​

内存与 DMA ​

planned

组件: ArmDTPlatform.

硬件与依赖 ​

  • Selected live firmware DT, DDR banks, stock reserved ranges, UEFI memory descriptors, loader allocations and DMA ownership.

配置 ​

  • The clean build has no board DTS and does not invent a DRAM window, reservation map or DMA translation.

操作步骤 ​

    1. Extract actual DDR and reserved ranges from qualified stock inputs.
    1. Compare them with the same-device reference and previous UEFI memory table.
    1. Account for all loader, display, secure firmware and DMA allocations before configuring an owned-memory window.

开发经验 ​

  • The previous handwritten minimal DTS has a zero-length memory declaration and an invalid ranges encoding; it is excluded from the clean project.
  • The previous UEFI overlay includes display demura and high-DDR reservations. Their values require comparison with this device's selected firmware DT before reuse.

完成条件 ​

  • All memory and handoff ranges are accounted for, non-overlapping and correctly attributed; each enabled DMA engine has documented addressing and cache rules.

当前范围 ​

  • No clean-project DT or DMA engine is qualified. Mainline reserved-memory alone cannot establish the live firmware DDR layout.

下一步 ​

  • Generate a range comparison from local stock DTB/DTBO and UEFI inputs without reusing the invalid handwritten DTS.

证据 ​

usb ​

host-verified

硬件与依赖 ​

  • Static DWC3/PHY/clock resources, XNU 12377 DMA and log interfaces, and host-side CDC enumeration. Current role, PHY and SMMU ownership are checked by the controller during initialization.

配置 ​

  • The device kit contains hardware-independent CDC-ACM descriptors/request validation, a bounded log ring, a fail-closed transport preflight function, and a statically allocated 64 KiB XNU console tap archive. The XNU character hooks only write RAM; no DWC3 transport or USB drain worker is selected.

操作步骤 ​

    1. Run the host protocol, ring-buffer, kernel-tap and preflight-guard tests.
    1. Build and verify the target arm64e kernel tap archive on the supported macOS runner.
    1. Implement the XNU 12377 DWC3 controller bring-up, DMA and device transport from the static board inputs; check role/clock/PHY/SMMU state inside driver initialization and refuse DMA on unsupported state.
    1. Drain buffered bytes over a validated transport and verify enumeration plus byte capture on TB710FU.

开发经验 ​

  • The TWRP DT declares DWC3 at 0x00a600000, nested stream ID 0x40, dr_mode=otg and atomic DMA. It also describes the eUSB2 PHY and clocks; these are Linux/TWRP inputs, not proof of XNU handoff state.
  • Ace 5 reports a real XNU CDC ACM log channel, but its kernel is XNU 8796; this implementation is a fresh portable protocol layer and guard, not copied controller code.
  • A local XNU patch tees console and PE kprintf characters into a bounded 64 KiB RAM ring. The ring is not connected to DWC3, so it does not yet provide a host-visible CDC port.

完成条件 ​

  • XNU reports through a host-enumerated CDC ACM port, the host captures the expected bytes without drops, and an intentional stop/panic path is separately verified.

当前范围 ​

  • No XNU target build has validated the new character hooks and ring archive yet. The ring has no DWC3 endpoint transfer, SMMU/DMA adapter, XNU USB startup hook or CDC enumeration; it does not create a host-visible COM port. The host guard tests only validate caller-provided state and do not read TB710FU hardware.

下一步 ​

  • Run the supported native kernel build to verify the character hooks, then implement and build the board-specific USB 2 device transport with early role, PHY, clock and SMMU checks.

证据 ​

存储与根卷 ​

planned

硬件与依赖 ​

  • UFS controller and PHY resources, clocks, resets, supplies, SMMU stream, actual LUN/block geometry and an approved root-volume layout. Runtime DMA and queue ownership are checked by the driver during initialization.

配置 ​

  • No UFS component, root partition, persistent Data region or storage write path is selected for the native-only build.

操作步骤 ​

    1. Reconcile the same-device UFS source with the pinned SM8650 Linux DTS and TWRP block sample.
    1. Adapt and build the NativeUfs controller path; have its initialization verify power, link, SMMU, DMA and queue ownership before issuing a read-only known-block command.
    1. Review root and persistent Data layout independently before any storage write work.

开发经验 ​

  • The TWRP FDT and pinned Linux DTS declare SM8650 UFS host 0x01d84000, PHY 0x01d80000 and stream ID 0x60; the FDT also declares ICE/MCQ resources and fastmap DMA. These do not prove XNU queue ownership, live SMMU mappings or DMA coherence.
  • TWRP read-only sample: user LUN /dev/block/sda, 4096-byte logical blocks, GPT-header LBA 1. The 4096-byte sample CRC32 is 44b9c49a and its GPT header CRC validates; this is not an XNU read result.
  • The host-only UfsReadProbe contract covers DMA mapping checks, idle-queue takeover, READ(10), quiescence, restoration and quarantine. It has no XNU register/DMA callbacks and is not a prerequisite probe or hardware driver.
  • The optional ufs-source workflow compiles pinned ShengUfs with a device patch accepting qcom,sm8650-ufshc. Its archive is not linked into the native kernel; runtime ownership, DMA and reads are unverified.
  • Owner-signed OS, SystemOS and App root policies now pass VerifiedRoot C signature and full block verification, and their raw .vroot tables are present in a rebuilt SHNGROOT v2 userdata image. This is host-only validation and is not consumed by the current TB710FU kernel configuration.
  • Previous Android inventory reports 4096-byte logical and physical blocks. The previous Android userdata uses F2FS with file and metadata encryption; filesystem free space does not establish free GPT space or a safe shrink path.

完成条件 ​

  • Controller, link and DMA qualify; known blocks and capacity match the device; the selected root mounts and launchd starts; persistence is tested separately if implemented.

当前范围 ​

  • The source archive is a compile audit only and is not linked into the kernel. No XNU UFSHCI/SMMU reader, DMA ownership result, queue takeover, known-block read, media publication or root mount is qualified. The official source-storage bridge files are not present in this device repository. The userdata image has not been flashed; no partition, format or device write has been performed.

下一步 ​

  • Add and review the board-owned SourceStorage, SourceRootPolicies and SourceRootBinding bridge against the pinned framework recipe, then link an archive only after the native compiler records and policy handoff pass. Validate firmware ownership, DMA and a read-only LBA 1 result on-device before selecting UFS at boot.

证据 ​

显示 ​

planned

硬件与依赖 ​

  • Preserved ABL framebuffer address, size, stride, format and orientation; NT36532 dual-DSI/DSC resources and board backlight supplies.

配置 ​

  • No GOP framebuffer, DSI, backlight or presentation component is selected for this native-only build.

操作步骤 ​

    1. Establish a stable firmware scanout and its actual framebuffer geometry.
    1. Match the selected XNU framebuffer interface and OS ABI.
    1. Add panel or backlight operations only after basic framebuffer output is qualified.

开发经验 ​

  • The mainline panel reference is NT36532, 3200 by 2000, dual DSI and DSC. Source timing parameters do not establish ABL stride or XNU presentation.
  • The previous vendor-DXE experiment could overwrite ABL display state, so its full driver chain is not imported.

完成条件 ​

  • A known frame has correct geometry and colors; userspace presentation and brightness each pass their own checks.

当前范围 ​

  • No clean-build framebuffer or panel result exists.

下一步 ​

  • Document a qualified firmware framebuffer descriptor before choosing a display component.

证据 ​

输入 ​

planned

硬件与依赖 ​

  • Novatek SPI touch protocol, IRQ/reset wiring, firmware source, contact reporting and display coordinate mapping; button and accessory protocols.

配置 ​

  • No XNU input component is enabled. UEFI-only Tb710fuKeyInputDxe is implemented in the board firmware overlay; volume keys map to Up/Down and power maps to Enter.

操作步骤 ​

    1. Review the same-device SPI driver and firmware-loading sequence.
    1. Match the target OS HID interface before implementing a provider.
    1. Qualify contact IDs, release events, coordinates and buttons separately.

开发经验 ​

  • The same-device board declares novatek,NVT-ts-spi on SPI4. Its Linux configuration selects TOUCHSCREEN_NT36532_SPI rather than the different novatek-nvt-ts driver.

完成条件 ​

  • Multiple contacts keep stable IDs, releases arrive, coordinates match the display and declared buttons emit correct HID reports.

当前范围 ​

  • The UEFI physical-key provider has host-model verification only; it has not run on this device. Touch, XNU HID buttons, keyboard and stylus remain unimplemented. UEFI SimpleTextIn and Linux support do not establish XNU HID support.

下一步 ​

  • Record the exact touch firmware and protocol dependencies before selecting or porting an input component.

证据 ​

GPU ​

planned

硬件与依赖 ​

  • Adreno 750 GPU/GMU revision, signed firmware, power ownership, SMMU/DMA mappings, submission and fence interfaces, target Metal ABI.

配置 ​

  • No GPU, GMU, Metal or GPU presentation component is selected.

操作步骤 ​

    1. Compare hardware and firmware requirements of existing implementations.
    1. Qualify mapping and a bounded submission before enabling rendering.
    1. Qualify the macOS frontend and presentation independently.

开发经验 ​

  • Linux GPU support is a hardware reference only. A different OS's successful Adreno submission does not qualify macOS 27 Metal or class layouts.

完成条件 ​

  • A known submission completes with correct mappings and fences, then a selected macOS client renders and presents a known image.

当前范围 ​

  • GPU work is deferred until the native build and basic boot are qualified.

下一步 ​

  • Keep GPU dependencies disabled during compiler and linker diagnosis.

证据 ​

网络 ​

planned

硬件与依赖 ​

  • WCN7850 PCIe Wi-Fi and UART Bluetooth resources, firmware provenance, interrupts, DMA and target OS network interfaces.

配置 ​

  • Wi-Fi, Bluetooth and their firmware loaders are not selected.

操作步骤 ​

    1. Verify the exact board firmware and power dependencies.
    1. Match each controller to an existing component interface and target ABI.
    1. Qualify firmware boot, transport and sustained traffic independently.

开发经验 ​

  • The mainline board describes WCN7850 with Wi-Fi on PCIe and Bluetooth on UART14. Linux ath12k support is not a native network implementation.

完成条件 ​

  • Wi-Fi scans and associates with sustained transmit/receive traffic; Bluetooth transport and selected profiles pass separate tests.

当前范围 ​

  • No clean-project network implementation or device result exists.

下一步 ​

  • Defer wireless implementation until the native-only kernel and initial boot are resolved.

证据 ​

cellular ​

planned

硬件与依赖 ​

  • A confirmed SKU modem/SIM inventory before declaring cellular applicable or not applicable.

配置 ​

  • No modem, QRTR/QMI, IPA/QMAP or cellular session provider is selected.

操作步骤 ​

    1. Establish the actual board's modem and SIM scope from qualified evidence.
    1. Mark this area not-applicable only if the hardware inventory supports that conclusion; otherwise keep its firmware and interface work separate.

开发经验 ​

  • Cellular capability is not inferred from the presence of generic modem reservations in a shared SoC description.

完成条件 ​

  • The SKU scope is documented; applicable registration and data-session claims have their own evidence.

当前范围 ​

  • Cellular hardware is not assessed in the clean native-only task.

下一步 ​

  • Record the SKU's radio scope before any cellular implementation or not-applicable classification.

证据 ​

按下一步操作收集证据。

音频 ​

planned

硬件与依赖 ​

  • ADSP firmware/services, WCD9395 codec, four AW88461 amplifiers, clocks, power supplies and route configuration.

配置 ​

  • No audio, DSP, codec or amplifier component is selected.

操作步骤 ​

    1. Reconcile the board's DSP and codec source requirements.
    1. Match the target OS audio interface and firmware services.
    1. Qualify each playback and capture route, including start and stop.

开发经验 ​

  • The mainline reference describes WCD9395 and four AW88461 amplifiers; its ASoC routes and UCM data are reference inputs rather than XNU drivers.

完成条件 ​

  • Each declared route carries the intended format through playback or capture and handles start/stop without unsafe output.

当前范围 ​

  • No clean-project DSP boot or audio route is qualified.

下一步 ​

  • Keep audio dependencies out of native kernel build diagnosis.

证据 ​

电源 ​

planned

硬件与依赖 ​

  • Board PMIC/regulator inventory, clock and firmware ownership, battery units and evidence for each proposed state transition.

配置 ​

  • No board PMGR, clock, battery, suspend or secondary-CPU power provider is selected.

操作步骤 ​

    1. Map each requested operation to actual hardware and its current owner.
    1. Qualify the macOS 27 interface before implementing operations.
    1. Test each implemented state transition with its dependent devices.

开发经验 ​

  • The previous reference's ShengPlatformPower is an OS-specific ABI qualification fixture with unsupported hardware methods. It must not be imported as a functioning power driver.

完成条件 ​

  • Each advertised power operation and battery reading matches hardware observations, with explicit limits on unsupported transitions.

当前范围 ​

  • No PMGR class sizes, vtable slots, empty success stubs or power claims are carried into this clean project.

下一步 ​

  • Review a target-ABI implementation only when a specific boot requirement establishes the need.

证据 ​

镜像组装 ​

planned

组件: XnuPrelink.

硬件与依赖 ​

  • Pinned macOS 27.3 profile and XNU source, supported macOS runner, selected ABI and complete native archive plan. Later prelink needs separately qualified IPSW members.

配置 ​

  • The immediate artifact is the native-only kernel. XnuPrelink is selected as a build tool but a completed prelink, payload, boot image or userspace is not claimed.

操作步骤 ​

    1. Run one bounded native-only cloud build with the recorded official inputs.
    1. Verify the actual kernel artifact and preserve its hash and build log.
    1. Treat prelink, Data seed, trust caches, firmware, payload and image assembly as subsequent gates with their own inputs and evidence.

开发经验 ​

  • The target profile is macos-27.3-26C5035r. A successful native link does not establish compatibility with a prelinked Apple image or successful device boot.
  • The ordered device XNU series also carries diagnostic reporter mappings and switch markers; they remain diagnostic-only and do not establish device boot.

完成条件 ​

  • The native kernel artifact is reproducible and identified by hash; every later image stage meets its own official format and ABI checks before being reported complete.

当前范围 ​

  • No stock firmware, IPSW member, signing key, platform seed or device image is committed. Native-only CI does not authorize flashing.

下一步 ​

  • Attach the bounded cloud run and actual kernel artifact result to this area after the run completes.

证据 ​

诊断 ​

planned

硬件与依赖 ​

  • Complete source revisions, bounded CI logs and artifact hashes; later device logs identifying firmware, image and the last confirmed stage.

配置 ​

  • hardware.toml is an evidence inventory, not a UniXNU runtime configuration. docs/HARDWARE.md separates historical observations from clean-project qualification.

操作步骤 ​

    1. Run the official porting-record checker against this repository.
    1. Preserve the first actual CI failure and diagnose it before another build.
    1. Add device evidence only after a separately authorized test, recording firmware/image identity and an actual checkpoint.

开发经验 ​

  • Run 43844823907 passed native build, strict prelink and the production parser. The diagnostic models, QR render/decode and fixed OneSend receiver pass for the recorded stages.
  • The device reporter changes in patches/xnu/0006 and 0009 preserve diagnostics across the fileset and switch boundary; they are observability changes, not a functional MMU fix.
  • The TWRP GPT-header sample is a read-only Linux/TWRP storage baseline and is not an XNU UFS result.
  • The user supplied a guard11-labelled hardware report, src-eff36305-guard11, with STAGE=56 and XNU returned: tb710fu_ramoops_init at physical zone 0x93ff00000. This is evidence of reaching that early-kernel checkpoint, not root-volume or userspace boot.
  • No device partition hash binds the report to the exact signed guard11 pair. The ramoops header/content and cross-reset retention remain unverified; the signed pair's independent RSA and payload readback checks passed.

完成条件 ​

  • Each reported milestone has a reproducible invocation, full source revision and accessible matching evidence; secrets and personal identifiers remain excluded.

当前范围 ​

  • The guard11-labelled stage-56 report has no matching device partition hash. Valid ramoops contents/retention, root-volume mount, native UFS operation and macOS userspace remain unqualified.

下一步 ​

  • Use the stage-56 report as the current early-kernel checkpoint; verify the exact booted image and capture ramoops contents, then continue the native storage/root-volume bring-up on main.

证据 ​

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