linux系统下futurerestore的编译安装

感谢tihmstar大神开发的futurerestore工具,使我们可以在Linux或Mac系统下对已经越狱并备份了SHSH2的iOS设备刷入相应版本的iOS系统。tihmstar大神的github主页是https://github.com/tihmstar,大家可以直接从他的主页下载源码。
下面记录下我编译安装futurerestore的过程。
我使用的Linux系统为Fedora-Workstation-Live-x86_64-26-1.5.iso。

1
2
[root@bogon athena]# uname -a
Linux bogon 4.13.5-200.fc26.x86_64 #1 SMP Thu Oct 5 16:53:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

1.安装所需依赖的库文件

1
2
3
4
5
6
7
8
9
10
11
12
13
[root@bogon athena]# dnf install libtool
[root@bogon athena]# dnf install gcc-c++
[root@bogon athena]# dnf install libcurl-devel
[root@bogon athena]# dnf install bzip2-devel
[root@bogon athena]# dnf install libzip-devel
[root@bogon athena]# dnf install zlib-devel
[root@bogon athena]# dnf install openssl-devel
[root@bogon athena]# dnf install readline-devel
[root@bogon athena]# dnf install libusb-devel
[root@bogon athena]# dnf install libimobiledevice-devel
[root@bogon athena]# dnf install python-devel
[root@bogon athena]# dnf install doxygen
[root@bogon athena]# pip install cython

2.下载工具及库文件
下载包括futurerestore,tsschecker,img4tool,idevicerestore,libplist,libfragmentzip,libirecovery,jssy。

1
2
3
4
5
6
7
8
9
10
11
12
13
[root@bogon athena]# cd /home/
[root@bogon home]# mkdir downgrade
[root@bogon home]# cd downgrade/
[root@bogon downgrade]# git clone https://github.com/tihmstar/futurerestore.git
[root@bogon downgrade]# cd futurerestore/external/
[root@bogon external]# git clone https://github.com/tihmstar/tsschecker.git
[root@bogon external]# git clone https://github.com/tihmstar/img4tool.git
[root@bogon external]# git clone https://github.com/tihmstar/idevicerestore.git
[root@bogon external]# cd /home/downgrade/
[root@bogon downgrade]# git clone https://github.com/libimobiledevice/libplist.git
[root@bogon downgrade]# git clone https://github.com/tihmstar/libfragmentzip.git
[root@bogon downgrade]# git clone https://github.com/tihmstar/libirecovery.git
[root@bogon downgrade]# git clone https://github.com/tihmstar/jssy.git

3.编译安装libplist

1
2
3
4
[root@bogon downgrade]# cd /home/downgrade/libplist/
[root@bogon libplist]# ./autogen.sh
[root@bogon libplist]# make
[root@bogon libplist]# make install

4.编译安装libfragmentzip

1
2
3
4
[root@bogon libplist]# cd /home/downgrade/libfragmentzip/
[root@bogon libfragmentzip]# ./autogen.sh
[root@bogon libfragmentzip]# make
[root@bogon libfragmentzip]# make install

5.编译安装libirecovery

1
2
3
4
[root@bogon libfragmentzip]# cd /home/downgrade/libirecovery/
[root@bogon libirecovery]# ./autogen.sh
[root@bogon libirecovery]# make
[root@bogon libirecovery]# make install

6.复制jssy文件
将jssy文件夹复制到”/home/downgrade/futurerestore/external/tsschecker/external/jssy/”路径下。

1
2
[root@bogon libirecovery]# cd /home/downgrade/jssy/
[root@bogon jssy]# cp -rf jssy /home/downgrade/futurerestore/external/tsschecker/external/jssy/

6.编译安装tsschecker
编译前需引入环境变量”PKG_CONFIG_PATH”,不然编译过程,执行pkg-config会报错。

1
2
3
4
5
6
[root@bogon jssy]# cd /home/downgrade/futurerestore/external/tsschecker/
[root@bogon tsschecker]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
[root@bogon tsschecker]# pkg-config --modversion libplist
[root@bogon tsschecker]# ./autogen.sh
[root@bogon tsschecker]# make
[root@bogon tsschecker]# make install

7.编译安装img4tool

1
2
3
4
[root@bogon tsschecker]# cd /home/downgrade/futurerestore/external/img4tool/
[root@bogon img4tool]# ./autogen.sh
[root@bogon img4tool]# make
[root@bogon img4tool]# make install

8.编译安装idevicerestore

1
[root@bogon img4tool]# cd /home/downgrade/futurerestore/external/idevicerestore/

编译安装前需要修改libimobiledevice-1.0库的版本号,不然configure会报错。

1
[root@bogon idevicerestore]# vi /usr/lib64/pkgconfig/libimobiledevice-1.0.pc

将”Version: 1.2.0″修改为”Version: 1.2.1″。

1
2
3
[root@bogon idevicerestore]# ./autogen.sh
[root@bogon idevicerestore]# make
[root@bogon idevicerestore]# make install

9.编译安装futurerestore

1
2
3
4
[root@bogon idevicerestore]# cd /home/downgrade/futurerestore/
[root@bogon futurerestore]# ./autogen.sh
[root@bogon futurerestore]# make
[root@bogon futurerestore]# make install

至此futurerestore就编译完成并可正常使用。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@bogon futurerestore]# futurerestore
Version: 451804fd967684c434ef031703c9676066ab195b - 153
Odysseus Support: no
Usage: futurerestore [OPTIONS] IPSW
Allows restoring nonmatching iOS/Sep/Baseband
 
  -t, --apticket PATH		Apticket used for restoring
  -b, --baseband PATH		Baseband to be flashed
  -p, --baseband-manifest PATH	Buildmanifest for requesting baseband ticket
  -s, --sep PATH		Sep to be flashed
  -m, --sep-manifest PATH	Buildmanifest for requesting sep ticket
  -w, --wait			keep rebooting until nonce matches APTicket
  -u, --update			update instead of erase install
      --latest-sep		use latest signed sep instead of manually specifying one(may cause bad restore)
      --latest-baseband		use latest signed baseband instead of manually specifying one(may cause bad restore)
      --no-baseband		skip checks and don't flash baseband.
                   		WARNING: only use this for device without baseband (eg iPod or some wifi only iPads)

此过程编译安装的futurerestore仅支持64位iOS设备,如果想要支持32位iOS设备,请补充安装libipatcher

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

www.000webhost.com