Yocto- bitbake qt5-image - 从结果为 rpi 创建可引导闪存时遇到问题
Yocto- bitbake qt5-image - trouble creating bootable flash for rpi from result
我一直在网上研究从 "bitbake qt5-image" 命令创建的文件中为我的 raspberry pi 创建可引导 SD 卡(通过 USB 适配器)的正确方法。构建过程成功完成,没有任何警告或错误。我认为与我的目标相关的结果文件是:
在~/rpi/build/tmp/deploy/images/raspberrypi:
` "modules-raspberrypi.tgz" link 至
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 \
"
如果您使用最新的 meta-raspberrypi layer as machine layer, then you will be getting WIC 图像作为 tmp/deploy/images/raspberrypi
中的输出。
这个镜像可以直接刷入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卡进行分区和拷贝各自的文件了
我一直在网上研究从 "bitbake qt5-image" 命令创建的文件中为我的 raspberry pi 创建可引导 SD 卡(通过 USB 适配器)的正确方法。构建过程成功完成,没有任何警告或错误。我认为与我的目标相关的结果文件是:
在~/rpi/build/tmp/deploy/images/raspberrypi:
` "modules-raspberrypi.tgz" link 至
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 \
"
如果您使用最新的 meta-raspberrypi layer as machine layer, then you will be getting WIC 图像作为 tmp/deploy/images/raspberrypi
中的输出。
这个镜像可以直接刷入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卡进行分区和拷贝各自的文件了