Project

General

Profile

DeprecatedInstallation » History » Version 25

Paul Kocialkowski, 12/24/2011 04:49 PM

1 1 Denis 'GNUtoo' Carikli
2 25 Paul Kocialkowski
h2. Summary
3 1 Denis 'GNUtoo' Carikli
4
5 25 Paul Kocialkowski
* [#installdetailed Detailed instructions to install Replicant]
6
* [#installsummary Summary of the instructions to install Replicant]
7
8
9
h2. Detailed instructions to install Replicant
10
 #installdetailed
11
12
 1. *Make sure your phone is supported*
13
14
15
    Replicant only supports a few phones. Make sure the phone you want to install Replicant on is on the [[ReplicantStatus]] list. If it's not, you won't be able to install Replicant on your device without at least a bit of software hacking.
16
17
18
 2. *Make sure your phone allows non-official images*
19
20
21
    Some phones come with software that allows the user to _flash_ the memory (replace the content of the memory partitions, like the system or the kernel one), but it's not always the case. Google-branded phones (Nexus One and Nexus S) come with this allowed but for some other devices, you'll certainly have to do some more operations to make this possible (it's required to flash Replicant).
22
23
    Please, refer to the "CyanogenMod wiki":http://wiki.cyanogenmod.com/wiki/Main_Page to find and follow the instructions to *root the phone*. Note that instructions for Replicant 2.2 correspond to [[CyanogenMod]] 6 and Replicant 2.3 correspond to [[CyanogenMod]] 7.
24
25
    For instance on the "HTC Dream":http://wiki.cyanogenmod.com/wiki/HTC_Dream page, you'll need to follow the instructions to *root the phone* and to install *DangerSPL*.
26
27
28
    *Note: all the radio images and bootloader images that are provided on these pages are not free software.*
29
30
31
 3. *Download the Replicant images and tools for your phone*
32
33
34
   a. *Find the codename of your phone*
35
36
      Each device we support has a codename. You can find the codenames on the [[ReplicantStatus]] page. 
37
38
<pre>
39
40
41
   b. *Find the latest usable Replicant image*
42
43
      The [[ReplicantStatus]] page also shows the latest usable Replicant image for each device.
44
45
<pre>
46
47
48
   c. *Find the base location of the tools/images for your device*
49
50
51
      Replicant images are hosted at: http://ftp.osuosl.org/pub/replicant/images/ 
52
53
      From this page, select the Replicant version (replicant-2.2, replicant-2.3, etc) of the latest usable Replicant image for your device.
54
55
      Then, select the Replicant image type (preview or release) of the latest usable Replicant image for your device.
56
57
      Select the Replicant image number (0006 for example) of the latest usable Replicant image for your device.
58
59
<pre>
60
61
62
   d. *Download the tools to flash your device*
63
64
65
      From the base location we just found out, select the *tools* directory and download the *fastboot* utility to write Replicant on your device. 
66
67
68
   e. *Download the Replicant images for your device*
69
70
71
      From the base location we just found out, select the *pieces* directory and then the directory corresponding to your phone codename and download the *boot.img* (kernel), *system.img* (OS) and *userdata.img* (data) files. It can take some time. 
72
73
74
 4. *Setup the computer to flash Replicant*
75
76
77
<pre>
78
    To do this, run the following command:
79
80
<pre>
81
82
<pre>
83
84
    Then, you need to get root on this terminal. Run:
85
86
<pre>
87
88
    This will ask you to type the superuser (root) password. Note that in most cases, the letters you type won't be shown.
89
90
    Now that you're root, you are able to use the *fastboot* utility. We first need to make it executable. To do this, run the following: 
91
92
<pre>
93
94
    Keep this terminal open during the next step.
95
96
97
 5. *Setup the device to flash Replicant*
98
99
100
    Completely turn off your device. You can also remove and reinsert the battery then. 
101
102
    Now, you'll need to turn your device in fastboot mode. The usual way to do this is to hold a few buttons when booting. 
103
104
    A list of the buttons to hold for each (Google) device  is available at: http://source.android.com/source/building-devices.html#booting-into-fastboot-mode 
105
106
    Connect the USB cable to your PC, hold the appropriate keys and boot the phone. You should get on fastboot menu. 
107
108
    If it's the first time you flash an image and your phone is Google Nexus One or Google Nexus S, you'll need to unlock the bootloader. Switch back to the terminal we opened earlier and run: 
109
110
<pre>
111
112
113
 6. *Flash Replicant images*
114
115
116
    *WARNING: This step will erase every data stored on the phone, make sure you copied the data if you don't want to lose it.* 
117
118
    Switch back to the terminal we just opened and run the following commands: 
119
120
<pre>
121 17 Paul Kocialkowski
./fastboot flash system system.img
122 18 Paul Kocialkowski
./fastboot flash boot boot.img
123 19 Paul Kocialkowski
./fastboot flash userdata userdata.img 
124 25 Paul Kocialkowski
</pre>
125
    If you want to flash Recovery image:
126
127
<pre>
128 20 Paul Kocialkowski
./fastboot flash recovery recovery.img 
129 25 Paul Kocialkowski
</pre>
130 22 Paul Kocialkowski
    Then clean the cache and reboot:
131 25 Paul Kocialkowski
<pre>
132 23 Alexandre Oliva -
./fastboot erase cache
133 22 Paul Kocialkowski
./fastboot reboot
134 25 Paul Kocialkowski
</pre>
135 22 Paul Kocialkowski
    Your device should now reboot with Replicant running. Now you are done, Replicant is installed on your device!
136 20 Paul Kocialkowski
137
138 25 Paul Kocialkowski
h2. Summary of the instructions to install Replicant
139
 #installsummary
140 16 Paul Kocialkowski
141 8 Paul Kocialkowski
142 25 Paul Kocialkowski
h2. Requirements
143
144
* a rooted or unlocked phone
145
* fastboot(can be built or obtained "from our ftp":http://ftp.osuosl.org/pub/replicant/images/replicant-2.2/)
146
* the images(can be built or obtained "from our ftp":http://ftp.osuosl.org/pub/replicant/images/replicant-2.2/)
147
148
149
h2. Installation
150
151
152 10 Mark Holmquist -
Put the phone in fastboot mode (by holding the Camera button and the Power button, then following on-screen instructions), make sure it's connected to your computer, and run the following commands on your computer. You may need to use sudo.
153 4 Denis 'GNUtoo' Carikli
154 25 Paul Kocialkowski
*Note, if you don't have instructions for entering fastboot mode, you may need to install [[DangerSPL]] using the [[CyanogenMod]] instructions.*
155 1 Denis 'GNUtoo' Carikli
156 25 Paul Kocialkowski
*Note that it will erase everything on the phone* 
157
<pre>
158 1 Denis 'GNUtoo' Carikli
./fastboot flash system system.img
159
./fastboot flash boot boot.img
160
./fastboot flash userdata userdata.img 
161
./fastboot erase cache
162
./fastboot reboot
163 25 Paul Kocialkowski
</pre>