DeprecatedInstallation » History » Version 33
Paul Kocialkowski, 02/06/2012 02:06 PM
1 | 27 | Paul Kocialkowski | h1. Installation |
---|---|---|---|
2 | 1 | Denis 'GNUtoo' Carikli | |
3 | 26 | Paul Kocialkowski | {{toc}} |
4 | 25 | Paul Kocialkowski | |
5 | h2. Detailed instructions to install Replicant |
||
6 | |||
7 | 30 | Anonymous | h3. Make sure your phone is supported |
8 | 25 | Paul Kocialkowski | |
9 | 28 | Paul Kocialkowski | 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. |
10 | 25 | Paul Kocialkowski | |
11 | 30 | Anonymous | h3. Make sure your phone allows non-official images |
12 | 25 | Paul Kocialkowski | |
13 | 29 | Paul Kocialkowski | 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). |
14 | 1 | Denis 'GNUtoo' Carikli | |
15 | 29 | Paul Kocialkowski | 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. |
16 | 1 | Denis 'GNUtoo' Carikli | |
17 | 29 | Paul Kocialkowski | 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*. |
18 | 1 | Denis 'GNUtoo' Carikli | |
19 | 29 | Paul Kocialkowski | *Note: all the radio images and bootloader images that are provided on these pages are not free software.* |
20 | 25 | Paul Kocialkowski | |
21 | 30 | Anonymous | h3. Download the Replicant images and tools for your phone |
22 | 25 | Paul Kocialkowski | |
23 | 31 | Paul Kocialkowski | h4. Find the codename of your phone |
24 | 1 | Denis 'GNUtoo' Carikli | |
25 | 32 | Paul Kocialkowski | * Each device we support has a codename. You can find the codename on the dedicated device page, which are all listed in [[ReplicantStatus]]. |
26 | For instance, HTC Dream codename is: @dream_sapphire@. |
||
27 | 25 | Paul Kocialkowski | |
28 | 1 | Denis 'GNUtoo' Carikli | |
29 | 25 | Paul Kocialkowski | h4. Find the latest usable Replicant image |
30 | |||
31 | 32 | Paul Kocialkowski | * You will also find the latest Replicant image for the device on the dedicated device page, which are all listed in [[ReplicantStatus]]. |
32 | For instance, HTC Dream/HTC Magic latest usable image is: @Replicant 2.2 preview 0009@. |
||
33 | 1 | Denis 'GNUtoo' Carikli | |
34 | |||
35 | h4. Find the base location of the tools/images for your device |
||
36 | 25 | Paul Kocialkowski | |
37 | 32 | Paul Kocialkowski | * Replicant images are hosted at: http://ftp.osuosl.org/pub/replicant/images/ |
38 | * From this page, select the Replicant version (replicant-2.2, replicant-2.3, etc) of the latest usable Replicant image for your device. |
||
39 | * Then, select the Replicant image type (preview or release) of the latest usable Replicant image for your device. |
||
40 | * Select the Replicant image number (0006 for example) of the latest usable Replicant image for your device. |
||
41 | 25 | Paul Kocialkowski | |
42 | 32 | Paul Kocialkowski | For instance, if the phone is HTC Dream and the latest image Replicant 2.2 preview 0009, the base location will be: http://ftp.osuosl.org/pub/replicant/images/replicant-2.2/preview/0009/. |
43 | 25 | Paul Kocialkowski | |
44 | h4. Download the tools to flash your device |
||
45 | |||
46 | 32 | Paul Kocialkowski | * From the base location we just found out, select the *tools* directory and download the *fastboot* utility to write Replicant on your device. |
47 | 25 | Paul Kocialkowski | |
48 | 31 | Paul Kocialkowski | h4. Download the Replicant images for your device |
49 | 25 | Paul Kocialkowski | |
50 | 33 | Paul Kocialkowski | * 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. |
51 | *Downloading the files can take some time.* |
||
52 | 1 | Denis 'GNUtoo' Carikli | |
53 | h3. Setup the computer to flash Replicant |
||
54 | |||
55 | 33 | Paul Kocialkowski | * Open a terminal and go to the location where you downloaded all the files (usually, ~/Downloads ). |
56 | To do this, run the following command: |
||
57 | <pre> |
||
58 | 27 | Paul Kocialkowski | cd ~/Downloads |
59 | 33 | Paul Kocialkowski | </pre> |
60 | 25 | Paul Kocialkowski | |
61 | 33 | Paul Kocialkowski | If you have downloaded the files in any other place, change ~/Downloads by the location where you downloaded the files. |
62 | 1 | Denis 'GNUtoo' Carikli | |
63 | 33 | Paul Kocialkowski | * Then, you need to get root on this terminal. Run: |
64 | <pre> |
||
65 | sudo su |
||
66 | </pre> |
||
67 | 25 | Paul Kocialkowski | |
68 | 33 | Paul Kocialkowski | This will ask you to type your password. Note that in most cases, the letters you type won't be shown. |
69 | 25 | Paul Kocialkowski | |
70 | 33 | Paul Kocialkowski | * 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: |
71 | <pre> |
||
72 | 1 | Denis 'GNUtoo' Carikli | chmod a+x fastboot |
73 | 33 | Paul Kocialkowski | </pre> |
74 | 1 | Denis 'GNUtoo' Carikli | |
75 | 33 | Paul Kocialkowski | *Keep this terminal open during the next step.* |
76 | 25 | Paul Kocialkowski | |
77 | 1 | Denis 'GNUtoo' Carikli | h3. Setup the device to flash Replicant |
78 | 25 | Paul Kocialkowski | |
79 | 33 | Paul Kocialkowski | * Completely turn off your device. You can also remove and reinsert the battery then. |
80 | * 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. |
||
81 | 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 |
||
82 | 1 | Denis 'GNUtoo' Carikli | |
83 | 33 | Paul Kocialkowski | * Connect the USB cable to your PC, hold the appropriate keys and boot the phone. You should get on fastboot menu. |
84 | * 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: |
||
85 | <pre> |
||
86 | 25 | Paul Kocialkowski | ./fastboot oem unlock Warning: on Nexus One, the operation voids the warranty and is irreversible. On Nexus S and Nexus S 4G, the bootloader can be locked back. |
87 | 33 | Paul Kocialkowski | </pre> |
88 | 31 | Paul Kocialkowski | |
89 | 25 | Paul Kocialkowski | h3. Flash Replicant images |
90 | |||
91 | 33 | Paul Kocialkowski | *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.* |
92 | 25 | Paul Kocialkowski | |
93 | 33 | Paul Kocialkowski | * Switch back to the terminal we just opened and run the following commands: |
94 | 18 | Paul Kocialkowski | <pre> |
95 | 19 | Paul Kocialkowski | ./fastboot flash system system.img |
96 | 25 | Paul Kocialkowski | ./fastboot flash boot boot.img |
97 | ./fastboot flash userdata userdata.img |
||
98 | </pre> |
||
99 | |||
100 | 33 | Paul Kocialkowski | *If you want to flash Recovery image: |
101 | 22 | Paul Kocialkowski | <pre> |
102 | 25 | Paul Kocialkowski | ./fastboot flash recovery recovery.img |
103 | 23 | Alexandre Oliva - | </pre> |
104 | 33 | Paul Kocialkowski | |
105 | * Then clean the cache and reboot: |
||
106 | 22 | Paul Kocialkowski | <pre> |
107 | 20 | Paul Kocialkowski | ./fastboot erase cache |
108 | ./fastboot reboot |
||
109 | 25 | Paul Kocialkowski | </pre> |
110 | |||
111 | 33 | Paul Kocialkowski | Your device should reboot with Replicant running. Now you are done, Replicant is installed on your device! |
112 | |||
113 | 25 | Paul Kocialkowski | h2. Summary of the instructions to install Replicant |
114 | |||
115 | 33 | Paul Kocialkowski | h3. Requirements |
116 | 25 | Paul Kocialkowski | |
117 | * a rooted or unlocked phone |
||
118 | * fastboot(can be built or obtained "from our ftp":http://ftp.osuosl.org/pub/replicant/images/replicant-2.2/) |
||
119 | * the images(can be built or obtained "from our ftp":http://ftp.osuosl.org/pub/replicant/images/replicant-2.2/) |
||
120 | |||
121 | 33 | Paul Kocialkowski | h3. Installation |
122 | 25 | Paul Kocialkowski | |
123 | 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. |
124 | 4 | Denis 'GNUtoo' Carikli | |
125 | 25 | Paul Kocialkowski | *Note, if you don't have instructions for entering fastboot mode, you may need to install [[DangerSPL]] using the [[CyanogenMod]] instructions.* |
126 | 1 | Denis 'GNUtoo' Carikli | |
127 | 25 | Paul Kocialkowski | *Note that it will erase everything on the phone* |
128 | <pre> |
||
129 | 1 | Denis 'GNUtoo' Carikli | ./fastboot flash system system.img |
130 | ./fastboot flash boot boot.img |
||
131 | ./fastboot flash userdata userdata.img |
||
132 | ./fastboot erase cache |
||
133 | ./fastboot reboot |
||
134 | 25 | Paul Kocialkowski | </pre> |