mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-04-05 04:59:05 +08:00
Support ramdisk kernel split and snapshot
Add ramdisk-specific kernel snapshot and build logic so the installer ramdisk can boot with a conservative kernel while the restore target keeps the fully JB-patched kernel. Changes: - research/patch_comparison_all_variants.md: document the Ramdisk Kernel Split and intent. - scripts/fw_patch_jb.py: snapshot the base/dev-patched kernel before applying JB extensions (new helper and constants). - scripts/ramdisk_build.py: build krnl.ramdisk.img4 from the snapshot and krnl.img4 from the restore kernel when a snapshot exists; factor kernel IMG4 creation into build_kernel_img4. - scripts/ramdisk_send.sh: prefer krnl.ramdisk.img4 when present, falling back to krnl.img4; fail early if no kernel image found. This improves /dev/disk1s1 remount reliability during CFW/install by keeping the restore kernel JB-patched but booting the installer ramdisk with a more conservative kernel variant.
This commit is contained in:
@@ -184,6 +184,17 @@ Regular and Dev share the same 25 base kernel patches. JB adds 34 additional pat
|
||||
- `jb/org.coolstar.sileo_2.5.1_iphoneos-arm64.deb`
|
||||
- `basebin/*.dylib` (BaseBin hooks for JB-3)
|
||||
|
||||
## Ramdisk Kernel Split (JB mode)
|
||||
|
||||
- `scripts/fw_patch_jb.py` now snapshots the base/dev-patched kernel before JB kernel extensions:
|
||||
- `iPhone*_Restore/kernelcache.research.vphone600.ramdisk`
|
||||
- `scripts/ramdisk_build.py` uses that snapshot to build:
|
||||
- `Ramdisk/krnl.ramdisk.img4` (base/dev kernel for SSH ramdisk boot + CFW install)
|
||||
- `Ramdisk/krnl.img4` (post-JB kernel, unchanged restore target)
|
||||
- `scripts/ramdisk_send.sh` now prefers `krnl.ramdisk.img4` when present, otherwise falls back to `krnl.img4`.
|
||||
- Intent: keep restore kernel fully JB-patched while booting the installer ramdisk with a
|
||||
more conservative kernel variant to improve `/dev/disk1s1` remount reliability.
|
||||
|
||||
## Dynamic Implementation Log (JB Patchers)
|
||||
|
||||
### TXM (`txm_dev.py`)
|
||||
|
||||
Reference in New Issue
Block a user