This service is available only in Japanese-language.

KERNEL_DEVICETREEにdtbファイルを追加するとimage作成に失敗する

https://yoctobbq.lineo.co.jp/?q=node/201
こちらを参考にカスタムレイヤー配下にconf/machine/mine.confを追加しました。
~~~
require conf/machine/imx6dlsabresd.conf

KERNEL_DEVICETREE += "imx6dl-mine.dtb"
~~~
ここでbitbake core-image-minimalを実行すると以下のようなエラーとなります。
これはdtsファイルに不備があるということなのででしょうか?
(bitbake linux-imxでdtbファイルは生成され、動作も問題ないですが)

$ bitbake core-image-minimal
Loading cache: 100% |###############################################################################################################| Time: 0:00:00
Loaded 3441 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "mine"
DISTRO = "fsl-imx-fb"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU = "hard"
meta
meta-poky
meta-oe
meta-multimedia
meta-webserver
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-browser
meta-gnome
meta-networking
meta-python
meta-filesystems
meta-mine

Initialising tasks: 100% |##########################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_image_sdcard: Function failed: do_image_sdcard (log file is located at /home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.24713)
ERROR: Logfile of failure stored in: /home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.24713
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 15714.400000 = 12088 * 1.300000
| DEBUG: 15714.400000 = max(15714.400000, 8192)[15714.400000] + 1
| DEBUG: 15715.000000 = int(15714.400000)
| DEBUG: 16384 = aligned(15715)
| DEBUG: returning 16384
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/python/python_2.7.15.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.1.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/python/python-native_2.7.15.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', '/home/hoge/yocto/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.98.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/home/hoge/yocto/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-connectivity/openssl/openssl_1.0.2p.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/hoge/yocto/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['bc-native', 'glibc', 'python', 'mtools-native', 'gcc-cross-arm', 'binutils-cross-arm', 'parted-native', 'python-native', 'lzop-native', 'linux-imx', 'gcc-runtime', 'dosfstools-native', 'linux-libc-headers', 'libgcc', 'db', 'gdbm', 'bzip2', 'zlib', 'openssl', 'libffi', 'libmpc-native', 'mpfr-native', 'gmp-native', 'opkg-utils', 'cryptodev-linux']
| NOTE: Skipping as already exists in sysroot: ['update-rc.d-native', 'qemuwrapper-cross', 'pbzip2-native', 'opkg-utils-native', 'e2fsprogs-native', 'kmod-native', 'pigz-native', 'makedevs-native', 'ldconfig-native', 'rpm-native', 'opkg-native', 'pseudo-native', 'dtc-native', 'prelink-native', 'dnf-native', 'mklibs-native', 'swig-native', 'quilt-native', 'depmodwrapper-cross', 'openssl-native', 'createrepo-c-native', 'bison-native', 'qemu-native', 'util-linux-native', 'pkgconfig-native', 'gnu-config-native', 'autoconf-native', 'gettext-minimal-native', 'attr-native', 'automake-native', 'libtool-native', 'texinfo-dummy-native', 'zlib-native', 'gtk-doc-native', 'python3-native', 'dbus-native', 'bzip2-native', 'db-native', 'popt-native', 'xz-native', 'nss-native', 'elfutils-native', 'file-native', 'libarchive-native', 'flex-native', 'libsolv-native', 'ncurses-native', 'readline-native', 'binutils-native', 'lzo-native', 'libdnf-native', 'python3-iniparse-native', 'libcomps-native', 'librepo-native', 'ninja-native', 'cmake-native', 'shadow-native', 'curl-native', 'libxml2-native', 'glib-2.0-native', 'sqlite3-native', 'expat-native', 'gdbm-native', 'libpcre-native', 'alsa-lib-native', 'pixman-native', 'libsdl-native', 'm4-native', 'autoconf-archive-native', 'nspr-native', 'gobject-introspection-native', 'libcheck-native', 'python3-six-native', 'gpgme-native', 're2c-native', 'libffi-native', 'libpng-native', 'util-macros-native', 'libxrandr-native', 'libxext-native', 'libxrender-native', 'libx11-native', 'python3-setuptools-native', 'libassuan-native', 'libgpg-error-native', 'randrproto-native', 'xextproto-native', 'xproto-native', 'renderproto-native', 'xtrans-native', 'inputproto-native', 'kbproto-native', 'libxcb-native', 'unzip-native', 'xcb-proto-native', 'libpthread-stubs-native', 'libxdmcp-native', 'libxau-native']
| DEBUG: sed -e 's:^[^/]*/:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/:g' /home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components/x86_64/gcc-cross-arm/fixmepath /home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components/x86_64/python-native/fixmepath /home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_COMPONENTS_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/pkgdata/mine:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/fifo.24713:g'
| DEBUG: sed -e 's:^[^/]*/:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot/:g' /home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components/cortexa9hf-neon/python/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_COMPONENTS_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/sysroots-components:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/pkgdata/mine:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/fifo.24713:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_sdcard
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 0.000170255 s, 0.0 kB/s
| Model: (file)
| Disk /home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-mine-20231212055506.rootfs.sdcard: 33.6MB
| Sector size (logical/physical): 512B/512B
| Partition Table: msdos
| Disk Flags:
|
| Number Start End Size Type File system Flags
| 1 4194kB 12.6MB 8389kB primary lba
| 2 12.6MB 29.4MB 16.8MB primary
|
| 1286+0 records in
| 1286+0 records out
| 658432 bytes (658 kB, 643 KiB) copied, 0.00239398 s, 275 MB/s
| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
| mkfs.fat 4.1 (2017-01-24)
| Disk full
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_sdcard (log file is located at /home/hoge/imx-yocto-bsp/build-mine/tmp/work/mine-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.24713)
ERROR: Task (/home/hoge/yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_sdcard) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2436 tasks of which 2225 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/hoge/yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_sdcard
Summary: There were 8 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

本件回答します。

このログによりFATのパーティションがDisk fullになっている事がわかります。
| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
| mkfs.fat 4.1 (2017-01-24)
| Disk full

KERNEL_DEVICETREE変数に単純にdtbを追加しているため、
実際のパーティションに対してもファイルが追加された状態になります。
その際、パーティションは自動的には拡張されないため、単純にディスク使用量が増えることになります。
そのため、パーティションサイズよりも多くファイルを保存しようとしてしまい、今回のエラーになっています。

wksファイルを変更して、パーティションのサイズを変更するか、
KERNEL_DEVICETREE = "imx6dl-mine.dtb"とするなどして、
追加ではなくファイルの置き換えを検討するのが良いかと思われます。