azure - 如何在 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 的命令,但我没有。
解决方案
推荐阅读
- google-chrome - 无法将 chrome.storage.get 值分配给变量
- python - 我尝试使用 python 作为前端的 postgreSQL 为我的不和谐机器人设置自定义前缀
- pandas - 关于 2 列交集的行过滤
- python - 如何在 zeromq 中增加工人数量(并行作业)
- scala - Akka 流未处理我的 CSV 文件中的所有行
- jquery - 如何在 Bootstrap 模式中加载现有的页面元素?
- matrix - Symmetric() 在稀疏矩阵上的行为不清楚
- x86 - 为什么 IRET 指令会将 EIP 增加 4?
- javascript - 使用 JavaScript 通过类名从 SVG 访问元素
- mysql - MySQL:在另一个表中由 INSERT 触发时计算值并设置