Project

General

Profile

GTA04Installation » History » Version 16

Paul Kocialkowski, 05/06/2014 08:06 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 15 Paul Kocialkowski
2. Make sure that the @bootable.zip@ file is placed within the same directory as the @replicant_gta04_install.sh@ script
33
   (or change the @FILES_BASE@ variable in the script to the correct path)
34
3. Make sure that the @/mount@ directory exists and can be used for creating @boot@, @system@, @cache@ and @data@ sub-folders
35
   (or change the @MOUNT_BASE@ variable in the script to the correct path)
36 14 Paul Kocialkowski
4. Setup the card using the installation script (you can provide the block device node as a second argument):
37 9 Paul Kocialkowski
<pre>
38 14 Paul Kocialkowski
./replicant_gta04_install.sh setup
39 5 Paul Kocialkowski
</pre>
40 14 Paul Kocialkowski
*Note: you might want to run this command as root, since operations will fail with an unprivileged user!*
41
5. If you didn't provide the block device node, select which device to use for installation
42
6. The script should report that the process was completed and that the card can be removed
43
7. Disconnect the microSD card from the computer
44 5 Paul Kocialkowski
45 14 Paul Kocialkowski
h2. Installing the system
46 1 Paul Kocialkowski
47 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.
48 8 Paul Kocialkowski
49 14 Paul Kocialkowski
h3. From the host computer
50 5 Paul Kocialkowski
51 14 Paul Kocialkowski
1. Connect the microSD card back to the computer (e.g. using an USB card reader)
52 16 Paul Kocialkowski
2. Make sure that the @replicant-4.2-gta04.zip@ file is placed within the same directory as the @replicant_gta04_install.sh@ script
53
   (or change the @FILES_BASE@ variable in the script to the correct path)
54
3. Make sure that the @/mount@ directory exists and can be used for creating @boot@, @system@, @cache@ and @data@ sub-folders
55
   (or change the @MOUNT_BASE@ variable in the script to the correct path)
56 14 Paul Kocialkowski
4. Install the system to the card using the installation script (you can provide the block device node as a second argument):
57 5 Paul Kocialkowski
<pre>
58
./replicant_gta04_install.sh install
59
</pre>
60 14 Paul Kocialkowski
*Note: you might want to run this command as root, since operations will fail with an unprivileged user!*
61
5. If you didn't provide the block device node, select which device to use for installation
62
6. The script should report that the process was completed and that the card can be removed
63
7. Disconnect the microSD card from the computer
64
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)
65 6 Paul Kocialkowski
66 14 Paul Kocialkowski
*Your device should now be running Replicant!*
67 6 Paul Kocialkowski
68 14 Paul Kocialkowski
h3. From the device
69 6 Paul Kocialkowski
70 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)
71
2. Make sure the device boots to recovery
72
3. Connect the USB cable to both the computer and the device
73
4. Select *install zip* (using the AUX key to navigate and the power key to select)
74
5. Select *install zip from sideload*
75
5. Back to the host computer, load the system zip with sideload:
76 6 Paul Kocialkowski
<pre>
77 14 Paul Kocialkowski
adb sideload path/to/replicant-4.2-gta04.zip
78 6 Paul Kocialkowski
</pre>
79 14 Paul Kocialkowski
6. Make sure the file is being transfered
80
7. Select *Go Back* (if necessary) to get back to the general menu
81
8. Select *wipe data/factory reset*
82
9. Confirm the data wipe by selecting *Yes -- delete all user data*
83
10. Select *Reboot system now* to reboot the device
84 6 Paul Kocialkowski
85 14 Paul Kocialkowski
*Your device should now be running Replicant!*