Skip to content

Instantly share code, notes, and snippets.

@drewmoseley
Created October 4, 2019 16:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewmoseley/b78db39db6a13f504cefce4e71056c36 to your computer and use it in GitHub Desktop.
Save drewmoseley/b78db39db6a13f504cefce4e71056c36 to your computer and use it in GitHub Desktop.
IOT Yocto MQTT Demo
#!/bin/bash
#
repo init -u https://github.com/mendersoftware/meta-mender-community \
-m meta-mender-raspberrypi/scripts/manifest-raspberrypi.xml -b thud
mkdir .repo/local_manifests/
wget -P .repo/local_manifests/ https://raw.githubusercontent.com/drewmoseley/meta-iot-demo/master/templates/manifest-iot-extras.xml
repo sync
. setup-environment raspberrypi
bitbake-layers add-layer $(readlink -f ../sources/meta-iot-demo)
cat >> conf/auto.conf <<EOF
IMAGE_INSTALL_append = " iot-mqtt-demo "
ENABLE_UART = "1"
RPI_EXTRA_CONFIG = "lcd_rotate=2"
EOF
sleep 5
time bitbake core-image-base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment