B2G/QA/Flashing A Daily Build: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
= Downloading a build = | = Downloading a build = | ||
* The main builds are stored daily in the [https://releases.mozilla.com/b2g/ FTP directory]. | * The main builds are stored daily in the [https://releases.mozilla.com/b2g/ FTP directory]. Note: These are proprietary and cannot be distributed. | ||
** For directory access, please see someone from the Mozilla QA team. (tchung@mozilla.com, jammink@mozilla.com) | |||
= Pre setup = | = Pre setup = | ||
| Line 13: | Line 12: | ||
* Windows: install [http://developer.android.com/sdk/index.html Android SDK and tools] | * Windows: install [http://developer.android.com/sdk/index.html Android SDK and tools] | ||
** Add adb to your path (lives in /platform-tools) | ** Add adb to your path (lives in /platform-tools) | ||
** install [http://cygwin.com/install.html cygwin] | ** install [http://cygwin.com/install.html cygwin] | ||
* NOTE: Make sure the debug settings on the phone are turned on. | |||
** Example for Inari: Settings > Device Information > More Information > Developer | |||
= Step 1 = | = Step 1 = | ||
1. Download the latest build from the Daily FTP directory. It will look like <name_date.zip> format | 1. Download the latest build from the Daily FTP directory. It will look like <name_date.zip> format | ||
2. Unzip it into a folder. | 2. Unzip it into a folder. | ||
$ cd b2g-distro | |||
= Step 2 = | = Step 2 = | ||
1. Hook up a b2g phone to your computer via USB | 1. Hook up a b2g phone to your computer via USB | ||
2. in command line: | 2. in command line: | ||
$ ./flash.sh | |||
3. Verify the device will begin flashing, and the phone starts up after it's completed. | |||
Rebooting into device bootloader... | |||
Flashing system images... | |||
< waiting for device > | |||
erasing 'cache'... | |||
OKAY [ 0.237s] | |||
finished. total time: 0.237s | |||
erasing 'userdata'... | |||
OKAY [ 0.006s] | |||
finished. total time: 0.006s | |||
sending 'boot' (8652 KB)... | |||
OKAY [ 0.734s] | |||
writing 'boot'... | |||
OKAY [ 2.058s] | |||
finished. total time: 2.792s | |||
sending 'userdata' (41776 KB)... | |||
OKAY [ 3.525s] | |||
writing 'userdata'... | |||
OKAY [ 7.854s] | |||
finished. total time: 11.380s | |||
sending 'system' (125990 KB)... | |||
OKAY [ 10.592s] | |||
writing 'system'... | |||
OKAY [ 28.491s] | |||
finished. total time: 39.084s | |||
Rebooting... | |||
rebooting... | |||
finished. total time: 0.003s | |||
Setting system permissions... | |||
remount succeeded | |||
Attempting to set the time on the device... | |||
time 1354033296 -> 1354033296.0 | |||
That's it! Happy testing! | |||
That's it! | |||
Latest revision as of 18:49, 30 September 2013
Instructions on Flashing a Daily Build
Daily builds are created from a manifest file, that contains commits from different parts of the stack. (gaia, gonk, and gecko). Our Engineering team has set up a daily repository for daily builds being built against specific devices.
Downloading a build
- The main builds are stored daily in the FTP directory. Note: These are proprietary and cannot be distributed.
- For directory access, please see someone from the Mozilla QA team. (tchung@mozilla.com, jammink@mozilla.com)
Pre setup
- Mac/Linux: install Android SDK and tools
- Add adb to your path (lives in /platform-tools)
- Windows: install Android SDK and tools
- Add adb to your path (lives in /platform-tools)
- install cygwin
- NOTE: Make sure the debug settings on the phone are turned on.
- Example for Inari: Settings > Device Information > More Information > Developer
Step 1
1. Download the latest build from the Daily FTP directory. It will look like <name_date.zip> format 2. Unzip it into a folder.
$ cd b2g-distro
Step 2
1. Hook up a b2g phone to your computer via USB 2. in command line:
$ ./flash.sh
3. Verify the device will begin flashing, and the phone starts up after it's completed.
Rebooting into device bootloader... Flashing system images... < waiting for device > erasing 'cache'... OKAY [ 0.237s] finished. total time: 0.237s erasing 'userdata'... OKAY [ 0.006s] finished. total time: 0.006s sending 'boot' (8652 KB)... OKAY [ 0.734s] writing 'boot'... OKAY [ 2.058s] finished. total time: 2.792s sending 'userdata' (41776 KB)... OKAY [ 3.525s] writing 'userdata'... OKAY [ 7.854s] finished. total time: 11.380s sending 'system' (125990 KB)... OKAY [ 10.592s] writing 'system'... OKAY [ 28.491s] finished. total time: 39.084s Rebooting... rebooting...
finished. total time: 0.003s Setting system permissions... remount succeeded Attempting to set the time on the device... time 1354033296 -> 1354033296.0
That's it! Happy testing!