compiling firefoxos

Download Compiling firefoxos

If you can't read please download the document

Upload: leandro-vazquez-cervantes

Post on 16-Apr-2017

741 views

Category:

Technology


0 download

TRANSCRIPT

Compilando #firefoxos

Telfonos soportados

Compilando #firefoxos

Telfonos soportadosNexus 4

Nexus S

Nexus 7

Keon

Peak

Galaxy Nexus

Galaxy S2https://developer.mozilla.org/en-US/Firefox_OS/Phones

Compilando #firefoxos

Udev Permissions----------------Obtain ID of device manufacturer (first 4 hexidecimal digits before colon):$ lsusbAdd 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

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

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

Compilando #firefoxos

Compilar (1 vez)----------------------------
git clone https://github.com/mozilla-b2g/B2G.git
export BRANCH=masterexport VARIANT=user # non-debug build (fewer apps in homescreen, and less debug info, but still root)export HDPI=1./config.sh peak./build.sh (sudo)sudo ./flash.sh

Compilando #firefoxos

Compilar (2 vez y sucesivas)----------------------------
export BRANCH=masterexport VARIANT=user # non-debug build (fewer apps in homescreen, and less debug info, but still root)export HDPI=1git pull./repo sync./config.sh peak./build.sh (sudo) [25 min en un i7]sudo ./flash.sh

No tienes telfono?

Compila el emulador./config.sh emulator-x86./run-emulator.sh

https://developer.mozilla.org/en-US/Firefox_OS/Using_the_B2G_emulators

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

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 estn

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

Compilando #firefoxos

Localizar Gaia (2 vez y sucesivas)--------------git pullcd locales/eshg pull -u

vim locales/languages_all.json poner el nuestro si no est y quitar los que no estn

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

Compilando #firefoxos


http://b2g.vegnux.org.ve/

Alcatel One Touch Fire

Ms info

http://buildingfirefoxos.com/

https://pad.nopcode.org/p/ffos [pad de Pancake (@trufae)]