BRANCH=master # or 'rocko'
xargs -n 1 git clone -b $BRANCH <<'__EOF__'
git://git.yoctoproject.org/poky
git://git.openembedded.org/meta-openembedded
git://github.com/agherzan/meta-raspberrypi
git://github.com/webplatformforembedded/meta-wpe
__EOF__
In rocko
, fix building of mesa-gl
in meta-raspberrypi
for ARMv6 (source):
cat <<'__EOF__' >> meta-raspberrypi/recipes-graphics/mesa/mesa-gl_%.bbappend
CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS"
__EOF__
Build dependencies (install user or system wide once):
- chrpath: https://chrpath.alioth.debian.org/
- diffstats: http://invisible-island.net/diffstat/
Create build directory and add layers:
source poky/oe-init-build-env
xargs -n 1 bitbake-layers add-layer <<'__EOF__'
../meta-openembedded/meta-oe
../meta-openembedded/meta-python
../meta-openembedded/meta-multimedia
../meta-openembedded/meta-networking
../meta-raspberrypi
../meta-wpe
__EOF__
Configure the build:
cat <<'__EOF__' >> conf/local.conf
# configuration
MACHINE = "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
DISTRO_FEATURES_remove = "x11"
DISTRO_FEATURES_append = " opengl"
PACKAGE_CLASSES = "package_ipk"
IMAGE_INSTALL_append = " chrony"
IMAGE_INSTALL_append = " linux-firmware-bcm43430 wpa-supplicant"
IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg"
SDIMG_ROOTFS_TYPE = "ext4"
__EOF__
For basic Bluetooth support:
cat <<'__EOF__' >> conf/local.conf
IMAGE_INSTALL_append = " bluez5 udev-rules-rpi"
__EOF__
Build the image:
bitbake wpe-westeros-image
Remove wayland
and set the WPE backend and platform to rpi
:
cat <<'__EOF__' >> conf/local.conf
WPE_BACKEND = "rpi"
WPE_PLATFORM = "rpi"
DISTRO_FEATURES_remove = "wayland"
__EOF__
Build the image:
bitbake wpe-eglfs-image
- Set
wlan0
toauto
in/etc/network/interfaces
. - Remove
auto
frometh0
in/etc/network/interfaces
. - Edit
/etc/wpa_supplicant.conf
to add your wireless networks configuration.
You need to attach the firmware to the HCI:
/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
thanks for the guide! does this setup support headless configuration? i.e., if i drop in a wpa_supplicant.conf into the boot partition, will it automatically copy it to /etc and join the network so i can ssh in and configure it?