Test/Flashing your device: Difference between revisions

 
(7 intermediate revisions by the same user not shown)
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==
* 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).
* 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).
** 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>.
** 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".
**Follow all instructions including listing the device and installing additional USB drivers if necessary.
** 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 [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.
* 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.
* Follow [https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Connecting_a_Firefox_OS_device_to_the_desktop these instructions] to connect the device to your computer and install adb. Note the special considerations for Windows 8, Windows XP, Linux and Mac on that page.
* [(link)Download the image files] for your Flatfish device.
* Ensure ''Remote Debugging'' is enabled on your device per the '''Setting up the device''' section of the above link.
* Move or extract the image files into the same folder containing adb.
* [Get the image files for Firefox OS](link to "Getting Builds" wiki page)
* The device should be powered on and plugged into your computer with the USB cable.
* Move or extract the image files into the same folder containing adb and fastboot.
* In the Command window you opened earlier type <code>adb reboot boot-fastboot</code> <br>The tablet should now display the Firefox OS logo.
* Plug the device into your computer with the USB cable. (Windows may try to update drivers but will fail to find any.)
Enter the following commands
* Open the folder containing adb and the image files in a Windows Explorer window
* '''While holding shift''' right click on the white background of the file area and select ''Open command window here''
[[Image:Context_menu.png]]
* 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.
* 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) 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.
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


Confirmed users
247

edits