Information Technology Reference
In-Depth Information
Fix the IOKit path by replacing
/Developer/Platforms/iPhoneOS.platform/
Developer/SDKs/iPhoneOS$VER.sdk/System/Library/Frameworks/
IOKit.framework/IOKit
with
/Applications/Xcode.app/Contents/
Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
iPhoneOS$VER.sdk/System/Library/Frameworks/IOKit.framework/
IOKit
in the
if
statement.
After making the necessary changes, press
Ctrl
+
X
, type the letter
y
and hit the
Enter
key
on the keyboard to save the file.
Execute the
make_ramdisk_n90ap.sh
script; it will download
ssh.tar.gz
from
Google Code. Next, compile the ramdisk tools located in the
ramdisk_tools
folder
and add them to the existing ramdisk to prepare a forensic ramdisk, as shown in the fol-
lowing command:
$sudo ./make_ramdisk_n90ap.sh
Found iOS SDK 6.1
[some warning messages]
Archive: iPhone3,1_5.1.1_9B208_Restore.ipsw
inflating: 038-5512-003.dmg
TAG: TYPE OFFSET 14 data_length:4
[...]
"disk2" unmounted.
"disk2" ejected.
You can boot the ramdisk using the following command (fix
paths)redsn0w -i iPhone3,1_5.1.1_9B208_Restore.ipsw -r
myramdisk_n90ap.dmg -k kernelcache.release.n90.patched
Add -a "-v rd=md0 nand-disable=1" for nand dump/read only
access
If you are using an iOS 6 IPSW file, run the
build_ramdisk_ios6.sh
file to create
the custom ramdisk. Before running the script, you need to edit
Makefile
in the
ram-
disk_tools
directory, fix the iOS SDK version, and compile it using the
make
com-
mand.
Booting the custom ramdisk
To load the custom ramdisk onto the device, start redsn0w from the command line using
the IPSW, custom ramdisk, and patched kernel as shown in the following command: