Project

General

Profile

FastbootInstallation » History » Version 7

Paul Kocialkowski, 05/04/2013 10:41 AM

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 7 Paul Kocialkowski
* System permissions are needed to access the device with fastboot. You can either lunch fastboot as root, for instance using sudo, or setup udev rules for your user.
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 6 Paul Kocialkowski
h2. Prepare the phone
27
28
# Turn the phone off, disconnect any USB cable
29
# Hold the key combination for fastboot mode (release only when in fastboot mode)
30
# You should be in fastboot mode. If not, remove the battery and retry the steps above
31
# Once the fastboot screen is waiting, plug the USB cable
32
33 4 Paul Kocialkowski
h2. Unlocking the bootloader
34
35
If this is the first time you reflash your phone, you will need to unlock the bootloader. This is done using fastboot:
36
<pre>
37
./fastboot oem unlock
38
</pre>
39 6 Paul Kocialkowski
40
*Warning:* This will erase all the data stored on the phone, including the data stored on the internal memory!
41 4 Paul Kocialkowski
42 1 Paul Kocialkowski
h2. Flash the images
43
44
# Flash the images using fastboot:
45
<pre>
46
./fastboot flash boot boot.img
47
./fastboot flash recovery recovery.img
48
./fastboot flash system system.img
49
./fastboot flash userdata userdata.img
50
</pre>
51
# Clear cache:
52
<pre>
53
./fastboot erase cache
54
</pre>
55
# Reboot:
56
<pre>
57
./fastboot reboot
58
</pre>
59
60
*Your device should now be running Replicant!*