Linux上构筑iPhone OS3.1.2开发环境之解压firmware
Linux上构筑iPhone OS3.1.2开发环境搭建
本文地址 http://blog.csdn.net/lmss82/archive/2010/02/07/5296261.aspx
教程地址: http://www.yifeiyang.net/iphone-development-introduction-3-linux-development-environment-on-the-build-iphone-os3-1-2/
#第一步没有什么问题
$ ./toolchain.sh headers
#第二步也顺利通过
$ ./toolchain.sh firmware
#第三步也挺顺利
$ ./toolchain.sh darwin_sources
#最后一步,这一步需要注意了
$ ./toolchain.sh build
-------------------------------------
照上面的教程我一步一步的进行着,遇到问题无数呀,记录下来给需要的人。
第一步,我下载了iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg (http://ipsw.info/iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg)
后就顺利通过了,先前下的官方最新版本死活不让通过。
官方最新版本是3.1.3的。
第二部也不太顺利,最后面是报错信息:意思是获取一个KEY,但那个网站却访问不了,郁闷一天(中途还安装了TOR翻墙工具)。还好我想到的解决方法。
幸运的是通过GOOGLE的页面快照,我找到了那个页面,并通过打印toolchain.sh的输出结果找到了他要访问的最终页面。
页面是:http://theiphonewiki.com/wiki/index.php?title=Northstar_7D11_%28iPhone_3G%29
然后通过google搜索这个页面找到如下信息,看来运气不错,他要的就是那个:
Decryption Keys
,在toolchain.sh的第533行
加入 这段代码:
DECRYPTION_KEY_SYSTEM="a8a886d56011d2d98b190d0a498f6fcac719467047639cd601fd53a4a1d93c24e1b2ddc6";
直接赋值,这样安装就继续了。下面是完成后的显示。
zhaowei@zhaowei-ubuntu:~/toolchain$ ./toolchain.sh firmware
./toolchain.sh: line 132: //IPHONEWIKI_KEY_URL=http://www.theiphonewiki.com/wiki/index.php?title=Firmware: 没有该文件或目录
Preparing the environment
Toolchain version: 3.1.2
Building in: /home/zhaowei/toolchain
Environment is ready
Extracting firmware files...
Archive: /home/zhaowei/toolchain/files/firmware/iPhone1,2_3.1.2_7D11_Restore.ipsw
inflating: /home/zhaowei/toolchain/tmp/Restore.plist
Firmware Details
Device Class: iPhone
Product Version: 3.1.2
Build Version: 7D11
Restore RamDisk: 018-6136-014.dmg
Restore Image: 018-6028-014.dmg
Board Config: n82ap
Unzipping 018-6028-014.dmg...
Archive: /home/zhaowei/toolchain/files/firmware/iPhone1,2_3.1.2_7D11_Restore.ipsw
inflating: /home/zhaowei/toolchain/tmp/018-6028-014.dmg
We need the decryption key for 018-6028-014.dmg.
I'm going to try to fetch it from http://192.168.0.107/firmware.html....
decryption_key_system:.iPhone_3G.->toolchain_version.3.1.2
iphonewiki:.a8a886d56011d2d98b190d0a498f6fcac719467047639cd601fd53a4a1d93c24e1b2ddc6
I found it!
Mounting 018-6028-014.dmg...
Decrypting 018-6028-014.dmg...
dmg2img v1.6.1 is derived from dmg2iso by vu1tur (to@vu1tur.eu.org)
/home/zhaowei/toolchain/tmp/018-6028-014.dmg.decrypted --> /home/zhaowei/toolchain/tmp/018-6028-014.dmg.decrypted.img
reading property list, 118813 bytes from address 222153301 ...
partition 0: begin=195, size=430, decoded=284
partition 1: begin=914, size=430, decoded=284
partition 2: begin=1632, size=430, decoded=284
partition 3: begin=2367, size=430, decoded=284
partition 4: begin=3088, size=430, decoded=284
partition 5: begin=3800, size=108353, decoded=72964
partition 6: begin=112435, size=430, decoded=284
decompressing:
opening partition 0 ... [2] 100.00% ok
opening partition 1 ... [2] 100.00% ok
opening partition 2 ... [2] 100.00% ok
opening partition 3 ... [2] 100.00% ok
opening partition 4 ... [2] 100.00% ok
opening partition 5 ... [1819] 100.00% ok
Archive successfully decompressed as /home/zhaowei/toolchain/tmp/018-6028-014.dmg.decrypted.img
You should be able to mount the image [as root] by:
modprobe hfsplus
mount -t hfsplus -o loop /home/zhaowei/toolchain/tmp/018-6028-014.dmg.decrypted.img /mnt
In order to extract 018-6028-014.dmg, I am going to mount it.
This needs to be done as root.
[sudo] password for zhaowei:
Copying required components of the firmware...
Unmounting...
Firmware extracted.
------------------------------------------------
google搜索结果。
==============================================
http://theiphonewiki.com/wiki/index.php?title=Northstar_7D11_%28iPhone_3G%29
Northstar 7D11 (iPhone 3G)
From The iPhone Wiki
Jump to: navigation, search
Contents [hide]
1 Decryption Keys
1.1 Root Filesystem
1.2 AppleLogo (applelogo.s5l8900x.img3)
1.3 KernelCache (kernelcache.release.s5l8900x)
1.4 RecoveryMode (recoverymode.s5l8900x.img3)
1.5 Restore Ramdisk (018-6136-014.dmg)
1.6 iBoot (iBoot.m68ap.RELEASE.img3)
Decryption Keys
Root Filesystem
VFDecrypt: a8a886d56011d2d98b190d0a498f6fcac719467047639cd601fd53a4a1d93c24e1b2ddc6
AppleLogo (applelogo.s5l8900x.img3)
Key: 1fb738d6c091113d7dfdd89864a718d9
IV: 677b4c711e3cacb72505feae8e1eae5d
KernelCache (kernelcache.release.s5l8900x)
Key: dd03b5b52a53d3582b18a0052ef84038
IV: 25b7f586d184c329d3d05953a6516a36
RecoveryMode (recoverymode.s5l8900x.img3)
Key: 6d7d035c04c60ab2776a5e7c729daf0a
IV: dbf44c3cc2944b87bdecdbdcd8e42b82
Restore Ramdisk (018-6136-014.dmg)
Key: 6a4db11073eb748bad1fabafb066fe13
IV: 0e128e1f69806afc476b73250908d641
iBoot (iBoot.m68ap.RELEASE.img3)
Key: a4039d79cd6d41ce2b755ed566902103
IV: 13e320617bc655211e2b68042d4508f8
-------------------------------------------------
最初出错信息:
zhaowei@zhaowei-ubuntu:~/toolchain$ ./toolchain.sh firmware
./toolchain.sh: line 132: //IPHONEWIKI_KEY_URL=http://www.theiphonewiki.com/wiki/index.php?title=Firmware: 没有该文件或目录
Preparing the environment
Toolchain version: 3.1.2
Building in: /home/zhaowei/toolchain
Environment is ready
Extracting firmware files...
Archive: /home/zhaowei/toolchain/files/firmware/iPhone1,2_3.1.2_7D11_Restore.ipsw
inflating: /home/zhaowei/toolchain/tmp/Restore.plist
Firmware Details
Device Class: iPhone
Product Version: 3.1.2
Build Version: 7D11
Restore RamDisk: 018-6136-014.dmg
Restore Image: 018-6028-014.dmg
Board Config: n82ap
Unzipping 018-6028-014.dmg...
Archive: /home/zhaowei/toolchain/files/firmware/iPhone1,2_3.1.2_7D11_Restore.ipsw
inflating: /home/zhaowei/toolchain/tmp/018-6028-014.dmg
We need the decryption key for 018-6028-014.dmg.
I'm going to try to fetch it from http://iphone.spot.ee/wiki/index.php?title=Firmware....
Linux上构筑iPhone OS3.1.2开发环境之解压firmware相关推荐
- linux apple开发环境,Linux上构筑iPhone OS3.1.2开发环境 实例操作
Linux上构筑iPhoneOS3.1.2开发环境 实例操作是本文要介绍的内容,开发iPhone应用程序标准的环境配置是基于intel Mac的.虽说现在Mac很便宜,但是仍然大部分人仍然在用wind ...
- linux 搭建go编译环境搭建,linux上搭建完整go语言vim开发环境
现在docker和kubernetes等容器相关的技术大热,但是却没有一个可以一键式安装的go语言开发环境,我通过几天的摸索,在centos7上搭建了vim开发golang的整套环境,包括nerdtr ...
- 用linux运行sublime,在Deepin Linux上用Sublime Text3配置GoLang开发环境
安装git 因为golang是通过git来管理远程包的,所以我们首先要安装git.具体可参考官网. ➜ tonny@tonny-pc ~ sudo apt-get install git ➜ tonn ...
- iphone 3.1.2开发环境搭建——linux平台
iphone 3.1.2开发环境搭建--linux平台 一.引子 前段时间看到了apple公司发布了iphone os4.0的预览视频,iphone终于打算支持多任务了,尤其是对于预览视频中的skyp ...
- 电脑备份iphone_如何在Linux上备份iPhone?
电脑备份iphone How to backup iPhone on Linux? Not using iTunes or Windows. 如何在Linux上备份iPhone? 不使用iTunes或 ...
- .NET实践:构建iPhone程序虚机开发环境
.NET实践:构建iPhone程序虚机开发环境 http://tech.it168.com/a2010/0921/1106/000001106670_all.shtml [IT168 技术文档] 看了 ...
- 在Mac上使用idea搭建flink java开发环境
1.环境 本文档记录的是使用flink的java API简单地创建应用的过程. 前置条件:需要安装Java.maven和flink. 1.1 Java环境变量 Java需要jdk.path.class ...
- ANSA二次开发 - 在PyCharm上搭建ANSA/META二次开发环境
文章目录 与PyCharm IDE集成 简介 ANSA和META自动补全 安装说明 在PyCharm中工作 与PyCharm IDE集成 简介 PyCharm 是一个集成开发环境(IDE).它是专 ...
- 深度学习开发环境调查结果公布,你的配置是这样吗?(附新环境配置) By 李泽南2017年6月26日 15:57 本周一(6 月 19 日)机器之心发表文章《我的深度学习开发环境详解:Te
深度学习开发环境调查结果公布,你的配置是这样吗?(附新环境配置) 机器之心 2017-06-25 12:27 阅读:108 摘要:参与:李泽南.李亚洲本周一(6月19日)机器之心发表文章<我的深 ...
最新文章
- chapter3.3字典
- html访问手机相册,使用HTML5的FileReader读取手机图片(还可选择拍照), 并自动异步上传到服务器上...
- linux终端关闭时为什么会导致在其上启动的进程退出?
- python做接口自动化测试仪器经销商_Python接口自动化测试的实现
- java继承中的方法覆盖问题
- java原生开发项目-快递e栈
- 20.HTTP-NG
- mysql sql多个like性能_一个sql很多个not like的简化语句
- 怎么在图片上直接编辑文字?建议收藏这些编辑方法
- css碎步测量,隧洞测量实习日记.doc
- 看<奋斗>-----论门当户对(转自新浪博客)
- 1144 消失的正数
- qca9882 qca9880移植
- 双端影视APP后台搭建及前端安装编译大概流程
- MyEclipse解决SVN同步冲突问题conflict in the working copy obstructs the current operation
- 正则表达式 (js)
- 深耕技术的同时,别忘了走出自己的舒适区
- 一点关于线程和摇奖机
- excel表格如何转换成word表格_excel转化为word表格怎么做?
- 学弟学妹要的Java学习路线我终于写完了