GalaxyNexusI9250Installation » History » Version 10
Paul Kocialkowski, 10/01/2013 03:24 PM
1 | 1 | Paul Kocialkowski | h1. Galaxy Nexus Installation |
---|---|---|---|
2 | |||
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 | 1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyNexus]] |
||
30 | 2. Download *all* the files listed for the device (including the checksum) on [[ReplicantImages]] for the latest image |
||
31 | 3. Download the @fastboot@ utility: jump to the @base URL@ of the latest image release (on [[ReplicantImages]]) and get @fastboot@ from the @tools/@ directory. |
||
32 | As @fastboot@ is built as a 32 bit binary, you will need to install compatibility libraries for 32 bits executables if your computer is running on a 64 bit architecture. |
||
33 | 4. Make sure @fastboot@ can be executed: open a terminal in the folder containing @fastboot@ and run: |
||
34 | <pre> |
||
35 | chmod a+x fastboot |
||
36 | </pre> |
||
37 | |||
38 | h2. Preparing the device |
||
39 | |||
40 | The next step in the installation process is to prepare the device for @fastboot@ mode. |
||
41 | |||
42 | 1. Make sure the device is completely turned off and the USB cable is disconnected from the device |
||
43 | 6 | Paul Kocialkowski | 2. Start the device by holding the following key combination: *Volume down, Volume up, Power* |
44 | 3 | Paul Kocialkowski | 3. Hold the key combination until the device shows *Fastboot mode* |
45 | 4. Connect the USB cable to both the computer and the device |
||
46 | |||
47 | h3. Unlocking the bootloader |
||
48 | |||
49 | 10 | 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. |
50 | 3 | Paul Kocialkowski | *Beware: all data stored on the internal storage will be lost during that operation.* |
51 | |||
52 | 1. Open a terminal in the folder containing @fastboot@ and run: |
||
53 | <pre> |
||
54 | sudo ./fastboot oem unlock |
||
55 | </pre> |
||
56 | 2. Confirm that you want to unlock the device (using the volume keys to navigate and the power key to select) |
||
57 | |||
58 | h2. Installing the images |
||
59 | |||
60 | 8 | Paul Kocialkowski | Now that both the computer and the device are set up, it is time to actually install the images to the device. |
61 | 3 | Paul Kocialkowski | |
62 | 1. Open a terminal in the folder containing @fastboot@ and run: |
||
63 | <pre> |
||
64 | sudo ./fastboot flash boot path/to/boot.img |
||
65 | sudo ./fastboot flash recovery path/to/recovery.img |
||
66 | sudo ./fastboot flash system path/to/system.img |
||
67 | sudo ./fastboot flash userdata path/to/userdata.img |
||
68 | sudo ./fastboot erase cache |
||
69 | </pre> |
||
70 | 7 | Paul Kocialkowski | Note: @path/to/boot.img@ refers to the path to the @boot.img@ file. If you downloaded @fastboot@ and the images in the same directory, you can replace @path/to/boot.img@ with @boot.img@. Same goes for @recovery@, @system@ and @userdata@. |
71 | 9 | Paul Kocialkowski | |
72 | 8 | Paul Kocialkowski | 2. If everything went well (@fastboot@ should indicate an error is something went wrong), you can reboot your device: |
73 | 3 | Paul Kocialkowski | <pre> |
74 | sudo ./fastboot reboot |
||
75 | </pre> |
||
76 | |||
77 | *Your device should now be running Replicant!* |