Project

General

Profile

FastbootInstallation » History » Version 5

Drtan Samos, 01/13/2013 06:03 PM

1 1 Paul Kocialkowski
h1. Fastboot Installation
2
3
*Warning: flashing another operating system like Replicant may void your warranty and will erase the data stored on the device.*
4
5
This guide assumes your phone is supported by fastboot.
6
7
h2. Download the files
8
9
* Refer to your device page to find a link to the latest images (*Last images* part of the table).
10
* Download the images *and the md5 checksum*
11 2 Drtan Samos
* Download fastboot from the latest images @tools@ directory (it is a prebuilt x86 binary for GNU/Linux). Note that you can still use this binary on a system with different hardware architecture as long as you have 32-bit version of needed libraries installed. It is known to work with 32-bit version of GNU C Library and legacy GNU Standard C++ Library version 3 installed. 
12 1 Paul Kocialkowski
* Make sure fastboot is executable:
13
<pre>
14
chmod a+x fastboot
15
</pre>
16 5 Drtan Samos
* System permissions are needed to access the device with fastboot. You will see it stops on '<waiting for device>' message when you are missing permissions while flashing. Unless you are going to use root account for running fastboot you will need to setup udev rules and add your user to the user group specified in these rules (usually this is plugdev or adbusers).
17 1 Paul Kocialkowski
18
h2. Key combinations for fastboot mode
19
20
| *Device* | *Keys (held together)* |
21
| *HTC Dream/HTC Magic* | BACK, POWER |
22
| *Nexus One* | Trackball, POWER |
23
| *Nexus S* | VOL+, POWER |
24
| *Galaxy Nexus* | VOL-, VOL+, POWER |
25
26 4 Paul Kocialkowski
h2. Unlocking the bootloader
27
28
If this is the first time you reflash your phone, you will need to unlock the bootloader. This is done using fastboot:
29
<pre>
30
./fastboot oem unlock
31
</pre>
32
33 1 Paul Kocialkowski
h2. Flash the images
34
35
# Flash the images using fastboot:
36
<pre>
37
./fastboot flash boot boot.img
38
./fastboot flash recovery recovery.img
39
./fastboot flash system system.img
40
./fastboot flash userdata userdata.img
41
</pre>
42
# Clear cache:
43
<pre>
44
./fastboot erase cache
45
</pre>
46
# Reboot:
47
<pre>
48
./fastboot reboot
49
</pre>
50
51
*Your device should now be running Replicant!*