Test/Flashing your device: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
====Notes About Terminology====
====Notes About Terminology====
* Firefox OS is frequently referred to by its code name (and original name) ''B2G''.   
* Firefox OS is frequently referred to by its code name (and original name) ''B2G''.   
* The files we use to flash the device are referred to as images, [http://en.wikipedia.org/wiki/Read-only_memory ROMs] or sometimes builds.
* The files we use to flash the device are referred to as images, [http://en.wikipedia.org/wiki/Read-only_memory ROMs] or builds.
* The proper abbreviation for Firefox OS is ''FxOS''.
* The proper abbreviation for Firefox OS is ''FxOS''.
* The process of [http://en.wikipedia.org/wiki/Flashing_%28technology%29 ''flashing''] refers to writing the ROMs to the device to update the operating system to a different version.
* The process of [http://en.wikipedia.org/wiki/Flashing_%28technology%29 ''flashing''] refers to writing the ROMs to the device to update the operating system to a different version.
Line 7: Line 7:
----
----
If you're looking to build B2G, you want to [https://wiki.mozilla.org/FirefoxOS/TCP/Patching go here].
If you're looking to build B2G, you want to [https://wiki.mozilla.org/FirefoxOS/TCP/Patching go here].
'''These instructions are aimed at Windows users.'''


==Flashing Your Device==
==Flashing Your Device==
* Install the [https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Connecting_a_Firefox_OS_device_to_the_desktop Android Debug Bridge (adb)] onto your computer. Note the special considerations for Windows 8, Windows XP, Linux and Mac on that page.
* Use [http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/ these instructions] to install the Android Debug Bridge (ADB).
* Ensure ''Remote Debugging'' is enabled on your device per the '''Setting up the device''' section of the above link.
** Please note, under the '''Enable USB Debugging''' section, the setting can be found in Firefox OS in the ''Settings'' app under <code>Device Information</code> > <code>More Information</code> > <code>Developer</code>.  In the developer menu, check "Remote debugging".
* [Get the image files for Firefox OS](link to "Getting Builds" wiki page)
** Follow all instructions including listing the device and installing additional USB drivers if necessary.
* Move or extract the images files into the same folder containing adb and fastboot.
* If you are on Windows 8 or Windows XP Home Edition see these [https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Connecting_a_Firefox_OS_device_to_the_desktop#Special_instructions_for_Windows special considerations] if you have issues installing drivers or detecting the device.
* Plug the device into your computer with the USB cable. (Windows may try to update drivers but will fail to find any.)
* [(link)Download the image files] for your Flatfish device.
* Open the folder containing adb and the image files in a Windows Explorer window
* Move or extract the image files into the same folder containing adb.
* '''While holding shift''' right click on the white background of the file area and select ''Open command window here''
* The device should be powered on and plugged into your computer with the USB cable.
[[Image:Context_menu.png]]
* In the Command window you opened earlier type <code>adb reboot boot-fastboot</code> <br>The tablet should now display the Firefox OS logo.
* In the Command window test that the device is detected by typing <code>adb devices</code> and hitting enter. If the result shows the device name to be ''???????????? device'', this is ok as long as it can see the device.
Enter the following commands
* Type <code>adb reboot boot-fastboot</code> <br>The tablet should now display the Firefox OS logo.
Enter the following commands (hitting enter each time of course)
  fastboot erase cache
  fastboot erase cache


If you are moving between major versions (such as 1.4 to 2.0 or 2.0 to 1.4) then run these commands, if not then you may want to skip this as it deletes all user data such as downloaded apps or emails.
If you are moving between major versions (such as 1.4 > 2.0 or 2.0 > 1.4) then run the following commands, if not then you may want to skip them as they delete all user data such as downloaded apps or emails.
  fastboot erase data
  fastboot erase data
  fastboot flash data userdata.img
  fastboot flash data userdata.img


If boot.img was not included in your download, skip this:
If ''boot.img'' was not included in the image files you downloaded, skip this:
  fastboot flash boot boot.img
  fastboot flash boot boot.img


Line 34: Line 34:
  fastboot reboot
  fastboot reboot
The tablet should reboot into a fresh install of Firefox OS.
The tablet should reboot into a fresh install of Firefox OS.
To check your build version open the Settings app, then ''Device Information'' > ''More Information'' > ''Firmware Revision''.  The date of your current revision is embedded as YYYYMMDD.

Latest revision as of 03:28, 26 May 2014

Notes About Terminology

  • Firefox OS is frequently referred to by its code name (and original name) B2G.
  • The files we use to flash the device are referred to as images, ROMs or builds.
  • The proper abbreviation for Firefox OS is FxOS.
  • The process of flashing refers to writing the ROMs to the device to update the operating system to a different version.
  • Flatfish is the code name we use to refer to the 10" tablets being tested.

If you're looking to build B2G, you want to go here.

These instructions are aimed at Windows users.

Flashing Your Device

  • Use these instructions to install the Android Debug Bridge (ADB).
    • Please note, under the Enable USB Debugging section, the setting can be found in Firefox OS in the Settings app under Device Information > More Information > Developer. In the developer menu, check "Remote debugging".
    • Follow all instructions including listing the device and installing additional USB drivers if necessary.
  • If you are on Windows 8 or Windows XP Home Edition see these special considerations if you have issues installing drivers or detecting the device.
  • [(link)Download the image files] for your Flatfish device.
  • Move or extract the image files into the same folder containing adb.
  • The device should be powered on and plugged into your computer with the USB cable.
  • In the Command window you opened earlier type adb reboot boot-fastboot
    The tablet should now display the Firefox OS logo.

Enter the following commands

fastboot erase cache

If you are moving between major versions (such as 1.4 > 2.0 or 2.0 > 1.4) then run the following commands, if not then you may want to skip them as they delete all user data such as downloaded apps or emails.

fastboot erase data
fastboot flash data userdata.img

If boot.img was not included in the image files you downloaded, skip this:

fastboot flash boot boot.img

Note that flashing system.img will probably take over a minute and the screen may display odd colors. Please don't freak out.

fastboot flash system system.img

Once the command window indicates success, it's time to reboot:

fastboot reboot

The tablet should reboot into a fresh install of Firefox OS.

To check your build version open the Settings app, then Device Information > More Information > Firmware Revision. The date of your current revision is embedded as YYYYMMDD.