How rust505/ios-ramdisk-builder-a12-a13 works
This repository builds and boots A12/A13 iOS SSH ramdisks. Its main workflow selects firmware, extracts and decrypts boot components, applies version-specific bootloader and kernel patches, expands and populates a ramdisk, then packages an IMG4 bootchain for DFU loading and SSH access. The README documents these orchestration steps and capabilities; source excerpts show patcher behavior but not build4.sh or boot.sh internals, so workflow edges are cited to the README rather than inferred from unsampled code.
Main entry points: build4.sh Build Orchestrator · apply_kernel_patches.py Kernel Patch Driver · boot.sh DFU Loader · ramdisk_expand.sh Ramdisk Expansion
Components 25
Firmware Build
- Build Orchestrator
build4.sh - Firmware Extraction
build4.sh - Ramdisk Expansion
ramdisk_expand.sh - Packaged Bootchain
build4.sh
Image Patching
- iBoot Patching
patch/iboot_patchfinder.py - iBoot Patchfinder 2
patch/iboot_patchfinder2.py - Boot Args Finalization
patch/finalize_iboot.py - Kernel Patch Driver
patch/apply_kernel_patches.py - Kernel Patchfinder
patch/kernel_patchfinder.py - iOS 26 Byte Patches
patch/ios26_kernel_byte_patches.py - SPTM Patching
patch/sptm_patchfinder.py - TXM Patching
patch/txm_patchfinder.py - Patch Preflight
patch/preflight.py - DeviceTree Patching
bin/dtpatch.py
Keys and Assets
- Key Collection
collect_ibec_keys.py - Device Keys
keys - iBEC Key Sets
ibec_keys_iPhone12_1.json - SSH Ramdisk Assets
resources/ssh.tar.gz - IM4M Signatures
resources/IM4M_0x8030
Device Boot
- DFU Loader
boot.sh - Pwned DFU Device
- Root SSH Access
Other components
- Builder
- Apple IPSW
- SSH Client
Connections 25
- Builder → Build Orchestrator: selects firmware
README.md - Build Orchestrator → Apple IPSW: downloads IPSW
README.md - Build Orchestrator → Firmware Extraction: extracts components
README.md - Firmware Extraction → iBoot Patching: decrypts and patches
README.md - Firmware Extraction → iBoot Patchfinder 2: newer iBEC path
README.md - Firmware Extraction → Kernel Patch Driver: patches kernel
README.md - Kernel Patch Driver → Kernel Patchfinder: runs finder
patch/apply_kernel_patches.py - Kernel Patch Driver → iOS 26 Byte Patches: supports byte patches
patch/apply_kernel_patches.py - Kernel Patch Driver → SPTM Patching: uses iOS 18 helpers
README.md - Kernel Patch Driver → TXM Patching: uses iOS 18 helpers
README.md - Build Orchestrator → Boot Args Finalization: finalizes boot args
README.md - Build Orchestrator → DeviceTree Patching: patches DeviceTree
README.md - Build Orchestrator → Patch Preflight: checks patch inputs
README.md - Key Collection → Apple IPSW: queries key data
README.md - Build Orchestrator → Device Keys: looks up keys
README.md - Build Orchestrator → iBEC Key Sets: looks up keys
README.md - Build Orchestrator → Ramdisk Expansion: expands ramdisk
README.md - Ramdisk Expansion → SSH Ramdisk Assets: injects SSH files
README.md - Build Orchestrator → IM4M Signatures: signs IMG4 output
README.md - Build Orchestrator → Packaged Bootchain: packages bootchain
README.md - Builder → DFU Loader: starts device boot
README.md - DFU Loader → Packaged Bootchain: loads components
README.md - DFU Loader → Pwned DFU Device: sends boot images
README.md - Pwned DFU Device → Root SSH Access: boots ramdisk
README.md - SSH Client → Root SSH Access: connects over SSH
README.md