Project

General

Profile

GalaxyS2I9100Installation » History » Version 2

Paul Kocialkowski, 10/01/2013 03:28 PM

1 1 Paul Kocialkowski
h1. Galaxy S2 Installation
2
3
*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. Downloading the files
10
11
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.
12
13
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyS2]]
14
2. Download *all* the files listed for the device (including the checksum) on [[ReplicantImages]] for the latest image
15
3. Download and install @heimdall@, *version 1.4* and later: http://www.glassechidna.com.au/products/heimdall/
16
   There are prebuilt packages for most popular GNU/Linux distributions, but you can also easily build it from source.
17
   Only @heimdall@'s command line interface will be used in this guide.
18
19
h2. Preparing the device
20
21
h3. Copying the files to the device
22
23
The following step in the installation process is to copy the files that will be used to install Replicant to the device.
24
You can either complete this step by using the device's internal storage or by using an external micro-SD card.
25
26
h4. Using the internal storage
27
28
1. Make sure the device is started up and has an Android system running
29
2. Connect the USB cable to both the computer and the device
30
3. Enable USB mass storage on the device
31
4. Mount the mass storage on the computer
32
5. Create a directory at the origin of the mass storage
33
6. Copy *all* the files listed for the device (including the checksum) to the newly-created directory
34
7. Safely unmount the mass storage on the computer
35
8. Disable USB mass storage on the device
36
37
h4. Using a micro-SD card
38
39
1. Connect the micro-SD card to the computer (e.g. using an USB card reader)
40
2. Mount the micro-SD card on the computer
41
3. Create a directory at the origin of the micro-SD card
42
4. Copy *all* the files listed for the device (including the checksum) to the newly-created directory
43
5. Safely unmount the micro-SD card on the computer
44
6. Disconnect the micro-SD card from the computer
45
7. Insert the micro-SD card in the device (make sure it is turned off before inserting the card)
46
47
h3. Setting-up the device for @heimdall@ mode
48
49
The next step in the installation process is to prepare the device for @heimdall@ mode.
50
51
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
52
2. Start the device by holding the following key combination: *Volume down, Select, Power*
53
3. Hold the key combination until the device shows a *Warning* message
54
4. Confirm that you want to download a custom OS (Volume up)
55
5. Make sure the device is in *Downloading* mode
56
4. Connect the USB cable to both the computer and the device
57
58
h2. Installing the images
59
60
Now that both the computer and the device are set up, it is time to actually install the images to the device.
61
62
1. Open a terminal and run:
63
<pre>
64
sudo heimdall flash --KERNEL path/to/recovery.img
65
</pre>
66
Note: @path/to/recovery.img@ refers to the path to the @recovery.img@ file. If you downloaded the images in the directory where your terminal is at, you can replace @path/to/recovery.img@ with @recovery.img@.
67
68 2 Paul Kocialkowski
2. If everything went well (@heimdall@ should indicate an error if something went wrong), the device will reboot to @recovery@ mode.
69 1 Paul Kocialkowski
3. Once @recovery@ mode is started up, select *flash images* (using the volume keys to navigate and the power key to select)
70
4. If you have a micro-SD card inserted, you will have to select the location of the images to install (one is the internal storage and the other is the micro-SD card)
71
5. Select the directory on which you copied the Replicant images
72
6. Confirm the installation by selecting *Yes - Flash*
73
7. Select *Go Back* (if necessary) to get back to the general menu
74
8. Select *wipe data/factory reset*
75
9. Confirm the data wipe by selecting "Yes -- delete all user data"
76
10. Select *Reboot system now* to reboot the device
77
78
*Your device should now be running Replicant!*