Skip to content

Lenovo Legion Y700 Gen 4 (zenkernelsam) ​

zenkernelsam/UniXNU_elden

v156 adds verified UFS automatic idle/wake and restoration to the v15532-slot direct-DMA path. Charging cycles/net power, wireless, persistence, memory and remaining peripherals are incomplete; GPU is separate offline work.

Source record: porting.toml, 26fab31193c814c793a5fa1c4d10f1b6dc7b2602.

This page is generated from the device record.

AreaStatus
Configurationhost-verified
Firmware and bootdevice-verified
CPU and interruptsimplemented
Memory and DMAimplemented
Storage and rootimplemented
Displayimplemented
Inputimplemented
GPUplanned
Networkimplemented
Audioplanned
Powerimplemented
Image assemblydevice-verified
Diagnosticsdevice-verified
network-initializationdevice-verified
memory-window8device-verified
spmi-adc-bt-serializationhost-verified
spmi-hci-v114implemented

Configuration ​

host-verified

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

Hardware and dependencies ​

  • Use the ARM64 and iPadOS 17.7.11 profiles supplied by UniXNU.
  • Select the shared platform, CPU and DarwinBoot components.
  • Provide an SM8750 profile until an official shared SoC repository exists.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Frozen v91 source profile imported and verified.

Completion criteria ​

  • board.toml resolves four ordered configuration layers.
  • All selected components come from the UniXNU catalog and include their dependencies.
  • No array field depends accidentally on inheritance.
  • The SoC source is a reviewed remote commit and unixnu.lock records it.

Current limits ​

  • Default board/lock remains the historical early profile; no clean final boot reproduction yet.

Next action ​

  • Finish clean full-kernel and packaging dependency closure.

Evidence ​

Firmware and boot ​

device-verified

Components: DarwinBoot.

Hardware and dependencies ​

  • mu_wide_platforms lenovo-y700g4 UEFI source and patched PMIC binaries.
  • UniXNU, UniXNUDxe, DarwinBoot and EldenRamDiskDxe firmware modules.
  • A 4 MiB FAT16 payload containing package/unixnu.toml.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Existing UniXNU menu, payload handoff and recovery firmware boot the v91 kernel.

Completion criteria ​

  • Firmware contains UniXNU, UniXNUDxe, DarwinBoot and the RAM payload driver.
  • The payload config is readable and the menu accepts volume-key input.
  • Two RAM boots produce the same visible checkpoint and do not modify persistent partitions.

Current limits ​

  • Not a claim that every firmware configuration or KShimC route is qualified.

Next action ​

  • Retain frozen firmware inputs and finish portable build mapping.

Evidence ​

CPU and interrupts ​

implemented

Components: ArmCpu.

Hardware and dependencies ​

  • SM8750 MPIDRs 0x0, 0x100, 0x200, 0x300, 0x400, 0x500, 0x10000 and 0x10100.
  • GICv3 distributor 0x16000000, redistributor base 0x16080000 and stride 0x40000.
  • 19.2 MHz architectural timer and PSCI SMC conduit.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • CPU8 source configuration, identity/IRQ changes and guarded startup are captured in v91.

Completion criteria ​

  • The boot CPU reaches the ArmCpu checkpoint.
  • GIC distributor and its own redistributor frame map successfully.
  • Timer handling works before secondary cores or IPI transport are qualified.

Current limits ​

  • Configured CPUs do not prove sustained online load or explain UI stalls.

Next action ​

  • Measure online CPUs, scheduler/IRQ progress and actual latency with the UI workload.

Evidence ​

Memory and DMA ​

implemented

Components: ArmDTPlatform.

Hardware and dependencies ​

  • The owner-captured live elden FDT, including the 12 GiB RAM map, initrd and reserved-memory nodes.
  • The pinned Linux 16 GiB variant and the elden UEFI static memory map.
  • A conservative 256 MiB XNU handoff window in UEFI DXE conventional memory.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • v91 retains the validated high-address RAM configuration.

Completion criteria ​

  • The ADT contains exactly one continuous memory range.
  • The range is covered by live firmware RAM and avoids recorded reservations, initrd, GOP and UEFI FD.
  • DarwinBoot and the UEFI exit map confirm that same range is conventional memory before XNU entry.

Current limits ​

  • Full 16GB adoption and memory stress are incomplete.

Next action ​

  • Keep frozen memory inputs during UI work; expand after map qualification.

Evidence ​

Storage and root ​

implemented

Components: ShengUfs.

