Project

General

Profile

GalaxySI9000Installation » History » Version 16

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

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