首页 > 解决方案 > 如何在 Raspberry Pi 上的 Yocto 上部署 Azure IoT Edge?

问题描述

我正在尝试在 Raspberry Pi3 上运行的 Yocto 上设置和学习 Azure IoT Edge。那里有一些文档吗?

在 Ubuntu 18.04 上,我尝试了以下步骤:

git clone https://github.com/Azure/meta-iotedge.git
git clone -b sumo git://git.yoctoproject.org/meta-virtualization
git clone -b sumo git://github.com/meta-rust/meta-rust.git
git clone -b sumo git://git.yoctoproject.org/poky
git clone -b sumo git://git.openembedded.org/meta-openembedded
git clone -b sumo git://git.yoctoproject.org/meta-raspberrypi

cd ~/rpi 
source sources/poky/oe-init-build-env rpi-build


cd ~/rpi/rpi-build/
echo 'MACHINE = "raspberrypi3"' >> conf/local.conf
echo 'DISTRO_FEATURES_append = " systemd virtualization"' >> conf/local.conf

修改~/rpi/rpi-build/conf/bblayers.conf

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BSPDIR := "/home/ksaye/rpi/"

BBLAYERS ?= " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  ${BSPDIR}/sources/poky/meta-yocto-bsp \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-networking \
  ${BSPDIR}/sources/meta-openembedded/meta-python \
  ${BSPDIR}/sources/meta-openembedded/meta-filesystems \
  ${BSPDIR}/sources/meta-raspberrypi \
  ${BSPDIR}/sources/meta-iotedge \
  ${BSPDIR}/sources/meta-rust \
  ${BSPDIR}/sources/meta-virtualization \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  ${BSPDIR}/sources/meta-iotedge \
"

cd ~/rpi
bitbake core-image-base


sudo dd if=~/rpi/rpi-build/tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.rpi-sdimg of=/dev/sde bs=4M

我可以启动 SD 卡,但没有 iotedge 命令或 /etc/iotedge 目录。

我错过了什么?

我希望 iotedge 是一个可以运行或查看 /etc/iotedge/config.yaml 的命令,但我没有。

标签: azureraspberry-pi3yoctoazure-iot-edge

解决方案


推荐阅读