Hardware and dependencies ​

  • SM8750 UFS host at 0x1d84000 (+0x3000) and QMP PHY at 0x1d80000 (+0x2000), both described by the same-device Linux tree sm8750-lenovo-elden.dts and sm8750.dtsi pinned at bf96c3d4048973298ede78487177c6f1b4f6bc0f.
  • Controller resources: GIC_SPI 265 level-high, 8 GCC/RPMh clocks, GCC_UFS_PHY_BCR, GCC_UFS_PHY_GDSC, apps_smmu stream 0x60, lanes-per-direction 2, ICE crypto@1d88000.
  • PHY resources: RPMH_CXO_CLK, GCC_UFS_PHY_PHY_AUX_CLK, TCSR_UFS_CLKREF_EN, GCC_UFS_MEM_PHY_GDSC.
  • Board supplies and reset: PHY vreg_l1j_0p91 and vreg_l3g_1p2, host vreg_l17b_2p5 (1.3 A) and vreg_l1d_1p2 (1.2 A), reset GPIO tlmm 215 active-low.
  • 4 KiB logical-sector partition geometry and a root-volume UUID, both owner-supplied and read-only.
  • v152 IRQ binding uses ArmadaOS TB322FC -> h0cheung6f97250ead155fc3b980856323e99a4623dae73d sm8750.dtsi SPI265/INTID297; inherited transport/DMA ownership is unchanged.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • UFS-backed iPadOS root, RAM Data, launchd and Settings have run.
  • v149 declares the existing UFS windows and RAM Data nonrotating. The actual iPadOS17 ioctl path reports isssd=1 for all three BSD units; transport remains single-slot polling and RAM remains volatile.
  • v152 keeps the single slot but enables completion IRQ and bounded scheduler-aware waiting. Both whole-image pins and64 paired hashes/128 samples passed, with128 sample IRQs/5 IRQ wakes. Entire session2114 sleeps/wakes and no wait timeouts; root and stock Android restored. Warm QD1 latency did not show a consistent speedup. The current block-hash tables already reside entirely in protected RAM.
  • v155 enables32 slots, a qualified independent NC request list and prepared driver-owned direct DMA. Both whole-image pins and48 batches/1536 commands/16 matched datasets passed; actual outstanding doorbells peaked27. Fixed-order QD32 128KiB reads recorded2430-2837MiB/s; cache/order bias prevents a causal speedup or GUI claim. Stock restoration passed.

Completion criteria ​

  • Controller and PHY initialize.
  • Read-only capacity, GPT and known-block checks match the device.
  • The configured OS volume mounts and launchd starts.

Current limits ​

  • Persistent Data and UFS performance are not fully qualified.
  • v155 has not qualified sustained pressure, BUSY/TASK_SET_FULL retry policy, CPU utilization or UI latency. Diagnostic batch reads should not recur in unrelated candidates.

Next action ​

  • Retain the verified queue/DMA path and remove diagnostic batch calls in the next feature build; continue Wi-Fi hardware integration. Qualify stress, CPU/UI latency and persistence separately rather than repeating the completed QD trial.

Evidence ​

Display ​

implemented

Components: GopFramebuffer, AppleKeyStoreState.

Hardware and dependencies ​

  • 1904x3040 bonded dual-DSI panel with DSC.
  • UEFI GOP framebuffer and splash reservation.
  • SM8750 DPU/DSI/PHY and backlight sequencing.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • v91 renders a populated Settings page with the owned CPU graphic-variant helper.

Completion criteria ​

  • XNU paints a known pattern through a declared framebuffer handoff.
  • Userland presentation and backlight transitions work.

Current limits ​

  • Display fluidity and v92 framebuffer mapping remain unqualified.

Next action ​

  • Qualify v92 offline, then use one meaningful display/input function test.

Evidence ​

Input ​

implemented

Components: ShengHidInput.

Hardware and dependencies ​

  • Novatek SPI touch on SPI4 and GPIO 162 interrupt.
  • Volume and power keys used by the UEFI menu.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • One software swipe and one short Settings tap reached the real Settings UI in v91.

Completion criteria ​

  • Touch coordinates map to the display.
  • Contact IDs, releases and multi-touch remain stable.
  • Buttons produce expected HID events in XNU.

Current limits ​

  • Physical finger accuracy, ghost-touch rejection and consistent gestures remain incomplete.

Next action ​

  • Correlate a real touch with raw contact, HID event and UI response in one bounded session.

Evidence ​

GPU ​

planned

Hardware and dependencies ​

  • Adreno 830 / gen80000.
  • GPU firmware, power votes, SMMU and display integration.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Reference sources and inactive experimental components are preserved.

