Test/Flashing your device

From MozillaWiki
< Test
Revision as of 22:57, 23 May 2014 by Caspy7 (talk | contribs)
Jump to navigation Jump to search

Flashing your device

(special box) 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 (http://en.wikipedia.org/wiki/Read-only_memory) or sometimes builds. The process of "flashing" (link) refers to writing the ROMs to the device to update the operating system to a different version. http://en.wikipedia.org/wiki/Flashing_%28technology%29 Flatfish is the code name we use to refer to the 10" tablets (Foxconn InFocus New Tab F1) being tested. (/special box)

==

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

- Install the Android Debug Bridge (adb) (https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Connecting_a_Firefox_OS_device_to_the_desktop) 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" [include screenshot] - Test that the device is detected by typing *adb devices* and hitting enter. The result may show 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.