Gree G0345D (格力手机 G3)
Experimental GREE G0345D port. Historical M42/v185 reaches kalloc_init fixed-zone creation boundaries; complete XNU and userland startup remain unverified. This curated source snapshot does not yet reproduce its legacy firmware/container from a clean checkout.
Source record: porting.toml, 53ce24cd0e727914f4e25f32b44815cd00885774.
This page is generated from the device record.
| Area | Status |
|---|---|
| Configuration | implemented |
| Firmware and boot | planned |
| CPU and interrupts | implemented |
| Memory and DMA | implemented |
| Storage and root | planned |
| Display | implemented |
| Input | planned |
| GPU | planned |
| Network | planned |
| cellular | planned |
| Audio | planned |
| Power | planned |
| Image assembly | planned |
| Diagnostics | implemented |
Configuration
implemented
Components: SoftwareAES.
Hardware and dependencies
- GREE G0345D MSM8996 v3.1 board inputs and the ipados-17.7.11-21H461 profile.
- Pinned MSM8996 feed and tested midopix tools fork; selected shared components retain their existing IDs.
Configuration
- board.toml uses schema_version=2 and the g0345d kit/defconfig/DTS.
- Preserve all 51 active device patches and their exact series order; inherited g0245d filenames and source symbols are intentional.
- SoftwareAES is selected with source corecrypto/pthread and prelinked crypto bootstrap; functional OS crypto is not qualified.
Procedure
- Review source-pins.toml, feeds.toml, unixnu.lock and the functional source snapshot before resolving a tree.
- Use the pinned tools checkout for defconfig, fetch and status review; run the repository integrity and structured-record checks.
Development findings
- The device identity is G0345D throughout board, DTS and configuration; the inherited G0245D source names must not be globally renamed.
- Current official components.toml lacks the MSM8996-specific IDs; record validation uses the official schema with an explicitly pinned fork catalog rather than dropping selected components.
- The base commits plus retained local deltas identify provenance; they do not by themselves certify a clean end-to-end reproduction.
- Publication preserves the owner-created GitHub initial commit and archives its original license without replacing inherited source licensing.
Completion criteria
- All selected components and their catalog dependencies have structured owning areas and all referenced local evidence exists.
- Future host verification requires a complete source revision, exact command and accessible clean-checkout result.
Current limits
- Only implemented/planned levels are assigned; historical dirty-tree results do not identify a complete device-verified published revision.
- Stock upstream reusable-workflow/catalog compatibility and complete companion-firmware publication remain pending.
Next action
- Complete the companion firmware export and upstream component registration before claiming standard release or official catalog acceptance.
Evidence
source: G0345D identity, selected components and ordered source layers are configured.source: Hashes preserve the exact active functional inputs copied from the M42 worktree.source: Records the initial remote commit, archived license blob and retained source licensing.
Firmware and boot
planned
Components: DarwinBoot.
Hardware and dependencies
- Legacy edk2-msm8998 based G0345D firmware with local platform, FdtLib, SimpleInit, BootShim and DarwinBoot changes.
- Fixed FD at 0x91700000, size 0x600000; firmware-owned memory and inherited RGB888 scanout.
Configuration
- board.toml names g0345d.dsc and the GCC5 FD location as legacy metadata, not a working current Mu-Silicium recipe.
- The standard firmware integration and exact companion source delta are not yet published.
Procedure
- Read the recorded firmware baselines and missing local changes in docs/firmware-dependency.md.
- Export a separate companion firmware repository with reviewed sources, licenses, pins and a clean build recipe before resuming firmware work.
Development findings
- Historical temporary boot reached DarwinBoot-to-XNU handoff, but this device repository alone cannot reproduce that firmware state.
- The current legacy FDF retains early RAW fixtures; its ordinary build.sh output does not reproduce the frozen M42 Android v0 container.
Completion criteria
- A pinned companion repository reproduces the intended FD and loader handoff with documented lawful inputs.
- A new hardware result names the exact firmware, image and complete source revision.
Current limits
- The selected catalog DarwinBoot revision is not a complete description of the locally adapted nested firmware loader.
- PSCI, power ownership and general firmware services are not qualified as complete device functions.
Next action
- Publish the full legacy firmware delta separately and reconcile DSC/FDF and BootShim with the official release interface.
Evidence
CPU and interrupts
implemented
Components: ArmCpu, ArmDTPlatform.
Hardware and dependencies
- Four Kryo CPUs; shared affinities, GIC ranges, timer inputs and interrupt descriptions from the pinned msm8996.dtsi.
- ARMv8.0 boot-CPU target; secondary CPUs and PAN must remain disabled.
Configuration
- CONFIG_XNU_ARM_DT_PLATFORM=y and CONFIG_XNU_ARMCPU=y; CONFIG_XNU_ARMCPU_SECONDARY and CONFIG_XNU_NATIVE_PAN are unset.
- The device DTS explicitly disables cpu1, cpu2 and cpu3.
Procedure
- Review the pinned SoC DTS and resolved CPU/GIC/timer inputs together with the device overrides.
- Keep boot-CPU diagnostics stable; qualify interrupt delivery, timer behavior and GIC 3-cell specifiers before proposing SMP.
Development findings
- Historical M42 executes on the boot CPU through early VM startup into kalloc_init.
- ARMv8.1 PAN assumptions are disabled for Kryo; visible progress does not establish timer/IPI or secondary-core correctness.
Completion criteria
- Boot CPU source configuration is consistent with ARMv8.0 and the board identity.
- Functional qualification requires measured timer/IRQ delivery and, separately, secondary-core/IPI results.
Current limits
- CPU1-3, SMP, GIC/IPIs and sustained scheduling are not device-verified.
- No interactive XNU or userland execution has been reached.
Next action
- Resolve the current allocator interval before changing CPU topology; later capture timer/IRQ behavior with exact firmware and source revisions.
Evidence
source: Selects boot CPU/platform sources and disables PAN/secondary CPU gates.source: Provides the board overrides and keeps secondary cores disabled.
Memory and DMA
implemented
Components: ArmSmmu4K.
Hardware and dependencies
- 4 GiB DRAM beginning at 0x80000000 and the stock firmware/modem/peripheral/framebuffer reservations.
- ArmSmmu4K is a selected dependency of Adreno530; DMA stream ownership and controller data paths remain incomplete.
Configuration
- Keep the fixed FD reservation at 0x91700000/0x600000 and the framebuffer reservation at 0x83401000/0x23ff000.
- CONFIG_XNU_DT_PANIC_REGION=y avoids a BCM2837 fixed panic-RAM assumption.
Procedure
- Review all board and inherited SoC reservations before any memory-map change.
- Use the retained VM/framebuffer ladder and allocator probes to distinguish early mapping progress from later allocation behavior.
Development findings
- Historical framebuffer marks survive the early VM transition and M42 reaches allocator initialization.
- The current reservation overlaps and reusable/no-map pool semantics have been retained, not newly validated or reconciled during repository preparation.
- No general DMA/SMMU correctness follows from visible framebuffer probes.
Completion criteria
- Source describes the board DRAM and protected firmware windows without changing the frozen diagnostic layout.
- Complete memory qualification needs reconciled reservations, allocation progress and independently measured DMA/cache/SMMU behavior.
Current limits
- Fixed-zone creation has not been observed to return; the precise fault or progress condition is unknown.
- SMMU stream IDs, DMA widths and cache policy for working peripherals are not qualified.
Next action
- After explicit resumption, distinguish policy, size-class and zone-creation boundaries before changing allocator or DMA behavior.
Evidence
source: Preserves DRAM, firmware and device reservations.source: Historical on-disk metadata analysis did not establish corrupt fixed-view metadata as the cause.
Storage and root
planned
Components: NativeUfs8996, VerifiedRoot.
Hardware and dependencies
- Stock 64 GB UFS 2.0 geometry: 4096-byte LBAs, six LUNs, userdata on LUN0 at 74312..14530554.
- UFS host/PHY clocks, resets, power, SMMU stream ownership, DMA and a compatible root/Data policy require qualification.
Configuration
- ufshc is enabled in the device DTS and NativeUfs8996 is force-loaded through CONFIG_XNU_EXTRA_LD_ARCHIVES.
- VerifiedRoot is included as the catalog dependency; it does not establish a mounted or authenticated root volume.
Procedure
- Keep the current register-probe scaffold separate from claims of block I/O.
- Document clocks/PHY/SMMU and use read-only identification, LUN/GPT and transfer evidence before root or persistent Data work.
Development findings
- The NativeUfs8996 archive is selected and linked as a scaffold.
- Historical temporary boot uses the RAM FAT payload, so it provides no evidence of UFS transfers or mounted root/Data.
Completion criteria
- Read-only UFS identification and repeated transfers agree with the stock LUN/GPT geometry.
- Root verification and persistent Data need separate complete-source device evidence and an explicitly authorized storage policy.
Current limits
- No UFS data path, root mount, persistent Data, PHY or DMA validation.
- Flashing or writing device partitions is outside this snapshot workflow.
Next action
- Complete the host/PHY/clock/SMMU input map and a read-only transfer design after the early-kernel blocker is resolved.
Evidence
source: Records the linked UFS scaffold without enabling a proven storage path.source: Separates stock geometry from unverified XNU storage behavior.
Display
implemented
Hardware and dependencies
- Inherited RGB888 scanout: 1080x2160, stride 3240 bytes, physical framebuffer 0x83401000.
- Stock splash reservation is 0x23ff000 bytes; exact panel/backlight/native modesetting remains unqualified.
Configuration
- Retain 24-bit console/probe handling and the board splash reservation.
- GopFramebuffer is not selected; direct diagnostic writes do not imply an OS display driver.
Procedure
- Decode photo cells against the matching probe map and exact kernel disassembly.
- Distinguish diagnostic scanout writes from native MDP/DSI presentation and brightness control.
Development findings
- M42 photos contain consistent direct framebuffer markers, including phase 0x4107 and count 1127.
- A 32-bit-pixel assumption is incompatible with the inherited three-byte RGB scanout.
Completion criteria
- Probe cells consistently decode using the documented geometry and exact patch version.
- Native display qualification separately requires timing, panel/backlight control and OS presentation results.
Current limits
- No native display/presentation, brightness, panel identification or GPU scanout qualification.
- Original photographs are not distributed; text decodes and source references are retained.
Next action
- Preserve the working diagnostic geometry while resolving allocator startup; qualify native display later.
Evidence
source: Contains the inherited three-byte console handling.source: Retains the historical photo decode and its limitations.
Input
planned
Components: Blsp8996.
Hardware and dependencies
- MSM8996 BLSP/QUP v2 transport and the enabled blsp2_i2c6 node.
- Sensor protocol, exact touch IC/firmware, pins, clocks, interrupts, contact IDs and coordinate transform remain to be identified.
Configuration
- Blsp8996 archive is force-loaded as a linked transport scaffold.
- No native touch/HID component or end-to-end input path is qualified.
Procedure
- Establish read-only bus/sensor identity before implementing sensor commands.
- Record interrupt behavior, report framing, contact tracking and display-coordinate mapping before OS input integration.
Development findings
- BLSP scaffold selection is inherited from the MSM8996 port; it is not evidence of touch reports.
Completion criteria
- Repeated contact reports, IDs and release events map correctly to the 1080x2160 display and reach the OS input interface.
Current limits
- No sensor protocol, firmware, touch interrupt or OS input validation.
Next action
- Collect the exact board sensor/bus input map once early-kernel startup is resolved.
Evidence
GPU
planned
Components: Adreno530, Msm8996Platform.
Hardware and dependencies
- Adreno 530 / A5xx on MSM8996, platform power/clock votes, firmware and SMMU ownership.
- Submission queues, interrupts, fences, userspace frontend ABI and presentation remain unimplemented or unqualified for this board.
Configuration
- gpu is enabled in the DTS and Adreno530 is force-loaded as a scaffold.
- ArmSmmu4K dependency is covered by the memory area; A5xx must not inherit A740/GMU assumptions.
Procedure
- Document A5xx-specific power/firmware/SMMU resources and restrict initial probes to reviewed operations.
- Qualify submission, fence completion and OS frontend independently of direct framebuffer writes.
Development findings
- The selected archive is a register-probe scaffold; visible white cells are CPU framebuffer writes.
Completion criteria
- Board-specific firmware/power/SMMU inputs are pinned and measured; repeated submissions and fences succeed through a compatible OS interface.
Current limits
- No GPU execution, native frontend, rendering or GPU presentation validation.
- Msm8996Platform is an embedded kit and does not produce a standalone archive.
Next action
- Finish the A5xx resource/firmware inventory before implementing or claiming a data path.
Evidence
source: Preserves Adreno530 and Msm8996Platform selection without substituting another GPU generation.source: Records the explicit scaffold archive link.
Network
planned
Hardware and dependencies
- Exact Wi-Fi/Bluetooth device, bus, firmware, interrupts, power and DMA inputs require board-specific identification.
Configuration
- No qualified network component or OS network interface is selected by this snapshot.
Procedure
- Identify the controller and lawful firmware source before selecting a shared transport.
- Measure association and packet transfer through the OS interface separately from controller enumeration.
Development findings
- No network result is established by the early boot or framebuffer evidence.
Completion criteria
- Pinned board inputs and source support sustained bidirectional packet transfer and reconnect/reset behavior.
Current limits
- No Wi-Fi association, Bluetooth functionality, network DMA or packet validation.
Next action
- Inventory the exact network hardware and firmware after the early-kernel blocker is addressed.
Evidence
cellular
planned
Hardware and dependencies
- The phone has a modem region; modem firmware and EFS/NV, SIM, transport, power/reset and data-path inputs require qualification.
Configuration
- The DTS reserves modem memory but no qualified cellular component is selected.
Procedure
- Identify board-specific modem boot, QRTR/QMI or alternative transport, EFS/NV ownership and DMA before integration.
- Keep private SIM/modem identity and EFS/NV contents outside public repositories.
Development findings
- A reserved modem range is not evidence of modem startup, network registration or a data session.
Completion criteria
- Exact firmware/source evidence demonstrates modem boot, SIM identity handling, registration, data sessions and reset behavior.
Current limits
- No cellular transport, registration, IPA/QMAP, packet transfer or reset validation.
Next action
- Document the actual MSM8996 modem transport and resource ownership before choosing a reusable implementation.
Evidence
Audio
planned
Hardware and dependencies
- Board DSP, codec, firmware services, clocks, power and playback/capture routes remain to be identified.
Configuration
- No qualified native audio component or route is configured.
Procedure
- Inventory codec/DSP inputs and lawful firmware before selecting a driver.
- Measure playback and capture through OS interfaces with explicit route and clock evidence.
Development findings
- No audio conclusion follows from temporary boot or framebuffer progress.
Completion criteria
- Playback and capture work with documented routes, clock policy and sustained device evidence.
Current limits
- No DSP, codec, playback or capture validation.
Next action
- Record the board-specific audio topology after early startup is resolved.
Evidence
Power
planned
Hardware and dependencies
- PMIC identifiers, regulator/clock ownership, battery units, thermal policy and firmware-mediated power transitions.
Configuration
- Retain board PMIC IDs and the sleep-disabled ADT default; no native power-management claim.
Procedure
- Map firmware-owned regulators/clocks and battery reporting before adding transitions.
- Qualify reset/shutdown/suspend/resume independently and preserve diagnostic recovery.
Development findings
- Temporary RAM boot and visible diagnostic marks do not qualify battery, thermal or suspend behavior.
Completion criteria
- Measured battery units and documented regulator/clock ownership support explicitly tested power transitions.
Current limits
- No complete power, charging, thermal or suspend/resume validation.
Next action
- Identify PMIC resources and transition ownership before native power work.
Evidence
Image assembly
planned
Components: XnuPrelink.
Hardware and dependencies
- OS profile ipados-17.7.11-21H461, exact XNU/feed/tool pins and 51 active device patches.
- Historical M34 template, frozen FD/container, OEM DTB bundle, native Mach-O, ADT and 24 MiB FAT payload; restricted binaries are not distributed.
Configuration
- Historical kernel construction uses --skip-prelink; selecting XnuPrelink does not establish a qualified Apple kernelcache/ABI path.
- The official package.sh template is retained and board metadata selects g0345d_defconfig; standard release integration is pending.
- Historical Android v0 geometry: kernel_size 54773873, page4096, ramdisk25165824 at0x343e000, image79945728 bytes.
Procedure
- Review external-input hashes and the companion firmware gap before attempting standard packaging.
- Use the strict repacker only with the matching private template, kernel/payload and actual ADT manifest hash; its check-only mode writes no image.
- Do not run new builds, produce images or operate the device during this repository preparation task.
Development findings
- Historical M42 retains its recorded image and payload hashes; a full clean-source release recipe is not yet available.
- The OEM appended DTB bundle is not generated by compiling dts/g0345d.dts.
- Ordinary legacy firmware output and the official current release pipeline must not be treated as interchangeable with the frozen container.
Completion criteria
- A clean checkout and pinned, lawful external inputs produce both standard release artifacts with validated geometry and manifests.
- A package workflow must report unmet prerequisites honestly until those artifact checks pass.
Current limits
- No successful standard macOS end-to-end release is claimed; companion firmware delta and input extraction/provenance are incomplete.
- The fixed M34 template and OEM/Apple images are not included, so this repository alone cannot recreate M42.
Next action
- Complete separate firmware publication and lawful input reconstruction, then verify the standard release entry point on an explicitly authorized build task.
Evidence
source: Provides the unchanged official release delegation interface.source: Historical manifest records the frozen container and M42 artifact identities.source: Explains why the current snapshot does not reproduce a clean standard release.
Diagnostics
implemented
Hardware and dependencies
- Exact M42/v185 kernel disassembly, STARTUP ordering, framebuffer probe map and independent photo decodes.
- Historical sanitized command logs and artifact hashes; no original photograph or device identifiers are distributed.
Configuration
- Preserve 51 active patches, large-cell phase/value probes and kalloc/startup ladders.
- Only temporary fastboot boot is allowed for future explicitly resumed hardware tests; keep FD, kernel_size and kernel/container layout fixed.
Procedure
- Match the source/disassembly and image hash to the probe map before interpreting cells.
- Compare independent decodes and separate visible return boundaries from hypotheses about the internal fault.
- Physical UART capture remains unverified; do not infer text console output from white diagnostic cells.
Development findings
- M42 decodes phase0x4107/value0x0467=1127; callback index878 is _kalloc_init at0xfffffff0079d6f94, argNULL.
- Fixed parsing, assertions, first qsort and fixed iterators returned; fixed-zone creation and adjacent boundaries have not been observed to return.
- Sending/Booting OKAY only establishes historical transfer/command acceptance, not complete XNU startup.
- The user stopped experiments after M42 analysis; no M43 or new hardware result is part of repository preparation.
Completion criteria
- Each decode identifies its exact image/source map, calibration, observed cells and inference limits.
- Future host/device status upgrades require a complete 40-character source revision, command and accessible matching log.
Current limits
- Historical dirty worktrees do not identify a complete published firmware/device/tools revision; evidence is retained as source-referenced history.
- The exact failing instruction, size class and stopped-versus-slow-progress condition remain unknown.
Next action
- When testing is explicitly resumed, add narrowly scoped policy/size-class/zone-creation boundary measurements without bypassing allocator initialization.