[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] n1kolaa:
I NEED TO COREST SOME LINES SO PLZ DO USE IT STILL

For buliding Firefox os you need UNLOCKER BOOTlODER,andorid-sdk,linux ubuntu 12.04 64bit,for now only Arc and Ray are suported

$ sudo apt-get install autoconf2.13 bison bzip2 ccache curl flex gawk gcc g+ + g+ +-multilib git ia32-libs lib32ncurses5-dev lib32z1-dev libgl1-mesa-dev libx11-dev make

also you need java jdk 6

Preparing source

To download as shown below source (depending on the environment, but it takes about 30 minutes to 1 hour).

$ Mkdir ~ / b2g_work
$ cd ~ / b2g_work
$ export B2G_WORK = `pwd`

(When you build the arc for you)
$ export DEVICE = anzu

(When you build for the ray)
$ export DEVICE = urushi

$ git clone https://github.com/neuralassembly/B2JC.git B2G
$ cd B2G

The following if you want to build a Firefox OS normal,

./config.sh

Chose your phone

./config.sh (device name)

(Arc is sc02, Ray is sc03)

When the download is finished, it is placed in the source tree dump-ray or Xperia arc of / system directory, but will sometimes use the file of pre-built CyanogenMod9 here.

$ mkdir $ B2G_WORK/B2G/backup- $ DEVICE
$ cd $ B2G_WORK/B2G/backup- $ DEVICE

If (arc, and place here to download the cm-9.1.0-anzu.zip from http://download.cyanogenmod.com/?device=anzu,
If the ray, and place here to download the cm-9.1.0-urushi.zip from http://download.cyanogenmod.com/?device=urushi)

$ unzip cm-9.1.0-$ DEVICE.zip
$ cd $ B2G_WORK/B2G/device/semc / $ DEVICE /
$. / Extract-files.sh

By the operation of the above, the following will be created.

(In the case of arc) $ B2G_WORK/B2G/vendor/semc/anzu /

(In the case of ray) $ B2G_WORK/B2G/vendor/semc/urushi /

[Optional]if you using japanise xperia ray you can use this to slove sensor problems.

cd $ B2G_WORK/B2G/vendor/semc/urushi/proprietary/etc /
$ wget https://dl.dropboxusercontent.com/u/69652790/patch/b2g-urushi-sensors-conf.patch
$ patch <b2g-urushi-sensors-conf.patch

[Optional]if you want japanise lang

$ cd $ B2G_WORK
(Arranged by downloading from the http://sourceforge.jp/projects/naist-jdic/releases/ naist-jdic-0.4.3.tar.gz)
$ tar zxvf naist-jdic-0.4.3.tar.gz
$ cd $ B2G_WORK/B2G/gaia/apps/keyboard/js/imes/jskanji/dict
$ mkdir ipadic
$ cp $ B2G_WORK/naist-jdic-0.4.3/naist-jdic.dic ipadic /
(This fails by the value of the environment variable LANG. It is sufficient to set ja_JP.utf8 This instruction) $ make json

some addons for fixing some bugs

$ cd $ B2G_WORK/B2G/gaia/build
$ wget https://dl.dropboxusercontent.com/u/69652790/patch/b2g-webapp-zip.patch
$ patch <b2g-webapp-zip.patch

[CODE$ Cd $ B2G_WORK/B2G/gecko/hal/gonk /

$ Wget https://dl.dropboxusercontent.com/u/69652790/patch/b2g-GonkHal.patch

$ Patch <b2g-GonkHal.patch][/CODE]

Make the environment variable settings

$ Export LOCALE_BASEDIR = $ B2G_WORK/B2G/multilocale/gaia-l10n
$ Export LOCALES_FILE = $ B2G_WORK/B2G/multilocale/languages-japan.json
$ Export PATH = "$ PATH: $ B2G_WORK/B2G/multilocale/compare-locales/scripts"
$ Export PYTHONPATH = "$ B2G_WORK/B2G/multilocale/compare-locales/lib"
$ Export MOZILLA_OFFICIAL = 1
$ Export GAIA_DEV_PIXELS_PER_PX = 2

Building the kernel

$ cd $ B2G_WORK
$ git clone https://github.com/CyanogenMod/semc-kernel-msm7x30-b ics
$ cd semc-kernel-msm7x30
$ export ARCH = arm
$ export CROSS_COMPILE = $ B2G_WORK/B2G/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
$ make cyanogen_ $ DEVICE_defconfig
$ make-j16
$ cp `find drivers net-name" *. Ko "` $ B2G_WORK/B2G/device/semc / $ DEVICE /
$ cp arch / arm / boot / zImage $ B2G_WORK/B2G/device/semc / $ DEVICE / kernel

Compile source

cd B2G_WORK/B2G
./build.sh otapackage

Build is complete,

If out / target / product / anzu / full_anzu-ota-eng.username.zip of arc

If out / target / product / urushi / full_urushi-ota-eng.username.zip-ray

Because we can, and burn it.

In advance, so that you can connect with adb and fastboot to the terminal, please be sure that you install the driver.

First, you may want to place the SD card the zip file that you can try build.

In addition, it should remove the boot.img from the zip file in advance, and place it on the PC.

Then turn off the terminal, hold down the menu in the case of arc,

You will need to connect it to a USB port on the PC while holding down the volume up key in the case of ray.

Enter the fastboot mode, arc is the LED next to the USB port, around the home button should glow in blue ray. There

Fastboot flash boot boot.img

Run and burn the boot.img. Then, I will restart with the following command.

Fastboot reboot

In a state where the visible logo of Free Xperia Project, arc is battered the menu button,

ray will roll the volume down key. Both, LED home key surrounding lights and success,

I enter the CWM recovery.

In CWM recovery, after running the wipe data / factory reset,

from install zip from sdcard, please burn the zip file you created.

will add soon Work/not list