<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Speakus</id>
	<title>The iPhone Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Speakus"/>
	<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/wiki/Special:Contributions/Speakus"/>
	<updated>2026-04-03T22:21:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Firmware_Keys&amp;diff=2397</id>
		<title>Firmware Keys</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Firmware_Keys&amp;diff=2397"/>
		<updated>2008-12-06T19:19:42Z</updated>

		<summary type="html">&lt;p&gt;Speakus: /* Downloads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
These keys are for use with the 'vfdecrypt' tool to decrypt the main filesystem DMG found in every iPhone/iPhone 3G/iPod touch .ipsw file. Every key will work on the main filesystem DMG for that build, regardless if it is for the iPhone or iPod touch unless specified. The DMG that you are after is the bigger one, in the case of current builds of 2.0, it can sometimes be 200+ MB!&lt;br /&gt;
&lt;br /&gt;
== VFDecrypt Usage ==&lt;br /&gt;
 ./vfdecrypt -i &amp;lt;dmg&amp;gt; -o decrypted_fs.dmg -k &amp;lt;key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Gaps ==&lt;br /&gt;
As you will notice, there may be a gap or two, or a key for a current build that is not there. Please feel free to add them, but please be sure that it is only the key for a User or Developer build, as if you gave the key for another type of build that might or may not be out there '''people could get in trouble, and we do not want that'''. Thanks for contributing!&lt;br /&gt;
&lt;br /&gt;
== Downloads ==&lt;br /&gt;
&lt;br /&gt;
* http://rgov.org/files/vfdecrypt.zip (Mac OS X Universal) (link is broken)&lt;br /&gt;
* http://iphoneelite.googlecode.com/files/vfdecrypt.zip (Windows)&lt;br /&gt;
&lt;br /&gt;
* Source Credit: http://lorenzo.yellowspace.net/corrupt-sparseimage.html&lt;br /&gt;
&lt;br /&gt;
== 1.0 (Build 1A543a) ==&lt;br /&gt;
28c909fc6d322fa18940f03279d70880e59a4507998347c70d5b8ca7ef090ecccc15e82d&lt;br /&gt;
&lt;br /&gt;
== 1.0.1 (Build 1C25) ==&lt;br /&gt;
7d5962d0b582ec2557c2cade50de90f4353a1c1de07b74212513fef9cc71fb890574bfe5&lt;br /&gt;
&lt;br /&gt;
== 1.0.2 (Build 1C28) ==&lt;br /&gt;
7d5962d0b582ec2557c2cade50de90f4353a1c1de07b74212513fef9cc71fb890574bfe5&lt;br /&gt;
&lt;br /&gt;
== 1.1.1 (Build 3A109a) ==&lt;br /&gt;
f45de7637a62b200950e550f4144696d7ff3dc5f0b19c8efdf194c88f3bc2fa808fea3b3&lt;br /&gt;
&lt;br /&gt;
== 1.1.1 (Build 3A110a) ==&lt;br /&gt;
d45b837ddd85bdae0ec82a033ba00ea03ceb8c827040034f7554c65d6376472844b8dc6a&lt;br /&gt;
&lt;br /&gt;
== 1.1.2 (Build 3B48b) ==&lt;br /&gt;
70e11d7209602ada5b15fbecc1709ad4910d0ad010bb9a9125b78f9f50e25f3e05c595e2&lt;br /&gt;
&lt;br /&gt;
== 1.1.3 (Build 4A93) ==&lt;br /&gt;
11070c11d93b9be5069b643204451ed95aad37df7b332d10e48fd3d23c62fca517055816&lt;br /&gt;
&lt;br /&gt;
== 1.1.4 (Build 4A102) ==&lt;br /&gt;
d0a0c0977bd4b6350b256d6650ec9eca419b6f961f593e74b7e5b93e010b698ca6cca1fe&lt;br /&gt;
&lt;br /&gt;
== 1.1.5 (Build 4B1) ==&lt;br /&gt;
c7973558e8f6af22e38d4573737d1533f1d5eec202bf86a32d941975d76f8906c7f0afe4&lt;br /&gt;
&lt;br /&gt;
== 1.2 (Beta 1) (Build 5A147p) ==&lt;br /&gt;
86bec353ddfbe3fb750e9d7905801f79791e69acf65d16930d288e697644c76f16c4f16d&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 2) (Build 5A225c) ==&lt;br /&gt;
ea14f3ec624c7fdbd52e108aa92d13b16f6b0b940c841f7bbc7792099dae45da928d13e7&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 3) (Build 5A240d) ==&lt;br /&gt;
e24bfab40a2e5d3dc25e089291846e5615b640897ae8b424946c587bcf53b201a1041d36&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 4) (Build 5A258f) ==&lt;br /&gt;
198d6602ba2ad2d427adf7058045fff5f20d05846622c186cca3d423ad03b5bc3f43c61c&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 5) (Build 5a274d) ==&lt;br /&gt;
589df25eaa4ff0a5e29e1425fb99bf50957888ff098ba2fcb72cf130f40e15e00bcf2fc7&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 6 Pre-Release) (Build 5a292g) ==&lt;br /&gt;
890b1fbf22975e0d4be2ea3f9bc5c87f38fd8158394fd31cf80a43ad25547573bbd0ec4e&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 6 Final) (Build 5a308) ==&lt;br /&gt;
3964ca8d8bf5d3715cdc172986f2d9606672c54d5e0aa3f3a892166b4e54e4cefef21279&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 7) (Build 5a331) ==&lt;br /&gt;
3d9a9832a108fc5084fc9329d6e84e38edf06e380554c49376b70e951f8a8d1ed943f819&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Build 5a347) ==&lt;br /&gt;
 Ramdisk Key: 85 0A FC 27 11 32 D1 5A E6 98 95 65 56 7E 65 BF&lt;br /&gt;
 Ramdisk IV: 29 68 1F 62 5D 1F 61 27 1E C3 11 66 01 B8 BC DE&lt;br /&gt;
2cfca55aabb22fde7746e6a034f738b7795458be9902726002a8341995558990f41e3755&lt;br /&gt;
&lt;br /&gt;
== 2.0.1 (Build 5B108) ==&lt;br /&gt;
 Ramdisk Key: 21 9E AC 3E 01 27 6C 7E C5 04 32 12 3F 50 97 1A&lt;br /&gt;
 Ramdisk IV: 02 4f DB BA 71 EB F3 4D F5 B5 25 CD 97 5A EF E8&lt;br /&gt;
2cfca55aabb22fde7746e6a034f738b7795458be9902726002a8341995558990f41e3755&lt;br /&gt;
&lt;br /&gt;
== 2.0.2 (Build 5C1) ==&lt;br /&gt;
 Ramdisk Key: CC 02 8F D2 9D C2 7F 89 5E 40 1D 98 65 E7 21 00&lt;br /&gt;
 Ramdisk IV: 53 7E B4 E7 12 9E A8 1F 57 2E C2 3D BE C4 2B 80&lt;br /&gt;
31e3ff09ff046d5237187346ee893015354d2135e3f0f39480be63dd2a18444961c2da5d&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Beta 1) (Build 5F90) ==&lt;br /&gt;
 Ramdisk Key: 78 29 32 89 1F 0D 76 DB 49 0F DD CA 02 7A 13 B2&lt;br /&gt;
 Ramdisk IV: 6B EA 32 6D 0F 41 10 51 59 F0 AE A8 F9 9F E7 77&lt;br /&gt;
f61c14aa0d53386dd42c49163686e8ccdeb86d14aafdecfe99c2e12c41a7f9f2811daa3d&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Build 5F136) ==&lt;br /&gt;
 Ramdisk Key: 42 B4 F3 99 76 AF A5 9F 9E C6 80 FC CD 2C 7D 04&lt;br /&gt;
 Ramdisk IV: FD 53 0C 4C F8 A8 78 F1 63 87 43 29 88 B1 99 B8&lt;br /&gt;
562ca0f7963eafb462da74a9c1f01a45c30a7eb5f1f493feceecae03ee6521a334f4ff68&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Build 5F137) ==&lt;br /&gt;
 Ramdisk Key: 7C 80 7F 65 65 01 5D AA 6D 18 2D FF 79 5E 10 91&lt;br /&gt;
 Ramdisk IV: 5C B7 FA 82 E8 FC 42 B9 DB 6C 02 7D 8F 4C 7C 39&lt;br /&gt;
9714f2cb955afa550d6287a1c7dd7bd0efb3c26cf74b948de7c43cf934913df69fc5a05f&lt;br /&gt;
&lt;br /&gt;
== 2.2 (Build 5G77) ==&lt;br /&gt;
 Ramdisk Key: EE A6 E8 78 24 A3 C0 B0 BE 86 E8 E2 BB D8 CF E9&lt;br /&gt;
 Ramdisk IV: 18 2C DD A9 0A 38 87 0D E9 68 80 EE 7F F5 BB BC&lt;br /&gt;
dc39d88afe4cbd8a3f36824b8fd68acf04ac72718c09100816c5cb89889b8079e96802f0&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[System]] - a page with links to download the firmware images&lt;/div&gt;</summary>
		<author><name>Speakus</name></author>
		
	</entry>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Toolchain_2.0&amp;diff=2140</id>
		<title>Toolchain 2.0</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Toolchain_2.0&amp;diff=2140"/>
		<updated>2008-09-18T13:55:02Z</updated>

		<summary type="html">&lt;p&gt;Speakus: /* Framework Headers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to build a tool chain for iPhone OS 2.0. &lt;br /&gt;
&lt;br /&gt;
'''Please note that this section is under development.'''&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
fill this in. somebody did not get this memo :P&lt;br /&gt;
&lt;br /&gt;
toolchain != apple sdk&lt;br /&gt;
&lt;br /&gt;
== Windows XP ==&lt;br /&gt;
&lt;br /&gt;
=== Extraction of iPhone OS 2.0 SDK ===&lt;br /&gt;
* Download the iPhone OS 2.0 SDK from [http://developer.apple.com/iphone/index.action Apple iPhone Dev Center].&lt;br /&gt;
* Download and install ''HFSExplorer'' from [http://hem.bredband.net/catacombae/hfsx.html catacombae software].&lt;br /&gt;
* Start ''HFSExplorer'' and choose the menu ''File&amp;amp;rarr;Open UDIF Disk Image (.dmg)...''&lt;br /&gt;
* Select the iPhone 2.0 SDK disk image ''iphone_sdk_final.dmg'' and press ''Open''&lt;br /&gt;
* When the tool asks ''Which partition to read'' leave it at ''&amp;quot;Mac_OS_X&amp;quot; (Apple_HFS)'' and press ''OK''&lt;br /&gt;
* Go to ''Packages'' and select the package you want to extract, e.g. ''iPhoneSDKHeadersAndLibs.pkg'' for the iPhone OS 2.0 header files.&lt;br /&gt;
* With right mouse button choose ''Extract data'' to extract an installation package.&lt;br /&gt;
* Please note that in order to extract this .pkg file on Windows, you must compile xar using Cygwin.  Make sure you have libxml2, libxml2-devel, openssl and openssl-devel.  You can then follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Currently we can only describe how to get the headers from the iPhone OS 2.0 SDK.&lt;br /&gt;
&lt;br /&gt;
=== Extraction of iPhone OS 2.0 Installation Packages (.pkg) ===&lt;br /&gt;
* Extract &amp;lt;tt&amp;gt;iPhoneSDKHeadersAndLibs.pkg&amp;lt;/tt&amp;gt; from iPhone OS 2.0 SDK:&lt;br /&gt;
 mount -t hfs -o loop /path/to/iphone_sdk_final.dmg /somepath/somedir&lt;br /&gt;
:Copy &amp;lt;tt&amp;gt;iPhoneSDKHeadersAndLibs.pkg&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;/somepath/somedir&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Use the ''[http://code.google.com/p/xar/ eXtensible ARchiver]'' &amp;lt;tt&amp;gt;xar&amp;lt;/tt&amp;gt; to extract the file &amp;lt;tt&amp;gt;Payload&amp;lt;/tt&amp;gt; file containing the actual header files:&lt;br /&gt;
 xar -xf iPhoneSDKHeadersAndLibs.pkg Payload&lt;br /&gt;
*Extract the contents of the resulting &amp;lt;tt&amp;gt;Payload&amp;lt;/tt&amp;gt; file&lt;br /&gt;
 zcat Payload | cpio -id&lt;br /&gt;
or&lt;br /&gt;
 zcat Payload | cpio -id '*.h'&lt;br /&gt;
to extract only all header files included in the package.&lt;br /&gt;
&lt;br /&gt;
=== Framework Headers ===&lt;br /&gt;
This section assumes that&lt;br /&gt;
 zcat Payload | cpio -id '*.h'&lt;br /&gt;
got used in previous section.&lt;br /&gt;
&lt;br /&gt;
If you want to move all Framework headers into an ''include'' directory continue&lt;br /&gt;
as follows:&lt;br /&gt;
&lt;br /&gt;
* Remove the project XCode templates since they will not be required anymore:&lt;br /&gt;
 rm -rf Platforms/iPhoneOS.platform/Developer/Library&lt;br /&gt;
&lt;br /&gt;
* Create your target ''include'' directory:&lt;br /&gt;
 mkdir include&lt;br /&gt;
&lt;br /&gt;
* Get just the ''System'' and ''usr'' directories from the iPhone Os 2.0 SDK and remove the empty ''Platforms'' directory hierarchy:&lt;br /&gt;
 mv Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/* .&lt;br /&gt;
 rmdir -p Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/&lt;br /&gt;
&lt;br /&gt;
* Move the Framework headers to current directory and clean-up empty directory hierarchy:&lt;br /&gt;
 mv System/Library/Frameworks/* .&lt;br /&gt;
 rmdir -p System/Library/Frameworks/&lt;br /&gt;
&lt;br /&gt;
* Rename/move all Framework header directories into ''include'' directory and cleanup&lt;br /&gt;
 mv AddressBook.framework/Headers include/AddressBook&lt;br /&gt;
 mv AddressBookUI.framework/Headers include/AddressBookUI&lt;br /&gt;
 mv AudioToolbox.framework/Headers include/AudioToolbox&lt;br /&gt;
 mv AudioUnit.framework/Headers include/AudioUnit&lt;br /&gt;
 mv CFNetwork.framework/Headers include/CFNetwork&lt;br /&gt;
 mv CoreAudio.framework/Headers include/CoreAudio&lt;br /&gt;
 mv CoreFoundation.framework/Headers include/CoreFoundation&lt;br /&gt;
 mv CoreGraphics.framework/Headers include/CoreGraphics&lt;br /&gt;
 mv CoreLocation.framework/Headers include/CoreLocation&lt;br /&gt;
 mv Foundation.framework/Headers include/Foundation&lt;br /&gt;
 mv MediaPlayer.framework/Headers include/MediaPlayer&lt;br /&gt;
 mv OpenAL.framework/Headers include/OpenAL&lt;br /&gt;
 mv OpenGLES.framework/Headers include/OpenGLES&lt;br /&gt;
 mv QuartzCore.framework/Headers include/QuartzCore&lt;br /&gt;
 mv Security.framework/Headers include/Security&lt;br /&gt;
 mv SystemConfiguration.framework/Headers include/SystemConfiguration&lt;br /&gt;
 mv UIKit.framework/Headers include/UIKit&lt;br /&gt;
 rmdir -p *.framework&lt;br /&gt;
&lt;br /&gt;
* The remaining directories are ''include'' with all Framework headers and ''usr'' with all system related headers.&lt;br /&gt;
&lt;br /&gt;
* Move the ''usr/include'' headers also into new ''include'' directory, remove ''usr/lib'' since gcc includes will not be needed (at least not on iPhone toolchain), and clean up:&lt;br /&gt;
 mv usr/include/* include/&lt;br /&gt;
 rm -rf usr/lib&lt;br /&gt;
 rmdir -p usr/include/&lt;br /&gt;
&lt;br /&gt;
* You may still remove the ''Payload'' file since we don't need it anymore:&lt;br /&gt;
 rm Payload&lt;br /&gt;
&lt;br /&gt;
* Create a tar file so that you can directly transfer to your iPhone:&lt;br /&gt;
 tar --group 0 --owner 0 -cvf include.tar include&lt;br /&gt;
&lt;br /&gt;
* You are done.&lt;br /&gt;
&lt;br /&gt;
* Now you may transfer the ''include.tar'' to your iPhone (as user root), login to your iPhone via ssh and execute following commands to extract the header files (on your iPhone):&lt;br /&gt;
 cd /var&lt;br /&gt;
 tar xf /private/var/root/include.tar&lt;br /&gt;
&lt;br /&gt;
== iPhone/iPod Touch ==&lt;br /&gt;
There is a tool chain available after jailbreak from the [[Cydia|Cydia installer]]. You just need to install&lt;br /&gt;
the '''GNU C Compiler''' from Cydia to get the development environment on your iPhone&lt;br /&gt;
or iPod Touch. BigBoss has some comments on this Toolchain on his&lt;br /&gt;
webpage ''[http://thebigboss.org/moreinfo/Toolchain2.php Toolchain 2.0]''.&lt;br /&gt;
&lt;br /&gt;
If you want to use the header files from iPhone OS 2.0, you can obtain them from the&lt;br /&gt;
iPhone OS 2.0 SDK as described in section ''[[#Framework Headers|Framework Headers]]''.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''&lt;br /&gt;
When using iphone-gcc ( the native compiler ) to compile iPhone applications, you must do one of the following:&lt;br /&gt;
# Patch the SDK header files for use with the compiler ( stupid thing doesn't like the new headers! ) or&lt;br /&gt;
# Use the old header files ( which are great, but some things dont work/exist the same anymore! ) or&lt;br /&gt;
# Use the following settings in your Makefile to avoid warnings and errors during compilation and linking:&lt;br /&gt;
 CC=/usr/bin/gcc&lt;br /&gt;
 &lt;br /&gt;
 CFLAGS=-fsigned-char -g -ObjC -fobjc-exceptions \&lt;br /&gt;
   -Wall -Wundeclared-selector -Wreturn-type -Wnested-externs \&lt;br /&gt;
   -Wredundant-decls \&lt;br /&gt;
   -Wbad-function-cast \&lt;br /&gt;
   -Wchar-subscripts \&lt;br /&gt;
   -Winline -Wswitch -Wshadow \&lt;br /&gt;
   -I/var/include \&lt;br /&gt;
   -I/var/include/gcc/darwin/4.0 \&lt;br /&gt;
   -D_CTYPE_H_ \&lt;br /&gt;
   -D_BSD_ARM_SETJMP_H \&lt;br /&gt;
   -D_UNISTD_H_&lt;br /&gt;
 &lt;br /&gt;
 CPPFLAGS=&lt;br /&gt;
 &lt;br /&gt;
 LD=$(CC)&lt;br /&gt;
 &lt;br /&gt;
 LDFLAGS=-lobjc \&lt;br /&gt;
   -F/System/Library/Frameworks \&lt;br /&gt;
   -framework CoreFoundation \&lt;br /&gt;
   -framework Foundation \&lt;br /&gt;
   -framework UIKit \&lt;br /&gt;
   -framework CoreGraphics \&lt;br /&gt;
   -L/usr/lib -lc /usr/lib/libgcc_s.1.dylib \&lt;br /&gt;
   -bind_at_load \&lt;br /&gt;
   -multiply_defined suppress&lt;br /&gt;
&lt;br /&gt;
If you want to test the iPhone 2.0 Toolchain, you may use this [[HelloWorld on iPhone|HelloWorld]] example.&lt;/div&gt;</summary>
		<author><name>Speakus</name></author>
		
	</entry>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Toolchain_2.0&amp;diff=2139</id>
		<title>Toolchain 2.0</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Toolchain_2.0&amp;diff=2139"/>
		<updated>2008-09-18T13:54:22Z</updated>

		<summary type="html">&lt;p&gt;Speakus: /* Extraction of iPhone OS 2.0 Installation Packages (.pkg) */ KISS&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to build a tool chain for iPhone OS 2.0. &lt;br /&gt;
