-
-
Save sayak-sarkar/16998c5a0bdf7ff9d3e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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