Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 19

Denis 'GNUtoo' Carikli, 03/27/2018 03:38 AM
typo

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