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