Firefox OS/TCP/Flashing the Flatfish bootloader: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
If you have not previously flashed this bootloader update (version 2.0) to your flatfish device we recommend you do so. If you already have, there is no need to do so again.
We recommend you that you flash your Flatfish device with this bootloader update (version 2.0) if you have not already done so. Flashing the bootloader is not strictly necessary in order to flash Firefox OS but it does offer advantages. You only need update the bootloader once as subsequent flashing and resets will not affect it.


This bootloader update fixes the problem of not being able to flash a working OS should your tablet become completely disabled. <strike>It also fixes the ability for Mac users to flash the OS.</strike> The problem of Mac users not being able to flash the OS remains.  This update also allows you to enter fastboot mode using the tablet buttons.  
This bootloader update fixes the problem of not being able to flash a working OS should your tablet become completely disabled by allowing you to enter fastboot mode using the tablet buttons.  


Note: This method is '''Windows only''' but works fine from Windows inside a virtual machine such as VirtualBox, but see the [[#Special_Instructions_for_Virtual_Machines |special instructions]] at the bottom of this page to accomplish this. If your main machine is ''Linux'' then you can update the bootloader on Windows as described below and then follow these [[FirefoxOS/TCP/Flashing_your_device/|these instructions]] to flash Firefox OS.
Note: This method is '''Windows only''' but works from Windows inside a virtual machine such as VirtualBox on Linux.  See the [[#Special_Instructions_for_Virtual_Machines |special instructions]] at the bottom of this page to accomplish this.  


<br />Also, this will delete all internal user data (such as installed apps).
'''Linux''' users then you can update the bootloader on Windows (or Mac) as described below and then follow these [[FirefoxOS/TCP/Flashing_your_device/|these instructions]] to flash Firefox OS.
 
'''Mac OS X''' users, you can flash the bootloader using [http://dl.cubieboard.org/software/tools/livesuit/LiveSuit_ForMac.zip LiveSuite for Mac]. Just follow the [[#Repairing_a_bricked_device|bricked device]] instructions. (This has been tested on OS X 10.9) Sorry, but Mac users are currently unable to flash the bootloader from a virtual machine. You still need a virtual machine to flash Firefox OS.
 
This will delete all internal user data (such as installed apps).


# Downloads and installs:
# Downloads and installs:
#*Download the [https://www.dropbox.com/sh/lrwkifcira0608t/AACPmK_gVxF_1XPctpDsWkOha/sun6i_boot-fastboot_v2.0.img recovery image]
#*Download the [https://www.dropbox.com/sh/lrwkifcira0608t/AACPmK_gVxF_1XPctpDsWkOha/sun6i_boot-fastboot_v2.0.img recovery image]
#*Download these [https://www.dropbox.com/sh/b2py1btcwstqldl/AAB7RSLHNYoUJYJjHrH8YrPCa/stable known-working build files] (img files) of Firefox OS. Place them into a folder on your computer.
#*Download known-working build files (img files) from the [https://wiki.mozilla.org/Firefox_OS/TCP/Build_Status build status] page of Firefox OS. Place them into a folder on your computer.
#*Download [https://www.dropbox.com/s/qet7iff8vpewnjt/flash-all-fastboot.bat this script] and place it in the same folder as the Firefox OS build files.
#*Download [https://www.dropbox.com/s/qet7iff8vpewnjt/flash-all-fastboot.bat this script] and place it in the same folder as the Firefox OS build files.
#*Extract [http://test1.manichord.com/moz-tcp/ADB_Fastboot_Windows_Only.zip this file] into the same folder.
#*Extract [http://test1.manichord.com/moz-tcp/ADB_Fastboot_Windows_Only.zip this file] into the same folder.
#*Download and install [https://www.dropbox.com/s/bmhvsrapuqj30da/PhoenixSuit_EN.msi PhoenixSuit]
#*Download and install [https://www.dropbox.com/s/bmhvsrapuqj30da/PhoenixSuit_EN.msi PhoenixSuit]
#**Windows 8.1 users: you will need to [http://www.howtogeek.com/167723/how-to-disable-driver-signature-verification-on-64-bit-windows-8.1-so-that-you-can-install-unsigned-drivers/ disable driver signature verification] prior to installing PhoenixSuit.
#**Windows 8 64-bit users: It may fail to install the USB Device Driver. This is ok.
#**Windows 8 64-bit users: It may fail to install the USB Device Driver. This is ok.
# Open the PhoenixSuit tool.
# Ensure the your tablet is booted and running Firefox OS normally (if you cannot boot, follow [[#Repairing_a_bricked_device |these instructions]])
# Click the ''Firmware'' button then the ''Image'' button and locate the fastboot recovery image file (''sun6i_boot-fastboot_v2.0.img'').
# Open PhoenixSuit
# Power off the tablet and plug the USB cable into just your tablet but nothing else (not your computer or a power adapter).
# Plug the tablet into your computer via the USB cord
# While holding the volume(-) button plug in the USB cable to your computer.<br>If you do not immediately see a prompt to format in PhoenixSuit, press the power button repeatedly (around 10x).
# Once device information (e.g. ''Model: flatfish'') shows on the PhoenixSuit window, click the ''Firmware'' button.
# In PhoenixSuit click the Yes button to allow Format mode. <br>The image will be written and your device should now display ''FASTBOOT'' to indicate it is in fastboot mode. The bootloader has now been flashed.
# Click ''Image'' and locate the recovery image file (''sun6i_boot-fastboot_v2.0.img'').
# Run the ''flash-all-fastboot'' file you placed in the folder with your build files. This will flash a working OS.
# When prompted to upgrade the device firmware, click ''Yes''.
#* If it stops at <code>< waiting for device ></code> try unplugging and replugging the cord.  If this does not work, follow [https://wiki.mozilla.org/FirefoxOS/TCP/Installing_USB_Drivers_on_Windows these instructions] to install USB drivers and run ''flash-all-fastboot'' again.
# Click ''Yes'' for the mandatory/forced format. <br>The image will be written and after a quick reboot your device should now display ''FASTBOOT'' to indicate it is in fastboot mode. <br>The bootloader has now been flashed. You may now close PhoenixSuit.
 
Flashing Firefox OS:
* '''Linux Users''': Follow [https://wiki.mozilla.org/FirefoxOS/TCP/Flashing_your_device/ these instructions] making sure to write ''userdata.img''.
* '''Windows users''': Run the ''flash-all-fastboot'' file you placed in the folder with your build files. This will flash a working OS.
** If it stops at <code>< waiting for device ></code> try unplugging and replugging the cord.  If this does not work, follow [https://wiki.mozilla.org/FirefoxOS/TCP/Installing_USB_Drivers_on_Windows these instructions] to install USB drivers and run ''flash-all-fastboot'' again.


Remember, this is development software and you will run into issues with the OS (that's why you're here!) so please report them. '''Here are a few notable issues with the current ''stable'' build:'''
Remember, this is development software and you will run into issues with the OS (that's why you're here!) so please report them. '''Here are a few notable issues with the current ''stable'' build:'''
Line 28: Line 38:
After everything is complete, you are free to uninstall PhoenixSuit if desired, but when prompted, do not remove the ADB/USB drivers.
After everything is complete, you are free to uninstall PhoenixSuit if desired, but when prompted, do not remove the ADB/USB drivers.


====Enter Fastboot mode using the hardware buttons====
In the future, if you need to enter fastboot mode manually:
In the future, if you need to enter fastboot mode manually:
# Power off the device.
# Power off the device.
# Press and HOLD the power key (for about 4~5 seconds)  
# Press and HOLD the power key (do not release until after the next step)
# When the boot logo (Firefox OS Contribution Program) appears, press and HOLD Volume + key (for about 2 second) until the Fastboot logo appears. Do not let go of the power button when pressing volume +.
# When the boot logo (Firefox OS Contribution Program) appears, press and HOLD the ''Volume+'' key until the Fastboot logo appears. You may now release both buttons.
====Special Instructions for Virtual Machines====
====Special Instructions for Virtual Machines====
During the process to flash the bootloader, the device will lose the USB connection momentarily and it must be picked up again immediately, so set your virtual machine to capture all connected USB devices automatically.  Below are instructions for VirtualBox.
During the process to flash the bootloader, the device will lose the USB connection momentarily and it must be picked up again immediately, so set your virtual machine to capture all connected USB devices automatically.  Below are instructions for VirtualBox.


In VirtualBox, go into the USB area of the Virtual Machine's settings (if the machine is running: ''Machine'' > ''Settings'') and create a general filter, the top option on the right toolbar, which will capture all USB connections on your computer.
In VirtualBox, go into the USB area of the Virtual Machine's settings (if the machine is running: ''Machine'' > ''Settings'') and create a general filter, the top option on the right toolbar, which will capture all USB connections on your computer.
[[File:VirtualBox_USB_Setting.png]]
[[File:VirtualBox_USB_Setting.png]]<br />
 
You can remove this filter after the flash is successful if desired.
You can remove this filter after the flash is successful if desired.
====Repairing a bricked device====
If you have never flashed this updated bootloader (2.0 or above) and are unable to boot the device normally:
# Open PhoenixSuit (or LiveSuite on a Mac).
# Click the ''Firmware'' button then the ''Image'' button and locate the fastboot recovery image file (''sun6i_boot-fastboot_v2.0.img'').
# Power off the tablet completely and plug the USB cable into just your tablet but nothing else (not your computer or a power adapter).
# While holding the volume(-) button plug in the USB cable to your computer.<br>If you do not immediately see a prompt to format in PhoenixSuit, press the power button repeatedly (around 10x).
# In PhoenixSuit click the Yes button to allow Format mode. <br>The image will be written and after a quick reboot your device should now display ''FASTBOOT'' to indicate it is in fastboot mode. <br>The bootloader has now been flashed.  You may now close PhoenixSuit.
# You may now flash a working OS (continue from the point further up this page that says ''You may now close PhoenixSuit.'')

Latest revision as of 11:39, 11 February 2015

We recommend you that you flash your Flatfish device with this bootloader update (version 2.0) if you have not already done so. Flashing the bootloader is not strictly necessary in order to flash Firefox OS but it does offer advantages. You only need update the bootloader once as subsequent flashing and resets will not affect it.

This bootloader update fixes the problem of not being able to flash a working OS should your tablet become completely disabled by allowing you to enter fastboot mode using the tablet buttons.

Note: This method is Windows only but works from Windows inside a virtual machine such as VirtualBox on Linux. See the special instructions at the bottom of this page to accomplish this.

Linux users then you can update the bootloader on Windows (or Mac) as described below and then follow these these instructions to flash Firefox OS.

Mac OS X users, you can flash the bootloader using LiveSuite for Mac. Just follow the bricked device instructions. (This has been tested on OS X 10.9) Sorry, but Mac users are currently unable to flash the bootloader from a virtual machine. You still need a virtual machine to flash Firefox OS.

This will delete all internal user data (such as installed apps).

  1. Downloads and installs:
    • Download the recovery image
    • Download known-working build files (img files) from the build status page of Firefox OS. Place them into a folder on your computer.
    • Download this script and place it in the same folder as the Firefox OS build files.
    • Extract this file into the same folder.
    • Download and install PhoenixSuit
      • Windows 8.1 users: you will need to disable driver signature verification prior to installing PhoenixSuit.
      • Windows 8 64-bit users: It may fail to install the USB Device Driver. This is ok.
  2. Ensure the your tablet is booted and running Firefox OS normally (if you cannot boot, follow these instructions)
  3. Open PhoenixSuit
  4. Plug the tablet into your computer via the USB cord
  5. Once device information (e.g. Model: flatfish) shows on the PhoenixSuit window, click the Firmware button.
  6. Click Image and locate the recovery image file (sun6i_boot-fastboot_v2.0.img).
  7. When prompted to upgrade the device firmware, click Yes.
  8. Click Yes for the mandatory/forced format.
    The image will be written and after a quick reboot your device should now display FASTBOOT to indicate it is in fastboot mode.
    The bootloader has now been flashed. You may now close PhoenixSuit.

Flashing Firefox OS:

  • Linux Users: Follow these instructions making sure to write userdata.img.
  • Windows users: Run the flash-all-fastboot file you placed in the folder with your build files. This will flash a working OS.
    • If it stops at < waiting for device > try unplugging and replugging the cord. If this does not work, follow these instructions to install USB drivers and run flash-all-fastboot again.

Remember, this is development software and you will run into issues with the OS (that's why you're here!) so please report them. Here are a few notable issues with the current stable build:

  • At the end of the intial First Time Experience setup you will see a File not Found error. Shut down the tablet and restart to move past this.
  • If your screen starts shutting down after only a few seconds when inside an app, go to Settings > Screen lock and tap the toggle to disable it.

After everything is complete, you are free to uninstall PhoenixSuit if desired, but when prompted, do not remove the ADB/USB drivers.

Enter Fastboot mode using the hardware buttons

In the future, if you need to enter fastboot mode manually:

  1. Power off the device.
  2. Press and HOLD the power key (do not release until after the next step)
  3. When the boot logo (Firefox OS Contribution Program) appears, press and HOLD the Volume+ key until the Fastboot logo appears. You may now release both buttons.

Special Instructions for Virtual Machines

During the process to flash the bootloader, the device will lose the USB connection momentarily and it must be picked up again immediately, so set your virtual machine to capture all connected USB devices automatically. Below are instructions for VirtualBox.

In VirtualBox, go into the USB area of the Virtual Machine's settings (if the machine is running: Machine > Settings) and create a general filter, the top option on the right toolbar, which will capture all USB connections on your computer. VirtualBox USB Setting.png

You can remove this filter after the flash is successful if desired.

Repairing a bricked device

If you have never flashed this updated bootloader (2.0 or above) and are unable to boot the device normally:

  1. Open PhoenixSuit (or LiveSuite on a Mac).
  2. Click the Firmware button then the Image button and locate the fastboot recovery image file (sun6i_boot-fastboot_v2.0.img).
  3. Power off the tablet completely and plug the USB cable into just your tablet but nothing else (not your computer or a power adapter).
  4. While holding the volume(-) button plug in the USB cable to your computer.
    If you do not immediately see a prompt to format in PhoenixSuit, press the power button repeatedly (around 10x).
  5. In PhoenixSuit click the Yes button to allow Format mode.
    The image will be written and after a quick reboot your device should now display FASTBOOT to indicate it is in fastboot mode.
    The bootloader has now been flashed. You may now close PhoenixSuit.
  6. You may now flash a working OS (continue from the point further up this page that says You may now close PhoenixSuit.)