Project

General

Profile

GalaxyNexusI9250Installation » History » Version 16

Wolfgang Wiedmeyer, 05/12/2017 11:44 AM
create dir to save efs backup in

1 11 Paul Kocialkowski
h1. Galaxy Nexus (I9250) Installation
2 1 Paul Kocialkowski
3 3 Paul Kocialkowski
*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. Before the installation
10
11
Some preliminary steps may be necessary to achieve best compatibility with your device. These steps may require more advanced technical skills than the rest of the process: make sure you know what you are doing!
12
13
h3. Saving the modified nv_data.bin
14
15 15 Wolfgang Wiedmeyer
If your device was *SIM-unlocked* (using a code or another procedure), you must keep the nv_data.bin file from your current installation. Make sure [[ADB]] is running as root.
16 1 Paul Kocialkowski
<pre>
17 15 Wolfgang Wiedmeyer
adb shell mount -o remount,rw /factory
18 16 Wolfgang Wiedmeyer
mkdir galaxy_nexus_efs_backup && cd galaxy_nexus_efs_backup
19 1 Paul Kocialkowski
adb pull /factory/
20
adb shell "cat /data/radio/nv_data.bin > /factory/nv_data.bin"
21 2 Paul Kocialkowski
adb shell "cat /data/radio/nv_data.bin.md5 > /factory/nv_data.bin.md5"
22 1 Paul Kocialkowski
</pre>
23
24 3 Paul Kocialkowski
This will create a copy of the contents of @/factory@ in the current directory. Keep these files around as a backup in case anything goes wrong with @nv_data.bin@.
25 1 Paul Kocialkowski
26 3 Paul Kocialkowski
h2. Downloading the files
27 1 Paul Kocialkowski
28 3 Paul Kocialkowski
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.
29
30 12 Paul Kocialkowski
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyNexusI9250]]
31
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
32
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
33
3. Check the signature of the files:
34 1 Paul Kocialkowski
<pre>
35 14 Paul Kocialkowski
gpg --armor --verify path/to/replicant-4.2-maguro.zip.asc path/to/replicant-4.2-maguro.zip
36
gpg --armor --verify path/to/recovery.img.asc path/to/recovery.img
37 1 Paul Kocialkowski
</pre>
38 12 Paul Kocialkowski
4. Make sure the check succeeds, *do not install anything if it doesn't*!
39
5. Check the checksum of the files:
40
<pre>
41
md5sum -c maguro.md5
42
</pre>
43
6. Make sure the check succeeds, *do not install anything if it doesn't*!
44 1 Paul Kocialkowski
45 12 Paul Kocialkowski
h2. Installing fastboot
46
47
The fastboot tool is required to flash the recovery image to the device.
48
Instructions to install fastboot: [[ToolsInstallation#Fastboot|ToolsInstallation]]
49
50
h2. Copying the files to the device
51
52
There are two means of pushing the system zip to the device:
53
* Using the storage of the device
54
* Using the ADB tool to perform sideload
55
56
h3. Using the storage of the device
57
58
1. Make sure the device is started up and has an Android system running
59
2. Connect the USB cable to both the computer and the device
60
3. Enable USB mass storage on the device
61
4. Mount the mass storage on the computer
62
5. Copy the @replicant-4.2-maguro.zip@ file at the origin of the mass storage
63
6. Safely unmount the mass storage on the computer
64
7. Disable USB mass storage on the device
65
66
h3. Installing ADB
67
68
Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
69
70 10 Paul Kocialkowski
h2. Preparing the device
71 3 Paul Kocialkowski
72 12 Paul Kocialkowski
The next step in the installation process is to prepare the device for fastboot mode.
73 3 Paul Kocialkowski
74
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
75
2. Start the device by holding the following key combination: *Volume down, Volume up, Power*
76 1 Paul Kocialkowski
3. Hold the key combination until the device shows *Fastboot mode*
77
4. Connect the USB cable to both the computer and the device
78 3 Paul Kocialkowski
79
h3. Unlocking the bootloader
80
81 1 Paul Kocialkowski
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.
82
*Beware: all data stored on the internal storage will be lost during that operation.*
83
84 12 Paul Kocialkowski
1. Unlock the bootloader:
85 1 Paul Kocialkowski
<pre>
86 12 Paul Kocialkowski
fastboot oem unlock
87 1 Paul Kocialkowski
</pre>
88
2. Confirm that you want to unlock the device (using the volume keys to navigate and the power key to select)
89
90
h2. Installing the images
91
92
Now that both the computer and the device are set up, it is time to actually install the images to the device.
93
94 12 Paul Kocialkowski
1. Install the recovery image to the device:
95 1 Paul Kocialkowski
<pre>
96 12 Paul Kocialkowski
fastboot flash recovery path/to/recovery.img
97 3 Paul Kocialkowski
</pre>
98 12 Paul Kocialkowski
2. Select recovery mode (using the volume keys to navigate and the power key to select)
99
3. Make sure the device reboots to recovery
100
4. Select *install zip* (using the volume keys to navigate and the power key to select)
101 1 Paul Kocialkowski
102 12 Paul Kocialkowski
h3. Using the storage of the device
103
104
5. Select *install zip from sdcard*
105
6. Select the system zip: *replicant-4.2-maguro.zip*
106
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
107
7. Confirm the installation
108
109
h3. Using ADB sideload
110
111
5. Select *install zip from sideload*
112
6. Back to the host computer, load the system zip with sideload:
113 3 Paul Kocialkowski
<pre>
114 12 Paul Kocialkowski
adb sideload path/to/replicant-4.2-maguro.zip
115 3 Paul Kocialkowski
</pre>
116 12 Paul Kocialkowski
7. Make sure the file is being transfered
117
118
h3. Completing the installation
119
120
8. Select *Go Back* (if necessary) to get back to the general menu
121
8. Select *wipe data/factory reset*
122
9. Confirm the data wipe by selecting *Yes -- delete all user data*
123
10. Select *Reboot system now* to reboot the device
124 3 Paul Kocialkowski
125 1 Paul Kocialkowski
*Your device should now be running Replicant!*