mozilla

Revision 217288 of Installing Firefox OS on a mobile device

  • Revision slug: Mozilla/Boot_to_Gecko/Installing_Boot_to_Gecko_on_a_mobile_device
  • Revision title: Installing Boot to Gecko on a mobile device
  • Revision id: 217288
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment new page; page created, 207 words added
Tags: 

Revision Content

{{ B2GMain() }}

Once you've built Boot to Gecko for a mobile device, you can install it. This article will guide you through the process.

Note: The first time you flash your phone, it must have Android 4 (Ice Cream Sandwich) installed. The process will not work correctly otherwise.

Flashing your phone

To flash everything to your phone, simply connect your phone and type:

./flash.sh

That's it. The B2G you've currently got built will flash onto your device.

Added step for the Samsung Galaxy S2

If you're flashing onto the Galaxy S2, there is an additional step to follow. Gaia does not get flashed automatically by the flash.sh script; you'll need to also do:

./flash.sh gaia

Flashing specific partitions to fastboot phones

You can flash specific partitions to fastboot phones (that is, any phone other than the Samsung Galaxy S2). For example:

./flash.sh system
./flash.sh boot
./flash.sh user

Updating specific modules

You can update specific components of B2G by specifying their names when flashing. For example:

./flash.sh gaia
./flash.sh gecko

Next steps

At this point, your phone should be running Boot to Gecko! It's time to experiment, write some code, test, or do some debugging!

Revision Source

<p>{{ B2GMain() }}</p>
<p>Once you've built Boot to Gecko for a mobile device, you can install it. This article will guide you through the process.</p>
<div class="note"><strong>Note:</strong> The first time you flash your phone, it <strong>must</strong> have Android 4 (Ice Cream Sandwich) installed. The process will not work correctly otherwise.</div>
<h2>Flashing your phone</h2>
<p>To flash everything to your phone, simply connect your phone and type:</p>
<pre>./flash.sh
</pre>
<p>That's it. The B2G you've currently got built will flash onto your device.</p>
<h3>Added step for the Samsung Galaxy S2</h3>
<p>If you're flashing onto the Galaxy S2, there is an additional step to follow. Gaia does not get flashed automatically by the flash.sh script; you'll need to also do:</p>
<pre>./flash.sh gaia
</pre>
<h2>Flashing specific partitions to fastboot phones</h2>
<p>You can flash specific partitions to fastboot phones (that is, any phone other than the Samsung Galaxy S2). For example:</p>
<pre>./flash.sh system
./flash.sh boot
./flash.sh user
</pre>
<h2>Updating specific modules</h2>
<p>You can update specific components of B2G by specifying their names when flashing. For example:</p>
<pre>./flash.sh gaia
./flash.sh gecko
</pre>
<h2>Next steps</h2>
<p>At this point, your phone should be running Boot to Gecko! It's time to experiment, <a href="/en/Mozilla/Boot_to_Gecko/Writing_apps_for_Boot_to_Gecko" title="en/Mozilla/Boot_to_Gecko/Writing_apps_for_Boot_to_Gecko">write some code</a>, <a href="/en/Mozilla/Boot_to_Gecko/Testing_Boot_to_Gecko" title="en/Mozilla/Boot_to_Gecko/Testing_Boot_to_Gecko">test</a>, or <a href="/en/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko" title="en/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko">do some debugging</a>!</p>
Revert to this revision