Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 13

Denis 'GNUtoo' Carikli, 01/08/2018 02:13 PM

1 1 Denis 'GNUtoo' Carikli
h1. Recovery installation or update trough Heimdall
2
3
h2. Prerequisites 
4
5 13 Denis 'GNUtoo' Carikli
This guide applies only to the following devices:
6
* i9305
7
* n5100
8
* n5110
9
* n7100
10
* i9300
11
12 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.
13 1 Denis 'GNUtoo' Carikli
14
h2. Downloading the files
15
16
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.
17
18 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.
19 5 Denis 'GNUtoo' Carikli
2. Then identify the recovery file and its corresponding signature file:
20 1 Denis 'GNUtoo' Carikli
The recovery file will look like that:
21
<pre>
22
recovery-<yourdevice>.img
23
</pre>
24
And the its corresponding signature file will look like that:
25
<pre>
26
recovery-<yourdevice>.img.asc
27
</pre>
28
29
For instance for the Samsung Galaxy S2, the file will be named like that:
30
* recovery-i9100.img
31
* recovery-i9100.img.asc
32 4 Denis 'GNUtoo' Carikli
33 6 Denis 'GNUtoo' Carikli
3. Download the latest recovery file and its corresponding signature file for your device on [[ReplicantImages#Images|ReplicantImages]].
34 5 Denis 'GNUtoo' Carikli
4. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
35 4 Denis 'GNUtoo' Carikli
36
h2. Check the signature of the recovery
37 1 Denis 'GNUtoo' Carikli
38 7 Denis 'GNUtoo' Carikli
1. From the command line, go inside the directory that has the dowloaded files:
39 9 Denis 'GNUtoo' Carikli
The emplacement where the files are downloaded might be different for you.
40
If it is the case, adjust the command below accordingly:
41 1 Denis 'GNUtoo' Carikli
<pre>
42
cd "${HOME}/Downloads/"
43
</pre>
44 10 Denis 'GNUtoo' Carikli
45 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):
46 1 Denis 'GNUtoo' Carikli
<pre>
47
gpg --armor --verify recovery-<yourdevice>.img.asc recovery-<yourdevice>.img
48
</pre>
49 8 Denis 'GNUtoo' Carikli
Make sure the check succeeds, *do not continue the recovery installation if it doesn't*!
50 1 Denis 'GNUtoo' Carikli
51
h2. Installing heimdall
52
53
The heimdall tool is required to flash the recovery image to the device.
54
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
55
56
h2. Preparing the device
57
58
The next step in the installation process is to prepare the device for heimdall mode.
59
60
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
61
2. Start the device by holding the following key combination: *Volume down, Select, Power*
62
3. Hold the key combination until the device shows a *Warning* message
63
4. Confirm that you want to download a custom OS (using volume up)
64
5. Make sure the device is in *Downloading* mode
65
4. Connect the USB cable to both the computer and the device
66
67
h2. Installing the images
68
69
Now that both the computer and the device are set up, it is time to actually install the images to the device.
70
71 11 Denis 'GNUtoo' Carikli
1. From the command line, return inside the directory that has the dowloaded files:
72
The emplacement where the files are downloaded might be different for you.
73
If it is the case, adjust the command below accordingly:
74
<pre>
75
cd "${HOME}/Downloads/"
76
</pre>
77
78 12 Denis 'GNUtoo' Carikli
2. Install or updating the recovery:
79
If you are installing Replicant for the first time, you should run the following command:
80 1 Denis 'GNUtoo' Carikli
<pre>
81
heimdall flash --BOOT path/to/recovery-i9300.img --RECOVERY path/to/recovery-i9300.img
82
</pre>
83 12 Denis 'GNUtoo' Carikli
This command should also automatically reboot the device to the recovery.
84
85
Instead if you just want to update your recovery, run the following command:
86
<pre>
87
heimdall flash --RECOVERY path/to/recovery-i9300.img
88
</pre>
89
This command should also automatically reboot the device to the Replicant.