mozilla

Revision 13968 of Building B2G for Samsung Galaxy S2

  • Revision slug: Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Galaxy_S2
  • Revision title: Building B2G for Samsung Galaxy S2
  • Revision id: 13968
  • Created:
  • Creator: jhammink
  • Is current revision? No
  • Comment page created, 164 words added

Revision Content

It is assumed you've already setup your build environment and cloned the repositories.

Backing up your Galaxy S2's native OS

You'll want to back up your phone's factory image before attempting to build or flash anything to it.  As it happens, the builds or flash process itself can be unstable and you don't want to end up with a brick.

These instructions assume that you have already installed heimdall.

From some other directory than where you have B2G installed:
$ cd /tmp
$ wget http://cmw.22aaf3.com/c1/recovery/re...4-galaxys2.tar
$ tar xvf recovery-clockwork-*tar
$ adb reboot download


When your phone is in "download" mode, it's ready to be flashed using Odin protocol.

To Flash Clockworked (and backup image):
With your phone in "download" mode, run the following:
$ heimdall flash --kernel zImage

Next, reboot the phone to recovery mode.
$ adb reboot recovery

With the phone in recovery mode, follow the on-screen instructions to make a backup image.

Revision Source

<p>It is assumed you've already <a href="Setting_Up_Boot_to_Gecko_Build_Environment" rel="internal" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment">setup your build environment and cloned the repositories</a>.</p>
<h2>Backing up your Galaxy S2's native OS</h2>
<p>You'll want to back up your phone's factory image before attempting to build or flash anything to it.  As it happens, the builds or flash process itself can be unstable and you don't want to end up with a brick.<br> <br> These instructions assume that you have already <a href="/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment#Installing_Heimdall" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment#Installing_Heimdall">installed heimdall</a>.<br> <br> From some other directory than where you have B2G installed:<br> <code>$ cd /tmp<br> $ wget <a class=" external" href="http://cmw.22aaf3.com/c1/recovery/recovery-clockwork-4.0.1.4-galaxys2.tar" rel="freelink">http://cmw.22aaf3.com/c1/recovery/re...4-galaxys2.tar</a><br> $ tar xvf recovery-clockwork-*tar<br> $ adb reboot download</code><br> <br> When your phone is in "download" mode, it's ready to be flashed using Odin protocol.<br> <br> To Flash Clockworked (and backup image):<br> With your phone in "download" mode, run the following:<br> <code>$ heimdall flash --kernel zImage</code><br> <br> Next, reboot the phone to recovery mode.<br> <code>$ adb reboot recovery</code><br> <br> With the phone in recovery mode, follow the on-screen instructions to make a backup image.</p>
Revert to this revision