Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 26

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