我一直在在线研究通过“ bitbake qt5-image”命令创建的文件为树莓派创建可启动SD卡(通过USB适配器)的正确方法。构建过程成功完成,没有警告或错误。我认为与目标有关的结果文件是:
在〜/ rpi / build / tmp / deploy / images / raspberrypi中:
`“ modules-raspberrypi.tgz”链接至
modules-1-4.14.73 + git0 + e117f3e9fd-r0-raspberrypi-20181009142103.tgz 17.mb
"qt5-image-raspberrypi.tar.xz" link to
qt5-image-raspberrypi-20181009142103.rootfs.tar.xz 92.8 mb
"zImage" link to
zImage-1-4.14.73+git0+e117f3e9fd-r0-raspberrypi-20181009142103.bin 4.7mb
我还从本教程(https://jumpnowtek.com/rpi/Raspberry-Pi-Systems-with-Yocto.html)中获取了一些有关构建之前步骤的建议。
对此事的任何建议将不胜感激!
编辑(我从zimage的build / conf / local.conf中将KERNEL_IMAGETYPE更改为=“ Image”)
tmp / deploy / images / raspberrypi /
的内容(不包括btbo文件)bcm2708-rpi-0-w.dtb
bcm2708-rpi-b.dtb
bcm2708-rpi-b-plus.dtb
bcm2708-rpi-cm.dtb
bcm2709-rpi-2-b.dtb
bcm2710-rpi-3-b.dtb
bcm2710-rpi-3-b-plus.dtb
bcm2710-rpi-cm3.dtb
bcm2835-bootfiles
**Image Link to Image-1-4.14.73+git0+e117f3e9fd-r0-raspberrypi-20181010131555.bin**
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2708-rpi-0-w-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2708-rpi-b-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2708-rpi-b-plus-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2708-rpi-cm-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2709-rpi-2-b-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2710-rpi-3-b-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2710-rpi-3-b-plus-20181010131555.dtb
Image-1-4.14.73+git0+e117f3e9fd-r0-bcm2710-rpi-cm3-20181010131555.dtb
Image-bcm2708-rpi-0-w.dtb
Image-bcm2708-rpi-b.dtb
Image-bcm2708-rpi-b-plus.dtb
Image-bcm2708-rpi-cm.dtb
Image-bcm2709-rpi-2-b.dtb
Image-bcm2710-rpi-3-b.dtb
Image-bcm2710-rpi-3-b-plus.dtb
Image-bcm2710-rpi-cm3.dtb
modules-1-4.14.73+git0+e117f3e9fd-r0-raspberrypi-20181010131555.tgz
modules-raspberrypi.tgz
qt5-image-raspberrypi-20181009142103.testdata.json
qt5-image-raspberrypi-20181010131555.rootfs.manifest
qt5-image-raspberrypi-20181010131555.rootfs.tar.xz
qt5-image-raspberrypi-20181010131555.testdata.json
qt5-image-raspberrypi.manifest
qt5-image-raspberrypi.tar.xz
qt5-image-raspberrypi.testdata.json
Content of build/conf/bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf /bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
${HOME}/poky/meta \
${HOME}/poky/meta-poky \
${HOME}/poky/meta-openembedded/meta-oe \
${HOME}/poky/meta-openembedded/meta-multimedia \
${HOME}/poky/meta-openembedded/meta-networking \
${HOME}/poky/meta-openembedded/meta-perl \
${HOME}/poky/meta-openembedded/meta-python \
${HOME}/poky/meta-qt5 \
${HOME}/poky/meta-raspberrypi \
${HOME}/poky/meta-security \
${HOME}/rpi/meta-rpi \
"
答案 0 :(得分:0)
如果您将最新的meta-raspberrypi层用作计算机层,那么您将在tmp/deploy/images/raspberrypi
中获得WIC图像作为输出。
此图像可以直接闪入SD卡,因为它已经分区为
# short-description: Create Raspberry Pi SD card image
# long-description: Creates a partitioned SD card image for use with
# Raspberry Pi. Boot files are located in the first vfat partition.
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 20
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096
因此,您无需手动对SD卡进行分区并复制相应的文件。