Skip to content

Instantly share code, notes, and snippets.

@beingentangled
Forked from dolftax/b2g_rasp.md
Created June 28, 2014 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beingentangled/0dc7da05ef1f8ce47b77 to your computer and use it in GitHub Desktop.
Save beingentangled/0dc7da05ef1f8ce47b77 to your computer and use it in GitHub Desktop.

####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"

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

Build gaia on top of it.

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