Following these preparations, you have to flash an extended recoverymode onto your mobile phone because the provided one does not allow theinstallation of non-verified ROMs. For this I usedheimdall, areverse-engineered implementation of a Samsung-internal USB protocol forlow-level control of android devices. Most importantly it lets youinspect your phones partition table and flash images onto them.