Skip to content

Instantly share code, notes, and snippets.

@dolftax
Last active August 29, 2015 14:03
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save dolftax/ee92da92c4c33f2c09b7 to your computer and use it in GitHub Desktop.
Save dolftax/ee92da92c4c33f2c09b7 to your computer and use it in GitHub Desktop.
Firefox OS for Raspberry Pi
  • Clone the repositories
git clone git://git.yoctoproject.org/poky
cd poky
git clone git://git.yoctoproject.org/meta-raspberrypi
git clone git://git.openembedded.org/meta-openembedded
git clone git://github.com/imphil/meta-b2g.git
. ./oe-init-build-env rpi-build
  • Traverse into 'conf' directory

  • Copy these into bblayers.conf file

/home/jai/poky/meta-raspberrypi \
/home/jai/poky/meta-openembedded/meta-oe \
/home/jai/poky/meta-openembedded/meta-networking \
/home/jai/poky/meta-openembedded/meta-gnome \
/home/jai/poky/meta-b2g \
rm -rf local.conf
touch local.conf
  • Copy this into local.conf file:
    BB_NUMBER_THREADS = "4"
    PARALLEL_MAKE = "-j 4"
    
    MACHINE ?= "raspberrypi"
    MACHINE ??= "qemux86"
    
    DISTRO ?= "poky"
    
    PACKAGE_CLASSES ?= "package_rpm"
    
    EXTRA_IMAGE_FEATURES = "debug-tweaks debug-tools nfs-server"
    
    USER_CLASSES ?= "buildstats image-mklibs image-prelink"
    
    PATCHRESOLVE = "noop"
    
    BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K" 
    
    CONF_VERSION = "1"
    
    BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd"
    DISABLE_OVERSCAN = "1"
    GPU_MEM = "64"
  • Run
cd poky
. ./oe-init-build-env rpi-build
bitbake -v rpi-b2g-image
sudo dd if=your-image.rpi-sdimg of=/dev/sdX
sync

You're done!

Possible errors:
  • Error with makeinfo. Solution: Install makefile 3.82 package
  • Error with sanity checker.
Solution:

Comment out last line in meta/conf/sanity.conf to disable sanity checks set bbpath to poky/rpi-build ($BBPATH)

remove debug-tools from rpi-build/conf/local.conf

From now, build gaia on top of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment