Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 25

Denis 'GNUtoo' Carikli, 03/27/2018 03:53 AM

1 1 Denis 'GNUtoo' Carikli
h1. Recovery installation or update trough Heimdall
2
3 16 Denis 'GNUtoo' Carikli
h2. Warning
4 1 Denis 'GNUtoo' Carikli
5 25 Denis 'GNUtoo' Carikli
Theses instructions are experimental.
6
7
They also do not cover all supported devices yet, as theses devices are missing from theses instructions:
8
* i9100 (Galaxy S II)
9
* i9250 (Galaxy Nexus)
10
* N7000 (Galaxy Note)
11 16 Denis 'GNUtoo' Carikli
12 1 Denis 'GNUtoo' Carikli
h2. Prerequisites 
13
14
This guide applies only to the following devices:
15 22 Denis 'GNUtoo' Carikli
* i9100 (Galaxy S II)
16 13 Denis 'GNUtoo' Carikli
* Galaxy S 3 (I9300)
17 1 Denis 'GNUtoo' Carikli
* Galaxy S 3 4G (I9305)
18 22 Denis 'GNUtoo' Carikli
* N7000 (Galaxy Note)
19 1 Denis 'GNUtoo' Carikli
* Galaxy Note 2 (N7100)
20 22 Denis 'GNUtoo' Carikli
* P3100 (Galaxy Tab 2 7.0)
21
* P3110 (Galaxy Tab 2 7.0 Wi-Fi)
22
* P5100 (Galaxy Tab 2 10.1)
23
* P5110 (Galaxy Tab 2 10.1 Wi-Fi)
24 14 Denis 'GNUtoo' Carikli
* Galaxy Note 8.0 (N5100)
25
* Galaxy Note 8.0 Wi-Fi (N5110)
26 13 Denis 'GNUtoo' Carikli
27 15 Denis 'GNUtoo' Carikli
Using the instructions of this page with a device not listed above can break it, up to the point where it is too long, complicated and expensive to repair, even for technical people.
28
29 2 Denis 'GNUtoo' Carikli
In order to install the Replicant recovery on your device, it is assumed that you have a computer running a GNU/Linux operating system and everything necessary to connect your device to the computer through USB. Moreover, it is assumed that anyone performing the installation knows how to use the command line in a terminal and has basic knowledge about it.
30 1 Denis 'GNUtoo' Carikli
31
h2. Downloading the files
32
33
The first step in the installation process is to download and set up the files that will be used to install Replicant to the device. The files must be downloaded on your computer first.
34
35 3 Denis 'GNUtoo' Carikli
1. First find the recovery latest image for your device in [[ReplicantImages#Images|ReplicantImages]]. For instance for a Galaxy S2, the table will have <pre>Galaxy S 2 (I9100)</pre> in the device column.
36 5 Denis 'GNUtoo' Carikli
2. Then identify the recovery file and its corresponding signature file:
37 1 Denis 'GNUtoo' Carikli
The recovery file will look like that:
38
<pre>
39
recovery-<yourdevice>.img
40
</pre>
41
And the its corresponding signature file will look like that:
42
<pre>
43
recovery-<yourdevice>.img.asc
44
</pre>
45
46
For instance for the Samsung Galaxy S2, the file will be named like that:
47
* recovery-i9100.img
48
* recovery-i9100.img.asc
49 4 Denis 'GNUtoo' Carikli
50 6 Denis 'GNUtoo' Carikli
3. Download the latest recovery file and its corresponding signature file for your device on [[ReplicantImages#Images|ReplicantImages]].
51 5 Denis 'GNUtoo' Carikli
4. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
52 4 Denis 'GNUtoo' Carikli
53
h2. Check the signature of the recovery
54 1 Denis 'GNUtoo' Carikli
55 7 Denis 'GNUtoo' Carikli
1. From the command line, go inside the directory that has the dowloaded files:
56 9 Denis 'GNUtoo' Carikli
The emplacement where the files are downloaded might be different for you.
57
If it is the case, adjust the command below accordingly:
58 1 Denis 'GNUtoo' Carikli
<pre>
59
cd "${HOME}/Downloads/"
60
</pre>
61 10 Denis 'GNUtoo' Carikli
62 7 Denis 'GNUtoo' Carikli
2. Then check the signature of the recovery (and don't forget to sure to substitute "<yourdevice>" with the actual device name):
63 1 Denis 'GNUtoo' Carikli
<pre>
64
gpg --armor --verify recovery-<yourdevice>.img.asc recovery-<yourdevice>.img
65
</pre>
66 8 Denis 'GNUtoo' Carikli
Make sure the check succeeds, *do not continue the recovery installation if it doesn't*!
67 1 Denis 'GNUtoo' Carikli
68
h2. Installing heimdall
69
70
The heimdall tool is required to flash the recovery image to the device.
71
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
72
73
h2. Preparing the device
74
75
The next step in the installation process is to prepare the device for heimdall mode.
76
77
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
78
2. Start the device by holding the following key combination: *Volume down, Select, Power*
79
3. Hold the key combination until the device shows a *Warning* message
80
4. Confirm that you want to download a custom OS (using volume up)
81
5. Make sure the device is in *Downloading* mode
82
4. Connect the USB cable to both the computer and the device
83
84
h2. Installing the images
85
86
Now that both the computer and the device are set up, it is time to actually install the images to the device.
87
88 11 Denis 'GNUtoo' Carikli
1. From the command line, return inside the directory that has the dowloaded files:
89
The emplacement where the files are downloaded might be different for you.
90
If it is the case, adjust the command below accordingly:
91
<pre>
92
cd "${HOME}/Downloads/"
93
</pre>
94
95 18 Denis 'GNUtoo' Carikli
2. Installing the recovery
96 21 Denis 'GNUtoo' Carikli
If you are installing Replicant for the first time, you need to install a recovery.
97
98
If you have one of theses devices:
99
* Galaxy S 3 (I9300)
100
* Galaxy S 3 4G (I9305)
101
* Galaxy Note 2 (N7100)
102
* Galaxy Note 8.0 (N5100)
103
* Galaxy Note 8.0 Wi-Fi (N5110)
104
105 1 Denis 'GNUtoo' Carikli
you should then run the following command to install the recovery:
106
<pre>
107
heimdall flash --BOOT path/to/recovery-<yourdevice>.img --RECOVERY path/to/recovery-<yourdevice>.img
108
</pre>
109 22 Denis 'GNUtoo' Carikli
110
Instead, if you have one of the following devices:
111
* i9100 (Galaxy S II)
112
* N7000 (Galaxy Note)
113
* P3100 (Galaxy Tab 2 7.0)
114
* P3110 (Galaxy Tab 2 7.0 Wi-Fi)
115
* P5100 (Galaxy Tab 2 10.1)
116
* P5110 (Galaxy Tab 2 10.1 Wi-Fi)
117 24 Denis 'GNUtoo' Carikli
118 22 Denis 'GNUtoo' Carikli
you should then run the following command to install the recovery:
119
<pre>
120
heimdall flash --KERNEL recovery-<yourdevice>.img --RECOVERY recovery-<yourdevice>.img
121
</pre>
122
123
The command(s) above should also automatically reboot the device to the recovery.
124 12 Denis 'GNUtoo' Carikli
125 18 Denis 'GNUtoo' Carikli
2. Or updating the recovery
126
Instead if you just want to update your recovery, you should run the following command:
127 12 Denis 'GNUtoo' Carikli
<pre>
128 17 Denis 'GNUtoo' Carikli
heimdall flash --RECOVERY path/to/recovery-<yourdevice>.img
129 12 Denis 'GNUtoo' Carikli
</pre>
130
This command should also automatically reboot the device to the Replicant.