Galaxy S Installation¶
	Warning: flashing another operating system like Replicant may void your warranty and will erase the data stored on the device.
	
Prerequisites¶
	
	- Your device must run Android 2.3 (we cannot use the 2.2 partition layout)
- Your device must be ready to run CyanogenMod (see http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S:_Full_Update_Guide)
- It is a good idea to flash CyanogenMod before Replicant as it'll solve possible issues with the modem image (it must be located at /radio/modem.bin and symlinked to /dev/block/bml12)
Download the files¶
	
	
Copy the files to the device¶
	
Using the internal memory¶
	
	- Mount usb storage from the current system of your Galaxy S phone
- Create a directory at the root of the usb storage
- Copy the downloaded images and md5 checksum to this directory
Using a µSD card¶
	
	- Mount the µSD card, make sure it's fat32
- Create a directory at the root of the µSD card
- Copy the downloaded images and md5 checksum to this directory
Prepare the phone¶
	
	- Turn the phone completely off, remove any connected cable
- Boot in "Download" mode by holding VOL-, Select and Power buttons together
- Connect a microUSB cable to the phone
- Flash recovery image with heimdall:
 
./heimdall flash --kernel path/to/recovery.img
 
Flash the images¶
	
	- Select flash images
- Choose the location of the images (internal sdcard is the actual sdcard)
- Confirm flash
- Get back to the general menu
- Select wipe data/factory reset
- Confirm wipe
- Reboot
Your device is now running Replicant!