Firefox OS/TCP/Patching: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="color:#00CC33; background:#003300">
= Developing for the Tablet =
= Developing for the Tablet =
<p>The primary Firefox OS build documenation, including pre-requisites, set-up, building, flashing, and FAQs are all available at https://developer.mozilla.org/en-US/Firefox_OS/Building_and_installing_Firefox_OS</p><p>This is meant to be a quick reference guide specific to the Tablet Contribution Program and the first tablet device which is named in the project as "flatfish".</p>  
<p>The primary Firefox OS build documenation, including pre-requisites, set-up, building, flashing, and FAQs are all available at https://developer.mozilla.org/en-US/Firefox_OS/Building_and_installing_Firefox_OS</p><p>This is meant to be a quick reference guide specific to the Tablet Contribution Program and the first tablet device which is named in the project as "flatfish".</p>  
Line 10: Line 8:
# <p>Create an account in github</p> <p>https://github.com/</p>
# <p>Create an account in github</p> <p>https://github.com/</p>
== Download B2G and AOSP source codes of flatfish ==
== Download B2G and AOSP source codes of flatfish ==
# <p>git clone b2g scripts and config files</p><p><code>$<span style="color:#00CC33; background:#003300">git clone git://github.com/mozilla-b2g/B2G.git -b master b2g_flatfish</span></code></p>
# <p>git clone b2g scripts and config files</p><p><code>$<span style="color:#006400; background:#D3D3D3">git clone git://github.com/mozilla-b2g/B2G.git -b master b2g_flatfish</span></code></p>
# <p>configure flatfish and repo sync aosp and b2g source codes</p><p><code>$<span style="color:#00CC33; background:#003300">cd b2g_flatfish</span></code></p><p><code>$<span style="color:#00CC33; background:#003300">./config.sh flatfish</span></code></p><p>You have to wait for a long while to download the source codes depending on the network bandwidth.</p>
# <p>configure flatfish and repo sync aosp and b2g source codes</p><p><code>$<span style="color:#006400; background:#D3D3D3">cd b2g_flatfish</span></code></p><p><code>$<span style="color:#006400; background:#D3D3D3">./config.sh flatfish</span></code></p><p>You have to wait for a long while to download the source codes depending on the network bandwidth.</p>
== Start to build flatfish ==
== Start to build flatfish ==
# <p>Connect flatfish device for extract necessary files at first build</p> <p>The first build will pull necessary files into backup-flatfish which is automatic created by extract-files.sh. You DO NOT need to connect flatfish device if backup-flatfish is created.</p>
# <p>Connect flatfish device for extract necessary files at first build</p> <p>The first build will pull necessary files into backup-flatfish which is automatic created by extract-files.sh. You DO NOT need to connect flatfish device if backup-flatfish is created.</p>
# <p>How to build all of B2G</p><p>For flatfish, we need some prefix to support tablet distribution and enable some functions. GAIA_DISTRIBUTION_DIR=distribution_tablet is used for supporting tablet distribution of gaia. B2G_SYSTEM_APPS=1 is for moving webapp from /data to /system, and B2G_UPDATER=1 is enable OTA.</p><p><code>$<span style="color:#00CC33; background:#003300">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 B2G_UPDATER=1 ./build.sh</span></code></p><p>Building whole system might take a long time, you can take a rest or try to build gecko/gaia if you just modify gecko/gaia.</p>
# <p>How to build all of B2G</p><p>For flatfish, we need some prefix to support tablet distribution and enable some functions. GAIA_DISTRIBUTION_DIR=distribution_tablet is used for supporting tablet distribution of gaia. B2G_SYSTEM_APPS=1 is for moving webapp from /data to /system, and B2G_UPDATER=1 is enable OTA.</p><p><code>$<span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 B2G_UPDATER=1 ./build.sh</span></code></p><p>Building whole system might take a long time, you can take a rest or try to build gecko/gaia if you just modify gecko/gaia.</p>
# <p>How to build Gecko or Gaia only</p><p>Gecko only</p><p><code>$<span style="color:#00CC33; background:#003300">B2G_UPDATER=1 ./build.sh gecko</span></code></p><p>Gaia only</p><p><code>$<span style="color:#00CC33; background:#003300">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 ./build.sh gaia</span></code></p>
# <p>How to build Gecko or Gaia only</p><p>Gecko only</p><p><code>$<span style="color:#006400; background:#D3D3D3">B2G_UPDATER=1 ./build.sh gecko</span></code></p><p>Gaia only</p><p><code>$<span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 ./build.sh gaia</span></code></p>


== Flash the images you build ==
== Flash the images you build ==
<p>Please make sure adb can connect to your device successfully before flash images. You can do simple test to check adb connection, you will see something like “FLATFISH_123456 device” after typo “adb devices” if adb connection successfully.</p>
<p>Please make sure adb can connect to your device successfully before flash images. You can do simple test to check adb connection, you will see something like “FLATFISH_123456 device” after typo “adb devices” if adb connection successfully.</p>
# <p>Flash whole images</p><p><code>$<span style="color:#00CC33; background:#003300">./flash.sh</span></code></p>
# <p>Flash whole images</p><p><code>$<span style="color:#006400; background:#D3D3D3">./flash.sh</span></code></p>
# <p>Flash gecko only</p><p><code>$<span style="color:#00CC33; background:#003300">./flash.sh gecko</span></code></p>
# <p>Flash gecko only</p><p><code>$<span style="color:#006400; background:#D3D3D3">./flash.sh gecko</span></code></p>
# <p>Flash gaia only</p><p><code>$<span style="color:#00CC33; background:#003300">./flash.sh gaia</span></code></p>
# <p>Flash gaia only</p><p><code>$<span style="color:#006400; background:#D3D3D3">./flash.sh gaia</span></code></p>


== WIP bug list ==
== WIP bug list ==
<p>Bug 961563 - [TABLET] Support specifying target device type in Gaia build script</p><p>Bug 965145 - [Camera] refactor .sensorAngle patch in bug 947956 for new camera app</p><p>Bug 983013 - Flatfish can't be build in OSX 10.9 (Mavericks)</p>
<p>Bug 961563 - [TABLET] Support specifying target device type in Gaia build script</p><p>Bug 965145 - [Camera] refactor .sensorAngle patch in bug 947956 for new camera app</p><p>Bug 983013 - Flatfish can't be build in OSX 10.9 (Mavericks)</p>
== FAQ ==
== FAQ ==
<p>To be continue
<p>To be continued</p>
Confirmed users, Bureaucrats and Sysops emeriti
2,974

edits

Navigation menu