&lt;br /&gt;
'''Please note that this section is under development.'''&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
fill this in. somebody did not get this memo :P&lt;br /&gt;
&lt;br /&gt;
toolchain != apple sdk&lt;br /&gt;
&lt;br /&gt;
== Windows XP ==&lt;br /&gt;
&lt;br /&gt;
=== Extraction of iPhone OS 2.0 SDK ===&lt;br /&gt;
* Download the iPhone OS 2.0 SDK from [http://developer.apple.com/iphone/index.action Apple iPhone Dev Center].&lt;br /&gt;
* Download and install ''HFSExplorer'' from [http://hem.bredband.net/catacombae/hfsx.html catacombae software].&lt;br /&gt;
* Start ''HFSExplorer'' and choose the menu ''File&amp;amp;rarr;Open UDIF Disk Image (.dmg)...''&lt;br /&gt;
* Select the iPhone 2.0 SDK disk image ''iphone_sdk_final.dmg'' and press ''Open''&lt;br /&gt;
* When the tool asks ''Which partition to read'' leave it at ''&amp;quot;Mac_OS_X&amp;quot; (Apple_HFS)'' and press ''OK''&lt;br /&gt;
* Go to ''Packages'' and select the package you want to extract, e.g. ''iPhoneSDKHeadersAndLibs.pkg'' for the iPhone OS 2.0 header files.&lt;br /&gt;
* With right mouse button choose ''Extract data'' to extract an installation package.&lt;br /&gt;
* Please note that in order to extract this .pkg file on Windows, you must compile xar using Cygwin.  Make sure you have libxml2, libxml2-devel, openssl and openssl-devel.  You can then follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Currently we can only describe how to get the headers from the iPhone OS 2.0 SDK.&lt;br /&gt;
&lt;br /&gt;
=== Extraction of iPhone OS 2.0 Installation Packages (.pkg) ===&lt;br /&gt;
* Extract &amp;lt;tt&amp;gt;iPhoneSDKHeadersAndLibs.pkg&amp;lt;/tt&amp;gt; from iPhone OS 2.0 SDK:&lt;br /&gt;
 mount -t hfs -o loop /path/to/iphone_sdk_final.dmg /somepath/somedir&lt;br /&gt;
:Copy &amp;lt;tt&amp;gt;iPhoneSDKHeadersAndLibs.pkg&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;/somepath/somedir&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Use the ''[http://code.google.com/p/xar/ eXtensible ARchiver]'' &amp;lt;tt&amp;gt;xar&amp;lt;/tt&amp;gt; to extract the file &amp;lt;tt&amp;gt;Payload&amp;lt;/tt&amp;gt; file containing the actual header files:&lt;br /&gt;
 xar -xf iPhoneSDKHeadersAndLibs.pkg Payload&lt;br /&gt;
*Extract the contents of the resulting &amp;lt;tt&amp;gt;Payload&amp;lt;/tt&amp;gt; file&lt;br /&gt;
 zcat Payload | cpio -id&lt;br /&gt;
or&lt;br /&gt;
 zcat Payload | cpio -id '*.h'&lt;br /&gt;
to extract only all header files included in the package.&lt;br /&gt;
&lt;br /&gt;
=== Framework Headers ===&lt;br /&gt;
This section assumes that&lt;br /&gt;
 cat Payload | cpio -i -d '*.h'&lt;br /&gt;
got used in previous section.&lt;br /&gt;
&lt;br /&gt;
If you want to move all Framework headers into an ''include'' directory continue&lt;br /&gt;
as follows:&lt;br /&gt;
&lt;br /&gt;
* Remove the project XCode templates since they will not be required anymore:&lt;br /&gt;
 rm -rf Platforms/iPhoneOS.platform/Developer/Library&lt;br /&gt;
&lt;br /&gt;
* Create your target ''include'' directory:&lt;br /&gt;
 mkdir include&lt;br /&gt;
&lt;br /&gt;
* Get just the ''System'' and ''usr'' directories from the iPhone Os 2.0 SDK and remove the empty ''Platforms'' directory hierarchy:&lt;br /&gt;
 mv Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/* .&lt;br /&gt;
 rmdir -p Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/&lt;br /&gt;
&lt;br /&gt;
* Move the Framework headers to current directory and clean-up empty directory hierarchy:&lt;br /&gt;
 mv System/Library/Frameworks/* .&lt;br /&gt;
 rmdir -p System/Library/Frameworks/&lt;br /&gt;
&lt;br /&gt;
* Rename/move all Framework header directories into ''include'' directory and cleanup&lt;br /&gt;
 mv AddressBook.framework/Headers include/AddressBook&lt;br /&gt;
 mv AddressBookUI.framework/Headers include/AddressBookUI&lt;br /&gt;
 mv AudioToolbox.framework/Headers include/AudioToolbox&lt;br /&gt;
 mv AudioUnit.framework/Headers include/AudioUnit&lt;br /&gt;
 mv CFNetwork.framework/Headers include/CFNetwork&lt;br /&gt;
 mv CoreAudio.framework/Headers include/CoreAudio&lt;br /&gt;
 mv CoreFoundation.framework/Headers include/CoreFoundation&lt;br /&gt;
 mv CoreGraphics.framework/Headers include/CoreGraphics&lt;br /&gt;
 mv CoreLocation.framework/Headers include/CoreLocation&lt;br /&gt;
 mv Foundation.framework/Headers include/Foundation&lt;br /&gt;
 mv MediaPlayer.framework/Headers include/MediaPlayer&lt;br /&gt;
 mv OpenAL.framework/Headers include/OpenAL&lt;br /&gt;
 mv OpenGLES.framework/Headers include/OpenGLES&lt;br /&gt;
 mv QuartzCore.framework/Headers include/QuartzCore&lt;br /&gt;
 mv Security.framework/Headers include/Security&lt;br /&gt;
 mv SystemConfiguration.framework/Headers include/SystemConfiguration&lt;br /&gt;
 mv UIKit.framework/Headers include/UIKit&lt;br /&gt;
 rmdir -p *.framework&lt;br /&gt;
&lt;br /&gt;
* The remaining directories are ''include'' with all Framework headers and ''usr'' with all system related headers.&lt;br /&gt;
&lt;br /&gt;
* Move the ''usr/include'' headers also into new ''include'' directory, remove ''usr/lib'' since gcc includes will not be needed (at least not on iPhone toolchain), and clean up:&lt;br /&gt;
 mv usr/include/* include/&lt;br /&gt;
 rm -rf usr/lib&lt;br /&gt;
 rmdir -p usr/include/&lt;br /&gt;
&lt;br /&gt;
* You may still remove the ''Payload'' file since we don't need it anymore:&lt;br /&gt;
 rm Payload&lt;br /&gt;
&lt;br /&gt;
* Create a tar file so that you can directly transfer to your iPhone:&lt;br /&gt;
 tar --group 0 --owner 0 -cvf include.tar include&lt;br /&gt;
&lt;br /&gt;
* You are done.&lt;br /&gt;
&lt;br /&gt;
* Now you may transfer the ''include.tar'' to your iPhone (as user root), login to your iPhone via ssh and execute following commands to extract the header files (on your iPhone):&lt;br /&gt;
 cd /var&lt;br /&gt;
 tar xf /private/var/root/include.tar&lt;br /&gt;
&lt;br /&gt;
== iPhone/iPod Touch ==&lt;br /&gt;
There is a tool chain available after jailbreak from the [[Cydia|Cydia installer]]. You just need to install&lt;br /&gt;
the '''GNU C Compiler''' from Cydia to get the development environment on your iPhone&lt;br /&gt;
or iPod Touch. BigBoss has some comments on this Toolchain on his&lt;br /&gt;
webpage ''[http://thebigboss.org/moreinfo/Toolchain2.php Toolchain 2.0]''.&lt;br /&gt;
&lt;br /&gt;
If you want to use the header files from iPhone OS 2.0, you can obtain them from the&lt;br /&gt;
iPhone OS 2.0 SDK as described in section ''[[#Framework Headers|Framework Headers]]''.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''&lt;br /&gt;
When using iphone-gcc ( the native compiler ) to compile iPhone applications, you must do one of the following:&lt;br /&gt;
# Patch the SDK header files for use with the compiler ( stupid thing doesn't like the new headers! ) or&lt;br /&gt;
# Use the old header files ( which are great, but some things dont work/exist the same anymore! ) or&lt;br /&gt;
# Use the following settings in your Makefile to avoid warnings and errors during compilation and linking:&lt;br /&gt;
 CC=/usr/bin/gcc&lt;br /&gt;
 &lt;br /&gt;
 CFLAGS=-fsigned-char -g -ObjC -fobjc-exceptions \&lt;br /&gt;
   -Wall -Wundeclared-selector -Wreturn-type -Wnested-externs \&lt;br /&gt;
   -Wredundant-decls \&lt;br /&gt;
   -Wbad-function-cast \&lt;br /&gt;
   -Wchar-subscripts \&lt;br /&gt;
   -Winline -Wswitch -Wshadow \&lt;br /&gt;
   -I/var/include \&lt;br /&gt;
   -I/var/include/gcc/darwin/4.0 \&lt;br /&gt;
   -D_CTYPE_H_ \&lt;br /&gt;
   -D_BSD_ARM_SETJMP_H \&lt;br /&gt;
   -D_UNISTD_H_&lt;br /&gt;
 &lt;br /&gt;
 CPPFLAGS=&lt;br /&gt;
 &lt;br /&gt;
 LD=$(CC)&lt;br /&gt;
 &lt;br /&gt;
 LDFLAGS=-lobjc \&lt;br /&gt;
   -F/System/Library/Frameworks \&lt;br /&gt;
   -framework CoreFoundation \&lt;br /&gt;
   -framework Foundation \&lt;br /&gt;
   -framework UIKit \&lt;br /&gt;
   -framework CoreGraphics \&lt;br /&gt;
   -L/usr/lib -lc /usr/lib/libgcc_s.1.dylib \&lt;br /&gt;
   -bind_at_load \&lt;br /&gt;
   -multiply_defined suppress&lt;br /&gt;
&lt;br /&gt;
If you want to test the iPhone 2.0 Toolchain, you may use this [[HelloWorld on iPhone|HelloWorld]] example.&lt;/div&gt;</summary>
		<author><name>Speakus</name></author>
		
	</entry>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Firmware_Keys&amp;diff=2134</id>
		<title>Firmware Keys</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Firmware_Keys&amp;diff=2134"/>
		<updated>2008-09-17T18:41:47Z</updated>

		<summary type="html">&lt;p&gt;Speakus: /* Downloads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
These keys are for use with the 'vfdecrypt' tool to decrypt the main filesystem DMG found in every iPhone/iPhone 3G/iPod touch .ipsw file. Every key will work on the main filesystem DMG for that build, regardless if it is for the iPhone or iPod touch unless specified. The DMG that you are after is the bigger one, in the case of current builds of 2.0, it can sometimes be 200+ MB!&lt;br /&gt;
&lt;br /&gt;
== VFDecrypt Usage ==&lt;br /&gt;
 ./vfdecrypt -i &amp;lt;dmg&amp;gt; -o decrypted_fs.dmg -k &amp;lt;key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Gaps ==&lt;br /&gt;
As you will notice, there may be a gap or two, or a key for a current build that is not there. Please feel free to add them, but please be sure that it is only the key for a User or Developer build, as if you gave the key for another type of build that might or may not be out there '''people could get in trouble, and we do not want that'''. Thanks for contributing!&lt;br /&gt;
&lt;br /&gt;
== Downloads ==&lt;br /&gt;
[http://chronic-dev.org/tools/vfdecrypt Download VFDecrypt] (link is broken)&lt;br /&gt;
&lt;br /&gt;
== 1.0 (Build 1A543a) ==&lt;br /&gt;
28c909fc6d322fa18940f03279d70880e59a4507998347c70d5b8ca7ef090ecccc15e82d&lt;br /&gt;
&lt;br /&gt;
== 1.0.1 (Build 1C25) ==&lt;br /&gt;
7d5962d0b582ec2557c2cade50de90f4353a1c1de07b74212513fef9cc71fb890574bfe5&lt;br /&gt;
&lt;br /&gt;
== 1.0.2 (Build 1C28) ==&lt;br /&gt;
7d5962d0b582ec2557c2cade50de90f4353a1c1de07b74212513fef9cc71fb890574bfe5&lt;br /&gt;
&lt;br /&gt;
== 1.1.1 (Build 3A109a) ==&lt;br /&gt;
f45de7637a62b200950e550f4144696d7ff3dc5f0b19c8efdf194c88f3bc2fa808fea3b3&lt;br /&gt;
&lt;br /&gt;
== 1.1.1 (Build 3A110a) ==&lt;br /&gt;
d45b837ddd85bdae0ec82a033ba00ea03ceb8c827040034f7554c65d6376472844b8dc6a&lt;br /&gt;
&lt;br /&gt;
== 1.1.2 (Build 3B48b) ==&lt;br /&gt;
70e11d7209602ada5b15fbecc1709ad4910d0ad010bb9a9125b78f9f50e25f3e05c595e2&lt;br /&gt;
&lt;br /&gt;
== 1.1.3 (Build 4A93) ==&lt;br /&gt;
11070c11d93b9be5069b643204451ed95aad37df7b332d10e48fd3d23c62fca517055816&lt;br /&gt;
&lt;br /&gt;
== 1.1.4 (Build 4A102) ==&lt;br /&gt;
d0a0c0977bd4b6350b256d6650ec9eca419b6f961f593e74b7e5b93e010b698ca6cca1fe&lt;br /&gt;
&lt;br /&gt;
== 1.1.5 (Build 4B1) ==&lt;br /&gt;
c7973558e8f6af22e38d4573737d1533f1d5eec202bf86a32d941975d76f8906c7f0afe4&lt;br /&gt;
&lt;br /&gt;
== 1.2 (Beta 1) (Build 5A147p) ==&lt;br /&gt;
86bec353ddfbe3fb750e9d7905801f79791e69acf65d16930d288e697644c76f16c4f16d&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 2) (Build 5A225c) ==&lt;br /&gt;
ea14f3ec624c7fdbd52e108aa92d13b16f6b0b940c841f7bbc7792099dae45da928d13e7&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 3) (Build 5A240d) ==&lt;br /&gt;
e24bfab40a2e5d3dc25e089291846e5615b640897ae8b424946c587bcf53b201a1041d36&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 4) (Build 5A258f) ==&lt;br /&gt;
198d6602ba2ad2d427adf7058045fff5f20d05846622c186cca3d423ad03b5bc3f43c61c&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 5) (Build 5a274d) ==&lt;br /&gt;
589df25eaa4ff0a5e29e1425fb99bf50957888ff098ba2fcb72cf130f40e15e00bcf2fc7&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 6 Pre-Release) (Build 5a292g) ==&lt;br /&gt;
890b1fbf22975e0d4be2ea3f9bc5c87f38fd8158394fd31cf80a43ad25547573bbd0ec4e&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 6 Final) (Build 5a308) ==&lt;br /&gt;
3964ca8d8bf5d3715cdc172986f2d9606672c54d5e0aa3f3a892166b4e54e4cefef21279&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Beta 7) (Build 5a331) ==&lt;br /&gt;
3d9a9832a108fc5084fc9329d6e84e38edf06e380554c49376b70e951f8a8d1ed943f819&lt;br /&gt;
&lt;br /&gt;
== 2.0 (Build 5a347) ==&lt;br /&gt;
 Ramdisk Key: 85 0A FC 27 11 32 D1 5A E6 98 95 65 56 7E 65 BF&lt;br /&gt;
 Ramdisk IV: 29 68 1F 62 5D 1F 61 27 1E C3 11 66 01 B8 BC DE&lt;br /&gt;
2cfca55aabb22fde7746e6a034f738b7795458be9902726002a8341995558990f41e3755&lt;br /&gt;
&lt;br /&gt;
== 2.0.1 (Build 5B108) ==&lt;br /&gt;
 Ramdisk Key: 21 9E AC 3E 01 27 6C 7E C5 04 32 12 3F 50 97 1A&lt;br /&gt;
 Ramdisk IV: 02 4f DB BA 71 EB F3 4D F5 B5 25 CD 97 5A EF E8&lt;br /&gt;
2cfca55aabb22fde7746e6a034f738b7795458be9902726002a8341995558990f41e3755&lt;br /&gt;
&lt;br /&gt;
== 2.0.2 (Build 5C1) ==&lt;br /&gt;
 Ramdisk Key: CC 02 8F D2 9D C2 7F 89 5E 40 1D 98 65 E7 21 00&lt;br /&gt;
 Ramdisk IV: 53 7E B4 E7 12 9E A8 1F 57 2E C2 3D BE C4 2B 80&lt;br /&gt;
31e3ff09ff046d5237187346ee893015354d2135e3f0f39480be63dd2a18444961c2da5d&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Beta 1) (Build 5F90) ==&lt;br /&gt;
 Ramdisk Key: 78 29 32 89 1F 0D 76 DB 49 0F DD CA 02 7A 13 B2&lt;br /&gt;
 Ramdisk IV: 6B EA 32 6D 0F 41 10 51 59 F0 AE A8 F9 9F E7 77&lt;br /&gt;
f61c14aa0d53386dd42c49163686e8ccdeb86d14aafdecfe99c2e12c41a7f9f2811daa3d&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Build 5F136) ==&lt;br /&gt;
 Ramdisk Key: 42 B4 F3 99 76 AF A5 9F 9E C6 80 FC CD 2C 7D 04&lt;br /&gt;
 Ramdisk IV: FD 53 0C 4C F8 A8 78 F1 63 87 43 29 88 B1 99 B8&lt;br /&gt;
562ca0f7963eafb462da74a9c1f01a45c30a7eb5f1f493feceecae03ee6521a334f4ff68&lt;br /&gt;
&lt;br /&gt;
== 2.1 (Build 5F137) ==&lt;br /&gt;
 Ramdisk Key: 7C 80 7F 65 65 01 5D AA 6D 18 2D FF 79 5E 10 91&lt;br /&gt;
 Ramdisk IV: 5C B7 FA 82 E8 FC 42 B9 DB 6C 02 7D 8F 4C 7C 39&lt;br /&gt;
9714f2cb955afa550d6287a1c7dd7bd0efb3c26cf74b948de7c43cf934913df69fc5a05f&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[System]] - a page with links to download the firmware images&lt;/div&gt;</summary>
		<author><name>Speakus</name></author>
		
	</entry>
</feed>