Compiling firefoxos
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
574
On Slideshare
545
From Embeds
29
Number of Embeds
2

Actions

Shares
Downloads
8
Comments
0
Likes
0

Embeds 29

http://devtopia.coop 28
http://www.devtopia.coop 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Compilando #firefoxos Teléfonos soportados
  • 2. Compilando #firefoxos Teléfonos soportados ● Nexus 4 ● Nexus S ● Nexus 7 ● Keon ● Peak ● Galaxy Nexus ● Galaxy S2 https://developer.mozilla.org/en-US/Firefox_OS/Phones
  • 3. Compilando #firefoxos Udev Permissions ---------------Obtain ID of device manufacturer (first 4 hexidecimal digits before colon): $ lsusb Add a line to /etc/udev/rules.d/android.rules (replacing XXXX with 4 digit ID): SUBSYSTEM=="usb", ATTRS{idVendor}=="XXXX", MODE="0666" Restart udev before re-plugging your device for it to be detected: $ sudo service udev restart
  • 4. Compilando #firefoxos https://developer.mozilla.org/es/docs/Mozilla/Boot_to_Gecko/Firefox_OS_build_prerequisites Dependencias Linux ---------------------● A 64 bit linux distro ● 20GB of free disk space ● autoconf-2.13 ● git ● ccache ● gcc/g++ 4.6.3 or older ● bison ● flex ● 32bit ncurses ● zlib ● Make ● Python2
  • 5. Compilando #firefoxos Dependencias Mac ---------------------● XCode ● 20GB of free space ● homebrew ● git (if not using XCode 4) ● gpg ● ccache ● autoconf-2.13 - brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
  • 6. Compilando #firefoxos Compilar (1ª vez) ---------------------------git clone https://github.com/mozilla-b2g/B2G.git export BRANCH=master export VARIANT=user export HDPI=1 ./config.sh peak ./build.sh sudo ./flash.sh # non-debug build (fewer apps in homescreen, and less debug info, but still root) (sudo)
  • 7. Compilando #firefoxos Compilar (2ª vez y sucesivas) ---------------------------export BRANCH=master export VARIANT=user export HDPI=1 git pull ./repo sync ./config.sh peak ./build.sh [25 min en un i7] sudo ./flash.sh # non-debug build (fewer apps in homescreen, and less debug info, but still root) (sudo)
  • 8. ¿No tienes teléfono? ● Compila el emulador ./config.sh emulator-x86 ./run-emulator.sh ● https://developer.mozilla.org/en-US/Firefox_OS/Using_the_B2G_emulators
  • 9. Compilando #firefoxos Firmware Flash -------------$ adb reboot bootloader $ fastboot flash recovery recovery.img $ fastboot oem unlock $ fastboot erase userdata $ fastboot flash userdata userdata.img $ fastboot flash system system.img $ fastboot reboot
  • 10. Compilando #firefoxos Localizar Gaia (1ª vez) -------------git clone https://github.com/mozilla-b2g/gaia cd gaia/locales hg clone https://hg.mozilla.org/gaia-l10n/es vim locales/languages_all.json → poner el nuestro si no está y quitar los que no están make profile LOCALE_BASEDIR=locales/ LOCALES_FILE=locales/languages_all.json GAIA_DEFAULT_LOCALE=es HDPI=1 GAIA_OPTIMIZE=1 MOZILLA_OFFICIAL=1 GAIA_DISTRIBUTION_DIR=. REMOTE_DEBUGGER=1 make production
  • 11. Compilando #firefoxos Localizar Gaia (2ª vez y sucesivas) -------------git pull cd locales/es hg pull -u vim locales/languages_all.json → poner el nuestro si no está y quitar los que no están make profile LOCALE_BASEDIR=locales/ LOCALES_FILE=locales/languages_all.json GAIA_DEFAULT_LOCALE=es HDPI=1 GAIA_OPTIMIZE=1 MOZILLA_OFFICIAL=1 GAIA_DISTRIBUTION_DIR=. REMOTE_DEBUGGER=1 make production
  • 12. Compilando #firefoxos
  • 13. http://b2g.vegnux.org.ve/ Alcatel One Touch Fire
  • 14. Más info ● http://buildingfirefoxos.com/ ● https://pad.nopcode.org/p/ffos [pad de Pancake (@trufae)]