Test/Flashing your device

< Test
Revision as of 00:23, 24 May 2014 by Caspy7 (talk | contribs)

A couple notes about terminology

  • Firefox OS is frequently referred to by it's code name (and original name) B2G.
  • The proper abbreviation for Firefox OS is FxOS.
  • The files we use to flash the device are referred to as images, ROMs or sometimes builds.
  • 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 (Foxconn InFocus New Tab F1) being tested.

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

Flashing Your Device

  • Install the Android Debug Bridge (adb) onto your computer. Note the special considerations for Windows 8, Windows XP, Linux and Mac on that page.
  • [Get the image files for Firefox OS](link to "Getting Builds" wiki page)
  • Move or extract the images files into the same folder containing adb and fastboot.
  • Plug the device into your computer with the USB cable. (Windows may try to update drivers but will fail to find any.)
  • Open a Windows Explorer window
  • While holding shift right click on the white background of the file area and select "Open command window here"

 

  • In the Command window test that the device is detected by typing adb devices and hitting enter. If the result shows the device name to be ???????????? device, this is ok as long as it can see the device.
  • Type adb reboot boot-fastboot
  • The tablet should now display the Firefox OS logo.

Enter the following commands (hitting enter each time of course) 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.

fastboot erase data
fastboot flash data userdata.img

If boot.img was not included in your download, 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.