Project

General

Profile

Actions

Galaxy S (I9000) Installation

Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.

Prerequisites

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.

Before the installation

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!

Flashing the Android 2.3 partitioning layout

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.

Installing CyanogenMod

It is required to install CyanogenMod prior to Replicant as it'll solve possible issues with the modem image (the modem image must me installed in /radio/modem.bin and symlinked to /dev/block/bml12).
You can find official CyanogenMod installation instructions at: https://web.archive.org/web/20160607042845/https://wiki.cyanogenmod.org/w/Install_CM_for_galaxysmtd

Downloading the files

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.

1. Find out what the latest image is: check out the Last image part of the general table on GalaxySI9000
2. Download all the files listed for the device (including the checksum and the signatures) on ReplicantImages for the latest image
2. Make sure you have added the Replicant release key to your GPG keyring
3. Check the signature of the files:

gpg --armor --verify path/to/replicant-4.2-galaxysmtd.zip.asc path/to/replicant-4.2-galaxysmtd.zip
gpg --armor --verify path/to/recovery.img.asc path/to/recovery.img

4. Make sure the check succeeds, do not install anything if it doesn't!
5. Check the checksum of the files:
md5sum -c galaxysmtd.md5

6. Make sure the check succeeds, do not install anything if it doesn't!

Installing heimdall

The heimdall tool is required to flash the recovery image to the device.
Instructions to install heimdall: ToolsInstallation

Copying the files to the device

There are two means of pushing the system zip to the device:
  • Using the storage of the device
  • Using the ADB tool to perform sideload

Using the storage of the device

You can either complete this step by using the device's internal storage or by using an external microSD card.

Using the internal storage

1. Make sure the device is started up and has an Android system running
2. Connect the USB cable to both the computer and the device
3. Enable USB mass storage on the device
4. Mount the mass storage on the computer
5. Copy the replicant-4.2-galaxysmtd.zip file at the origin of the mass storage
6. Safely unmount the mass storage on the computer
7. Disable USB mass storage on the device

Using a microSD card

1. Connect the microSD card to the computer (e.g. using an USB card reader)
2. Mount the microSD card on the computer
3. Copy the replicant-4.2-galaxysmtd.zip file at the origin of the microSD card
4. Safely unmount the microSD card on the computer
5. Disconnect the microSD card from the computer
6. Insert the microSD card in the device (make sure it is turned off before inserting the card)

Installing ADB

Instructions to install ADB: ToolsInstallation

Preparing the device

The next step in the installation process is to prepare the device for heimdall mode.

1. Make sure the device is completely turned off and the USB cable is disconnected from the device
2. Start the device by holding the following key combination: Volume down, Select, Power
3. Hold the key combination until the device shows Downloading
4. Connect the USB cable to both the computer and the device

Installing the images

Now that both the computer and the device are set up, it is time to actually install the images to the device.

1. Install the recovery image to the device:

heimdall flash --KERNEL path/to/recovery.img

2. Make sure the device reboots to recovery
3. Select install zip (using the volume keys to navigate and the power key to select)

Using the storage of the device

Using the internal storage

4. Select install zip from sdcard
5. Select the system zip: replicant-4.2-galaxysmtd.zip
Note: if your device was running Android 4.2 and later, it may be located in the 0 directory
6. Confirm the installation

Using a microSD card

4. Select install zip from external sdcard
5. Select the system zip: replicant-4.2-galaxysmtd.zip
Note: if your device was running Android 4.2 and later, it may be located in the 0 directory
6. Confirm the installation

Using ADB sideload

4. Select install zip from sideload
5. Back to the host computer, load the system zip with sideload:

adb sideload path/to/replicant-4.2-galaxysmtd.zip

6. Make sure the file is being transfered

Completing the installation

7. Select Go Back (if necessary) to get back to the general menu
8. Select wipe data/factory reset
9. Confirm the data wipe by selecting Yes -- delete all user data
10. Select Reboot system now to reboot the device

Your device should now be running Replicant!

Updated by Wolfgang Wiedmeyer almost 7 years ago · 27 revisions

Also available in: PDF HTML TXT