Project

General

Profile

GTA04Installation » History » Version 14

Paul Kocialkowski, 05/06/2014 08:05 PM

1 1 Paul Kocialkowski
h1. GTA04 Installation
2
3 13 Paul Kocialkowski
h2. Prerequisites
4
5 14 Paul Kocialkowski
In order to install Replicant on your device, it is assumed that you have a computer running a GNU/Linux operating system, a spare microSD card (at least 1GB) and everything necessary to connect the card to the computer. Moreover, it is assumed that anyone performing the installation knows how to use command lines in a terminal and has basic knowledge about it.
6 13 Paul Kocialkowski
7
h2. Downloading the files
8
9
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.
10
11
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GTA04]]
12
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
13
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
14
3. Check the signature of the files:
15 1 Paul Kocialkowski
<pre>
16 14 Paul Kocialkowski
gpg --armor --verify path/to/replicant-4.2-gta04.zip.img.sig path/to/replicant-4.2-gta04.zip
17
gpg --armor --verify path/to/bootable.zip.sig path/to/bootable.zip
18
gpg --armor --verify path/to/replicant_gta04_install.sh.sig path/to/replicant_gta04_install.sh
19 13 Paul Kocialkowski
</pre>
20
4. Make sure the check succeeds, *do not install anything if it doesn't*!
21
5. Check the checksum of the files:
22
<pre>
23 1 Paul Kocialkowski
md5sum -c gta04.md5
24
</pre>
25
6. Make sure the check succeeds, *do not install anything if it doesn't*!
26 9 Paul Kocialkowski
27 14 Paul Kocialkowski
h2. Preparing the microSD card
28 1 Paul Kocialkowski
29 14 Paul Kocialkowski
In order to install Replicant on the microSD card, it has to be set up with the base bootable files first:
30 1 Paul Kocialkowski
31 14 Paul Kocialkowski
1. Connect the microSD card to the computer (e.g. using an USB card reader)
32
2. Make sure that the @bootable.zip@ file is placed within the same directory as the @replicant_gta04_install.sh@ script (or change the @FILES_BASE@ variable in the script to the correct path)
33
3. Make sure that the @/mount@ directory exists and can be used for creating @boot@, @system@, @cache@ and @data@ sub-folders (or change the @MOUNT_BASE@ variable in the script to the correct path)
34
4. Setup the card using the installation script (you can provide the block device node as a second argument):
35 9 Paul Kocialkowski
<pre>
36 14 Paul Kocialkowski
./replicant_gta04_install.sh setup
37 5 Paul Kocialkowski
</pre>
38 14 Paul Kocialkowski
*Note: you might want to run this command as root, since operations will fail with an unprivileged user!*
39
5. If you didn't provide the block device node, select which device to use for installation
40
6. The script should report that the process was completed and that the card can be removed
41
7. Disconnect the microSD card from the computer
42 5 Paul Kocialkowski
43 14 Paul Kocialkowski
h2. Installing the system
44 1 Paul Kocialkowski
45 14 Paul Kocialkowski
Once the microSD card is prepared, it is possible to insert it in the phone though no system is installed yet. It is possible to install Replicant either from the host computer or from the device.
46 8 Paul Kocialkowski
47 14 Paul Kocialkowski
h3. From the host computer
48 5 Paul Kocialkowski
49 14 Paul Kocialkowski
1. Connect the microSD card back to the computer (e.g. using an USB card reader)
50
2. Make sure that the @replicant-4.2-gta04.zip@ file is placed within the same directory as the @replicant_gta04_install.sh@ script (or change the @FILES_BASE@ variable in the script to the correct path)
51
3. Make sure that the @/mount@ directory exists and can be used for creating @boot@, @system@, @cache@ and @data@ sub-folders (or change the @MOUNT_BASE@ variable in the script to the correct path)
52
4. Install the system to the card using the installation script (you can provide the block device node as a second argument):
53 5 Paul Kocialkowski
<pre>
54
./replicant_gta04_install.sh install
55
</pre>
56 14 Paul Kocialkowski
*Note: you might want to run this command as root, since operations will fail with an unprivileged user!*
57
5. If you didn't provide the block device node, select which device to use for installation
58
6. The script should report that the process was completed and that the card can be removed
59
7. Disconnect the microSD card from the computer
60
8. Insert the microSD card in the device and power the device on: the device should boot normally (the power light should stay orange for a short time and then switch green)
61 6 Paul Kocialkowski
62 14 Paul Kocialkowski
*Your device should now be running Replicant!*
63 6 Paul Kocialkowski
64 14 Paul Kocialkowski
h3. From the device
65 6 Paul Kocialkowski
66 14 Paul Kocialkowski
1. Insert the microSD card in the device and power the device on: the device should boot normally (the power light should stay orange for a short time and then switch green)
67
2. Make sure the device boots to recovery
68
3. Connect the USB cable to both the computer and the device
69
4. Select *install zip* (using the AUX key to navigate and the power key to select)
70
5. Select *install zip from sideload*
71
5. Back to the host computer, load the system zip with sideload:
72 6 Paul Kocialkowski
<pre>
73 14 Paul Kocialkowski
adb sideload path/to/replicant-4.2-gta04.zip
74 6 Paul Kocialkowski
</pre>
75 14 Paul Kocialkowski
6. Make sure the file is being transfered
76
7. Select *Go Back* (if necessary) to get back to the general menu
77
8. Select *wipe data/factory reset*
78
9. Confirm the data wipe by selecting *Yes -- delete all user data*
79
10. Select *Reboot system now* to reboot the device
80 6 Paul Kocialkowski
81 14 Paul Kocialkowski
*Your device should now be running Replicant!*