Completion criteria ​

  • GPU submissions, fences and mapping work.
  • A known image renders and Metal presentation is visible.

Current limits ​

  • No GPU daily-use qualification.

Next action ​

  • GPU last, after basic peripherals and CPU display are usable.

Evidence ​

Network ​

implemented

Hardware and dependencies ​

  • WCN7861 Wi-Fi/Bluetooth shared power, transport and firmware.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Board resources, firmware inspection and partial Wi-Fi/Bluetooth transport components exist.

Completion criteria ​

  • Wi-Fi authentication/IP/traffic; Bluetooth pairing/audio/HID and persistent credentials.

Current limits ​

  • Wi-Fi connectivity and Bluetooth pairing/continuous operation are not accepted.

Next action ​

  • Follow sheng-proven driver interfaces with TB322FC-specific ArmadaOS register evidence.

Evidence ​

Audio ​

planned

Hardware and dependencies ​

  • Original ADSP/DTB, WCD9395 and AW88461 board resources.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Reference work retained; no new speaker enablement.

Completion criteria ​

  • Protected playback, microphone capture, system routing and sustained audio.

Current limits ​

  • Speaker gain and electrical protection are not qualified.

Next action ​

  • Discuss attenuation and protection before enabling speaker output.

Evidence ​

Power ​

implemented

Hardware and dependencies ​

  • PM8550-class PMIC, RPMh resources and device power domains.
  • Volume and power key behavior.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • Battery/backlight, OEM ADSP/GLINK, UCSI notifications and controlled PD procedures have hardware evidence.
  • v156 enables the stock-observed5000us UFS auto-Hibern8 timer with owned clock-request bits and error handling.32 hardware enter/exit cycles and authenticated reads passed; controller restoration, sync/reset and stock Android recovery passed.

Completion criteria ​

  • Declared power controls match readings.
  • Sleep/resume or shutdown transitions restore dependent peripherals.

Current limits ​

  • Shared 500mA, complete fast charging, bypass, charge windows and all dual-port failure cases remain open.
  • UFS low-power entry is not whole-system sleep or measured tablet energy savings. Read-after-idle latency was0.8-1.0ms; high-SOC current and log loss do not establish net charging.

Next action ​

  • Use decision-changing functional tests; do not repeat the rejected GLINK write path.

Evidence ​

Image assembly ​

device-verified

Hardware and dependencies ​

  • iPad7,1 iPadOS 17.7.11 build 21H461 restore inputs.
  • Target kernelcache, XNU 10063.141.1, DriverKit and TrustCache ABI inputs.
  • Android v3 RAM-boot image, a 4 MiB phase 1 embedded FAT payload and a measured 56 MiB phase 2 candidate.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • v91 boot image ran; rollback floor and full-image identity are recorded.

Completion criteria ​

  • All format 2 build steps run from the resolved output directory.
  • The payload contains the kernel, ADT and declared optional inputs.
  • The boot image matches the ABL header and size limits.

Current limits ​

  • A clean source-to-final-boot rebuild is not yet validated.

Next action ​

  • Close source/external-input dependency graph before presenting a one-command build.

Evidence ​

Diagnostics ​

device-verified

Hardware and dependencies ​

  • RAM-only owner-operated boot procedure.
  • Build and artifact SHA-256 values.
  • UEFI screen output and recovery path.

Configuration ​

  • Frozen v91 inputs and explicit experimental v92 separation; see docs/REPRODUCIBILITY.md.

Procedure ​

  • Follow docs/PLAN.md and retain identity, fresh power, floor and full SHA admission.

Development findings ​

  • USB kernel logs, frame readback, session-bound RPC and directed fastboot recovery work.
  • v150 moves the existing Gunyah arming before kernel UFS work and adopts it at unchanged SMP readiness. Normal startup and an interrupt-masked pre-UFS stall both returned to fastboot and restored Android; firmware/earlier-kernel coverage is not claimed.

Completion criteria ​

  • Every claimed checkpoint has a reproducible command, image hash and visible result.
  • Failures reach a diagnosable screen or log instead of a silent hang.

Current limits ​

  • v91 whole capture dropped 24 bytes; counted raster records and Settings frame CRC were retained.

Next action ​

  • Preserve the recovery path and measure rather than infer CPU/UFS stalls.

Evidence ​

network-initialization ​

device-verified

Components: XnuPrelink, IONetworkingFamily.

Hardware and dependencies ​

  • Original iPadOS17 21H461 kernelcache and its IONetworkingFamily3.4; the frozen v107/v108 profiles.

