[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111734":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":27,"discoverSource":28},111734,"macOS-uke","iOSNJBrepo\u002FmacOS-uke","iOSNJBrepo","Full macOS 26.5 on the Xiaomi Pad 7 (uke, SM7675) via macOS-ForSheng: boots to the Finder desktop; Adreno 732 Metal in progress",null,"C++",176,12,2,1,0,4,64,48.74,false,"main",true,[],"2026-11-08 08:26:10","2026-11-23 16:02:59","# macOS-uke\n\nFull macOS 26.5 (25F71) on the Xiaomi Pad 7 (`uke`, Snapdragon 7+ Gen 3 \u002F SM7675). It is built on [CrossDarwin\u002FmacOS-ForSheng](https:\u002F\u002Fgithub.com\u002FCrossDarwin\u002FmacOS-ForSheng) and [UniXNU](https:\u002F\u002Fgithub.com\u002FUniXNU\u002FUniXNU), and on Allenwdk's iPadOS 27 GPU work for uke ([Allenwdk\u002FUniXNU-uke](https:\u002F\u002Fgithub.com\u002FAllenwdk\u002FUniXNU-uke)).\n\nThis repository records the work as of 2026-11-08. It is unfinished research. **To build and install it, follow [INSTALL.md](INSTALL.md).**\n\n## Status\n\nWorking on the tablet:\n\n- The ForSheng EL1 kernel boots on all 8 cores (PSCI and IPIs).\n- The full macOS root, not the recovery one. The system volume is unsealed; the Data, Preboot and VM volumes are added by hand.\n- WindowServer and loginwindow are stable.\n- **Adreno 732 GPU with Metal**: the Adreno740 kernel driver, plus the AdrenoMetal plugin with the metal2vulkan translator and Turnip. WindowServer composites on the GPU (`-[MTLDevice acceleratorPort]` in the plugin), with blur and transparency.\n- **Desktop** with the Finder menu bar, the Dock, the wallpaper, status icons, the clock, the Macintosh HD icon and widgets.\n- **Persistent shader cache** in the DRV window: `ukecache` in `gpu\u002Fsrc\u002Fmacos\u002FUkeGpu.cpp`, plugin methods 0x7100\u002F0x7101, and FUA writes in NativeUfs. On the second boot, WindowServer finds about 107 of its 209 pipelines in the cache.\n- User `uke` with automatic login and no Setup Assistant.\n- Novatek NT36532 touch as an absolute pointer (`UkeTouchPointer`).\n- A 512 KiB retained log in the `macoslog` FAT (`scripts\u002Fmacos-cycle.sh pull`), with `UKE HANG` and `UKE PERF` dumps from the GPU driver.\n\nKey GPU fixes (in `gpu\u002Fpatches\u002F`):\n\n- `0008`: freshly zeroed write-combined pages are cleaned and invalidated in the cache. This was the cause of the hangs on zero words in the IBs.\n- `0007`: jobs of the guilty process are not replayed after a recovery, which stops the reboot loop.\n- `0009`: the expensive IB checks are off by default (`uke-gpu-ib-check`, `uke-gpu-ib-publish`).\n- `gpu\u002Fturnip\u002F0001`: whole command buffers are submitted on Darwin.\n\nStill broken:\n\n- **Performance**: there are many fence-wait timeouts while the GPU is mostly idle. This is the next thing being investigated.\n- A mosaic when rotating the tablet.\n- Occasional hangs on warm reboot; cold boots are fine.\n- No battery reading on macOS yet (the iPadOS SPMI ADC driver is still to be ported), and no thermal CPU governor.\n- No HiDPI scaling; `native-gop-scale=2` is used instead.\n\n## Contents\n\n| Path | What it holds |\n| --- | --- |\n| `INSTALL.md` | Building and installing from scratch: inputs, workspace, UEFI, system image, GPU, kernel, flashing |\n| `setup-workspace.sh` | Rebuilds the development workspace: public repos at their base commits plus `patches\u002F` |\n| `scripts\u002F` | Test cycle (`macos-cycle.sh`: log pull, boot_a + vendor_boot flashing, log guard blocks); GPU bundle install (`install-gpubundle.sh`); UEFI `boot.img` (`make-boot-uefi.sh`); kernel build; the `vendor_boot` image (`make-macos-image.sh`); the full APFS container (`fullos-volumes.sh`, `fullos-populate.sh`, `apfs-set-volume-group.py`); no-Setup-Assistant configuration (`macos-skip-setup.py`); userdata flashing composed on the fly (`macos-full-root.py`) |\n| `docs\u002F` | `MACOS-RETURN.md` (rebuilding full macOS on the author's tablet) and `METAL-MACOS-PLAN.md` (GPU and Metal); both in Spanish |\n| `gpu\u002F` | The GPU port: source staging, patches, kernel glue (`src\u002Fmacos`), the Metal plugin and Turnip patches, the DRV window, and host-side shader cache priming (`hostcache\u002F`) |\n| `touch\u002F` | The macOS touch driver (GENI SPI and Novatek), without firmware |\n| `patches\u002Fforsheng\u002F` | Changes to macOS-ForSheng (base `ca57db7`, branch 26.5): commits, uncommitted changes and new files |\n| `patches\u002Funixnu\u002F`, `patches\u002Funixnu-sheng\u002F` | Changes to the UniXNU and UniXNU-sheng checkouts inside ForSheng and their submodules (ArmCpu, DarwinBoot, NativeUfs…) |\n| `patches\u002Fuefi*\u002F` | The UniXNU UEFI for `boot_a`: uefi-uke (with mu_basecore), the UniXNU-uke device tree and the UniXNU core with DarwinBoot |\n| `patches\u002Fdevice\u002F` | `make-uke-adt.py` and `patch-vendor-boot.py` from Allenwdk\u002FUniXNU-uke, as used by `make-macos-image.sh` |\n| `patches\u002Fa27-*\u002F` | The iPadOS 27 GPU baseline the macOS driver is staged from: Allenwdk\u002FUniXNU (+ ArmCpu), Allenwdk\u002FUniXNU-uke and Allenwdk\u002Fuefi-uke, with the author's unit settings |\n| `maint\u002Fexport-patches.sh` | Maintainer tool that refreshes `patches\u002F` from the working trees |\n\nEach `patches\u002F*\u002FBASE.txt` names the public repository and the commit the patches apply to.\n\n## What is NOT here\n\nNot published. Everyone has to obtain these on their own (see INSTALL.md, step 0):\n\n- the GPU firmware (gen71100: GMU, SQE and ZAP) and the touch firmware (Tianma or CSOT), taken from your own tablet;\n- Apple software: the IPSW, dyld cache, cryptexes, the KDK and private headers;\n- your unit's unique chip ID (`chip-id.txt`), any keys, and generated images;\n- the sources `gpu\u002Fstage.py` copies from the iPadOS 27 tree (regenerate them with that script).\n\n## Lessons learned\n\n- **Dock and menu bar:** when you skip Setup Assistant, also write the `com.apple.SetupAssistant` version keys (`LastSeenBuddyBuildVersion`, `PreviousBuildVersion`…) and `OptimizerPreviousBuild` in `loginwindow`. Without them, loginwindow treats the boot as an update and waits for MiniBuddy. See `scripts\u002Fmacos-skip-setup.py`.\n- **Cryptex without ignition:** the dyld cache must be in `\u002FSystem\u002FLibrary\u002Fdyld`, and the cryptex's loose libraries at their real paths on the system volume.\n- **Metal and SIP:** Metal only loads plugins that SIP trusts. With `lp-sip0=0` it ignores the plugin; it needs `SIP0=0x7f`.\n- **WindowServer on the GPU:** SkyLight chooses its compositor from `-[MTLDevice acceleratorPort]`. Without it, WindowServer falls back to CPU compositing even though Metal works.\n- **WC memory:** zero-filling write-combined pages through a cached alias leaves dirty lines that are written back later over GPU data. Clean and invalidate them before handing the pages out.\n- **Flashing:** always flash `boot_a` and `vendor_boot_a` together. A vendor_boot alone lands in fastboot.\n- **Touch:** always build with `UKE_TOUCH_SRC` exported, and check that `UkeTouchPointer` is in the prelink.\n\nThe tablet's test account is `uke`, password `uke` (local only).\n\nThe patches to ForSheng, UniXNU and the other projects keep those projects' licenses.\n","这是一个在小米平板7（代号uke，搭载高通SM7675芯片）上运行完整macOS 26.5系统的实验性移植项目，基于macOS-ForSheng和UniXNU框架。核心功能包括：8核EL1内核正常启动、全系统卷（非恢复模式）加载、稳定WindowServer与登录界面、Adreno 732 GPU初步支持Metal渲染（通过metal2vulkan+Turnip实现模糊\u002F透明效果）、触控屏驱动（NT36532）、持久化Shader缓存及UEFI引导支持。项目处于未完成研究阶段，适用于ARM64架构macOS软硬件兼容性探索、移动SoC GPU驱动适配验证及跨平台Darwin系统移植实验场景。","2026-11-24 04:41:37","CREATED_QUERY"]