1. 准备Ubuntu环境Ubuntu 10.04sudo apt-get install git-core libxar-dev bison flex patch openssl libbz2-dev libssl-dev autoconfsudo apt-get install build-essential gnustep gobjc gnustep-make libgnustep-base-dev gnustep-devel uuidgcc, g++等编译器默认已经安装sudo apt-get install g++Ubuntu 10.04 amd64:在64位系统上,apt-get找不到xar,就从网站上下载xar安装,要先安装依赖文件libxar1, 再安装xarhttp://packages.ubuntu.com/hardy/xar2.准备SDK和iPhone Fireware文件2.1iPhone1,2_3.1.2_7D11_Restore.ipsw
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7265.20091008.Xsd32/iPhone1,2_3.1.2_7D11_Restore.ipsw 2.2iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg3. 准备iphonedevonlinux源代码、SDK和firmware文件3.1 checkout iphonedevonlinux源代码$ mkdir -p ~/iPhone/toolchain $ cd ~/iPhone/toolchain
$ svn checkout http://iphonedevonlinux.googlecode.com/svn/trunk/ ./目前checkout out的svn版本为revision 833.2 拷贝SDK,firmware文件到相应目录$ mkdir -p ~/iPhone/toolchain/files/firmware
$ mv iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg ~/iPhone/toolchain/files/
$ mv iPhone1,2_3.1.2_7D11_Restore.ipsw ~/iPhone/toolchain/files/firmware/4. 执行toolchain.sh4.1 sudo ./toolchain.sh headers4.2 sudo ./toolchain.sh firmware由于GFW的原因,这一步可能不成功。如果失败了,就手工修改toolchain.sh,直接添加解密firmware的key修改toolchain.sh如下:注视掉以下内容: if [ -z "$DECRYPTION_KEY_SYSTEM" ] ; then
# echo "We need the decryption key for `basename $FW_RESTORE_SYSTEMDISK`."
# echo "I"m going to try to fetch it from $IPHONEWIKI_KEY_URL...."
#
# IPHONEWIKI_KEY_URL=$( wget --quiet -O - $IPHONEWIKI_KEY_URL | awk "
# BEGIN { IGNORECASE = 1; }
# /name=""${DEVICE}"/ { found_phone=1; }
# /.*"${TOOLCHAIN_VERSION}".*/ && found_phone { found_firmware=1; }
# /.*href=.*/ && found_firmware { while(sub(/href=|"/,"", $3));; print $3; exit;}
# ")
#
# DECRYPTION_KEY_SYSTEM=`wget --quiet -O - "http://#www.theiphonewiki.com"$IPHONEWIKI_KEY_URL | awk "
# BEGIN { IGNORECASE = 1; }
# /.*VFDecrypt.*/ { print $3;}
# "`
DECRYPTION_KEY_SYSTEM="a8a886d56011d2d98b190d0a498f6fcac719467047639cd601fd53a4a1d93c24e1b2ddc6" if [ ! "$DECRYPTION_KEY_SYSTEM" ] ; then
error "Sorry, no decryption key for system partition found!"
exit 1
fi
echo "I found it!"
fi message_status "Mounting ${FW_RESTORE_SYSTEMDISK}..."
mount_dmg "${TMP_DIR}/${FW_RESTORE_SYSTEMDISK}" "${MNT_DIR}" "${DECRYPTION_KEY_SYSTEM}"别忘了添加DECRYPTION_KEY_SYSTEM=...这一行4.3 sudo ./toolchain.sh darwin_sources
Android NDK应用开发Ubuntu下用“徽标/超级键”打开Gnome主菜单相关资讯 iPhone Ubuntu教程
- 华尔街日报:今年的新 iPhone 不会 (06月22日)
- iPhone 和中国仍为苹果带来强劲增 (07/22/2015 13:42:27)
- 大量 T-Mobile 使用者投诉 iPhone (06/25/2015 17:32:41)
| - 传新一代 iPhone 会将 Force Touch (08/12/2015 11:31:20)
- 传闻苹果已开始生产具压力感应屏幕 (06/28/2015 15:15:45)
- iPhone 使用者现在能在 Google 日 (06/25/2015 07:24:22)
|
本文评论 查看全部评论 (0)