Configuration ​

  • v108 adds the original network family to prelink roots and retains its IOResources/IOBSD personality; it does not create a network interface.

Procedure ​

  • Follow profiles/v108-network-family/README.md, audit the original family extent, then inspect the six IOKit snapshots and full stock-restoration record.

Development findings ​

  • v107: six complete busy0/AES-only snapshots. v108: exact original21H461 family added; six snapshots show real IONetworkStack and AES, busy0.

Completion criteria ​

  • The real IONetworkStack registers without a dummy MAC/interface; Wi-Fi scan, association and traffic are separate unfinished requirements.

Current limits ​

  • No WLAN/Ethernet interface; About latency not measured in v108. Capture dropped36 bytes.

Next action ​

  • Measure userland initialization when useful and continue qualified RAM expansion; no fake network readiness.

Evidence ​

memory-window8 ​

device-verified

Components: DarwinBoot, ArmDTPlatform.

Hardware and dependencies ​

  • TB322FC EFI memory map, the v108 parent and three coherent bootstrap objects recorded in profiles/v109-memory8.

Configuration ​

  • The separate v109 GUI profile manages8GiB with24 page-table-pool pages; current Bluetooth/PD profiles still use6GiB.

Procedure ​

  • Follow profiles/v109-memory8/README.md and inspect its window, entry, original-Apple-region and captured GUI/stock-restoration checks.

Development findings ​

  • Real EFI allocation and XNU8GiB window; three coherent bootstrap objects,24page pool and31 original Apple text extents audited. Software Settings/General frame CRCb92cfd0a validated.

Completion criteria ​

  • The requested EFI allocation and kernel window agree, root/GUI and recovery work; this does not qualify16GiB or every page under stress.

Current limits ​

  • Not16GiB, full-page stress, About-latency or physical-finger acceptance. Home transition artifacts remain. Final capture drop10; damaged frame12 rejected.

Next action ​

  • Keep8GiB baseline and evaluate KVA/EFI reservations before larger windows or outside-page adoption.

Evidence ​

spmi-adc-bt-serialization ​

host-verified

Components: EldenPmicGlink, EldenBluetooth.

Hardware and dependencies ​

  • Frozen v110 ADC and Bluetooth readers, the same-board Linux transaction-serialization contract and the EldenSpmi transaction gate.

Configuration ​

  • One shared provider serializes complete ADC and Bluetooth SPMI transactions; this area records the historical component stage.

Procedure ​

  • Run tools/test_spmi_transaction_gate.py and build the ADC/WCN consumer components as documented in drivers/EldenSpmi; inspect host-result.json.

Development findings ​

  • Both v110 runs stop before UART with completed SPMI status9 and ADC errors. Same-board Linux serializes entire bus transactions; Elden lacked a common gate. Actual-reader host collision/error tests and four ARM64 gate components pass.

Completion criteria ​

  • The real readers use one gate, collisions and errors release it correctly; full-kernel and device qualification are recorded separately by v111.

Current limits ​

  • No full gate kernel or hardware test. FIFO hardware not reached. Status9 causality is not proved. Charging/net-current/cycles and Bluetooth remain incomplete.

Next action ​

  • Integrate one gate provider plus actual ADC and BT consumers, audit and then test thermal/WCN together.

Evidence ​

spmi-hci-v114 ​

implemented

Components: EldenPmicGlink, EldenBluetooth.

Hardware and dependencies ​

  • Qualified v111 shared SPMI consumers, v113 UART/peripheral evidence and the12-byte HCI identity response format in v114.

Configuration ​

  • v114 keeps the v113 board/firmware path and adjusts the validated response-length gate; v112 remains withdrawn.

Procedure ​

  • Follow the v111, v113 and v114 profile READMEs; inspect the frozen hardware records and preserve errors/stock recovery.

Development findings ​

  • v111 shared-bus consumers verified,54 ADC readings/thermal/WCN pass. v113 peripheral complete and real EDL response captured. v114 length12 validation fixes proven old-source rejection.

Completion criteria ​

  • The expected response is reached and accepted on hardware with clean recovery; a source fix alone is insufficient for native HCI readiness or pairing.

Current limits ​

  • v112 withdrawn for GIC address typo. Initial IBS wake remains variable. v114 did not reach its new check on hardware. No native HCI-ready/pairing or charge-policy completion.

Next action ​

  • Inspect cold-start UART synchronization and same-board Linux port-reopen sequence before further device runs.

Evidence ​

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