Project

General

Profile

NexusSI902xInstallation » History » Version 12

Paul Kocialkowski, 01/21/2014 04:13 PM

1 7 Paul Kocialkowski
h1. Nexus S (I902x) Installation
2 1 Paul Kocialkowski
3
*Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.*
4
5
h2. Prerequisites
6
7
In order to install Replicant 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 available. Moreover, it is assumed that anyone performing the installation knows how to use command lines in a terminal and has basic knowledge about it.
8
9
h2. Downloading the files
10
11
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.
12
13 8 Paul Kocialkowski
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[NexusSI902x]]
14
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
15
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
16
3. Check the signature of the files:
17
<pre>
18
gpg --armor --verify path/to/replicant-4.2-crespo.sig path/to/replicant-4.2-crespo.zip
19
gpg --armor --verify path/to/recovery.img.sig path/to/recovery.img
20
</pre>
21
4. Make sure the check succeeds, *do not install anything if it doesn't*!
22
5. Check the checksum of the files:
23
<pre>
24
md5sum -c crespo.md5
25
</pre>
26
6. Make sure the check succeeds, *do not install anything if it doesn't*!
27
28
h2. Installing fastboot
29
30 11 Paul Kocialkowski
The @fastboot@ tool is required to flash the recovery image to the device.
31 12 Paul Kocialkowski
Instructions to install fastboot: [[ToolsInstallation#Fastboot|ToolsInstallation]]
32 2 Paul Kocialkowski
33 1 Paul Kocialkowski
h2. Copying the files to the device
34
35 9 Paul Kocialkowski
There are two means of pushing the system zip to the device:
36
* Using the storage of the device
37
* Using the @adb@ tool to perform sideload
38
39
h3. Using the storage of the device
40
41
1. Make sure the device is started up and has an Android system running
42
2. Connect the USB cable to both the computer and the device
43
3. Enable USB mass storage on the device
44
4. Mount the mass storage on the computer
45
6. Copy the @replicant-4.2-crespo.zip@ file at the origin of the mass storage
46
7. Safely unmount the mass storage on the computer
47
8. Disable USB mass storage on the device
48
49
h3. Installing adb
50
51 11 Paul Kocialkowski
In the case of using @adb@ to perform sideload, @adb@ has to be installed.
52
Instruction to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
53 9 Paul Kocialkowski
54 1 Paul Kocialkowski
h2. Preparing the device
55
56
The next step in the installation process is to prepare the device for @fastboot@ mode.
57 6 Paul Kocialkowski
58 1 Paul Kocialkowski
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
59
2. Start the device by holding the following key combination: *Volume up, Power*
60
3. Hold the key combination until the device shows *Fastboot mode*
61
4. Connect the USB cable to both the computer and the device
62
63
h3. Unlocking the bootloader
64
65
If this is the first time you are flashing an operating system to your device, you'll have to unlock it first. If this is not the case, you can skip that part.
66
*Beware: all data stored on the internal storage will be lost during that operation.*
67
68 8 Paul Kocialkowski
1. Unlock the bootloader:
69 1 Paul Kocialkowski
<pre>
70 8 Paul Kocialkowski
fastboot oem unlock
71 1 Paul Kocialkowski
</pre>
72
2. Confirm that you want to unlock the device (using the volume keys to navigate and the power key to select)
73 9 Paul Kocialkowski
74 1 Paul Kocialkowski
h2. Installing the images
75
76
Now that both the computer and the device are set up, it is time to actually install the images to the device.
77
78 10 Paul Kocialkowski
1. Install the recovery image to the device:
79 1 Paul Kocialkowski
<pre>
80 10 Paul Kocialkowski
fastboot flash recovery path/to/recovery.img
81 1 Paul Kocialkowski
</pre>
82 10 Paul Kocialkowski
2. Select recovery mode (using the volume keys to navigate and the power key to select)
83
3. Make sure the device reboots to recovery
84
4. Select *install zip* (using the volume keys to navigate and the power key to select)
85
86
h3. Using the storage of the device
87
88
5. Select *install zip from sdcard*
89
6. Select the system zip: *replicant-4.2-crespo.zip*
90
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
91
7. Confirm the installation
92
93
h3. Using adb sideload
94
95
5. Select *install zip from sideload*
96
6. Back to the host computer, load the system zip with sideload:
97
<pre>
98
adb sideload path/to/replicant-4.2-crespo.zip
99
</pre>
100
7. Make sure the file is being transfered
101
102
8. Select *Go Back* (if necessary) to get back to the general menu
103
8. Select *wipe data/factory reset*
104
9. Confirm the data wipe by selecting *Yes -- delete all user data*
105
10. Select *Reboot system now* to reboot the device
106 1 Paul Kocialkowski
107
*Your device should now be running Replicant!*