Project

General

Profile

GalaxySI9000Installation » History » Version 20

Paul Kocialkowski, 01/21/2014 04:28 PM

1 18 Paul Kocialkowski
h1. Galaxy S (I9000) Installation
2 1 Paul Kocialkowski
3 11 Paul Kocialkowski
*Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.*
4 3 Paul Kocialkowski
5 1 Paul Kocialkowski
h2. Prerequisites 
6
7 11 Paul Kocialkowski
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 1 Paul Kocialkowski
9 11 Paul Kocialkowski
h2. Before the installation
10 1 Paul Kocialkowski
11 11 Paul Kocialkowski
Some preliminary steps may be necessary to achieve best compatibility with your device. These steps may require more advanced technical skills than the rest of the process: make sure you know what you are doing!
12
13
h3. Flashing the Android 2.3 partitioning layout
14
15
If your phone is currently running Android 2.2, you need to upgrade it to a newer version, at least Android 2.3 or it will be impossible to flash Replicant to the device.
16
17
h3. Installing CyanogenMod
18
19 12 Paul Kocialkowski
It is required to install CyanogenMod prior to Replicant as it'll solve possible issues with the modem image (the modem image bust me installed in @/radio/modem.bin@ and symlinked to @/dev/block/bml12@).
20
You can find official CyanogenMod installation instructions at: http://wiki.cyanogenmod.org/index.php?title=Install_CM_for_galaxysmtd
21 11 Paul Kocialkowski
22
h2. Downloading the files
23
24
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.
25
26 19 Paul Kocialkowski
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxySI9000]]
27
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
28
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
29
3. Check the signature of the files:
30
<pre>
31
gpg --armor --verify path/to/replicant-4.2-galaxysmtd.sig path/to/replicant-4.2-galaxysmtd.zip
32
gpg --armor --verify path/to/recovery.img.sig path/to/recovery.img
33
</pre>
34
4. Make sure the check succeeds, *do not install anything if it doesn't*!
35
5. Check the checksum of the files:
36
<pre>
37
md5sum -c galaxysmtd.md5
38
</pre>
39
6. Make sure the check succeeds, *do not install anything if it doesn't*!
40 1 Paul Kocialkowski
41 19 Paul Kocialkowski
h2. Installing heimdall
42 1 Paul Kocialkowski
43 20 Paul Kocialkowski
The heimdall tool is required to flash the recovery image to the device.
44 19 Paul Kocialkowski
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
45 1 Paul Kocialkowski
46 19 Paul Kocialkowski
h2. Copying the files to the device
47
48
There are two means of pushing the system zip to the device:
49
* Using the storage of the device
50 20 Paul Kocialkowski
* Using the ADB tool to perform sideload
51 19 Paul Kocialkowski
52
h3. Using the storage of the device
53
54 1 Paul Kocialkowski
You can either complete this step by using the device's internal storage or by using an external micro-SD card.
55
56
h4. Using the internal storage
57
58 11 Paul Kocialkowski
1. Make sure the device is started up and has an Android system running
59 1 Paul Kocialkowski
2. Connect the USB cable to both the computer and the device
60
3. Enable USB mass storage on the device
61
4. Mount the mass storage on the computer
62 19 Paul Kocialkowski
5. Copy the @replicant-4.2-galaxysmtd.zip@ file at the origin of the mass storage
63
6. Safely unmount the mass storage on the computer
64
7. Disable USB mass storage on the device
65 11 Paul Kocialkowski
66
h4. Using a micro-SD card
67
68 1 Paul Kocialkowski
1. Connect the micro-SD card to the computer (e.g. using an USB card reader)
69
2. Mount the micro-SD card on the computer
70 19 Paul Kocialkowski
3. Copy the @replicant-4.2-galaxysmtd.zip@ file at the origin of the micro-SD card
71
4. Safely unmount the micro-SD card on the computer
72
5. Disconnect the micro-SD card from the computer
73
6. Insert the micro-SD card in the device (make sure it is turned off before inserting the card)
74
75 20 Paul Kocialkowski
h3. Installing ADB
76 19 Paul Kocialkowski
77 1 Paul Kocialkowski
Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
78 19 Paul Kocialkowski
79
h2. Preparing the device
80
81 20 Paul Kocialkowski
The next step in the installation process is to prepare the device for heimdall mode.
82 1 Paul Kocialkowski
83
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
84
2. Start the device by holding the following key combination: *Volume down, Select, Power*
85
3. Hold the key combination until the device shows *Downloading*
86
4. Connect the USB cable to both the computer and the device
87
88
h2. Installing the images
89
90
Now that both the computer and the device are set up, it is time to actually install the images to the device.
91
92 19 Paul Kocialkowski
1. Install the recovery image to the device:
93 1 Paul Kocialkowski
<pre>
94 19 Paul Kocialkowski
heimdall flash --KERNEL path/to/recovery.img
95 1 Paul Kocialkowski
</pre>
96
97 19 Paul Kocialkowski
2. Make sure the device reboots to recovery
98
3. Select *install zip* (using the volume keys to navigate and the power key to select)
99
100
h3. Using the storage of the device
101
102
h4. Using the internal storage
103
104
4. Select *install zip from internal sdcard*
105
5. Select the system zip: *replicant-4.2-galaxysmtd.zip*
106
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
107
6. Confirm the installation
108
109
h4. Using a micro-SD card
110
111 1 Paul Kocialkowski
4. Select *install zip from sdcard*
112 19 Paul Kocialkowski
5. Select the system zip: *replicant-4.2-galaxysmtd.zip*
113
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
114
6. Confirm the installation
115
116 20 Paul Kocialkowski
h3. Using ADB sideload
117 19 Paul Kocialkowski
118
4. Select *install zip from sideload*
119
5. Back to the host computer, load the system zip with sideload:
120
<pre>
121
adb sideload path/to/replicant-4.2-galaxysmtd.zip
122
</pre>
123
6. Make sure the file is being transfered
124
125
h3. Completing the installation
126
127
8. Select *Go Back* (if necessary) to get back to the general menu
128 12 Paul Kocialkowski
8. Select *wipe data/factory reset*
129
9. Confirm the data wipe by selecting *Yes -- delete all user data*
130
10. Select *Reboot system now* to reboot the device
131 1 Paul Kocialkowski
132
*Your device should now be running Replicant!*