@alexgg - so I had a little time to tinker with this, and if the above is really just a hard size limit, it appears that adding IMAGE_ROOTFS_SIZE = "500000"
to my local.conf
gets past it. Not so sure - it seems like with a clean build even with this set I hit the same error, but when I rebuild it moves past. Building resin-image fails a bit later in trying to find an actual file, which might be helpful to have the Balena point of view on:
ERROR: resin-image-1.0-r0 do_image_hostapp_ext4: Execution of '/home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/temp/run.do_image_hostapp_ext4.39581' failed with exit code 1:
0+0 records in
0+0 records out
0 bytes copied, 1.8953e-05 s, 0.0 kB/s
File does not exist: /home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/deploy-resin-image-image-complete/resin-image-nanopi-neo3-20210307143008.rootfs.docker
WARNING: exit code 1 from a shell command.
ERROR: Logfile of failure stored in: /home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.39581
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 367832.000000 = 367832 * 1.000000
| DEBUG: 367832.000000 = max(367832.000000, 319488)[367832.000000] + 0
| DEBUG: 367832.000000 = int(367832.000000)
| DEBUG: 368640 = aligned(367832)
| DEBUG: returning 368640
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/meta-balena/meta-balena-common/recipes-devtools/kernel-modules-headers/kernel-modules-headers.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-core/coreutils/coreutils_8.31.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/meta-balena/meta-balena-common/recipes-containers/mkfs-hostapp-native/mkfs-hostapp-native.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/opkg/opkg_0.4.2.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-core/glibc/cross-localedef-native_2.31.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/meta-openembedded/meta-oe/recipes-devtools/jq/jq_1.6.bb:do_populate_sysroot', '/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/meta-balena/meta-balena-common/recipes-kernel/linux/kernel-headers-test.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['opkg-utils-native', 'update-rc.d-native', 'kernel-modules-headers', 'makedevs-native', 'prelink-native', 'mklibs-native', 'pigz-native', 'depmodwrapper-cross', 'coreutils-native', 'mkfs-hostapp-native', 'qemuwrapper-cross', 'ldconfig-native', 'opkg-native', 'cross-localedef-native', 'jq-native', 'kernel-headers-test', 'pseudo-native', 'systemd-systemctl-native', 'xz-native', 'quilt-native', 'shadow-native', 'gnu-config-native', 'elfutils-native', 'autoconf-native', 'automake-native', 'libtool-native', 'binutils-native', 'gettext-minimal-native', 'patch-native', 'kmod-native', 'attr-native', 'texinfo-dummy-native', 'balena-native', 'e2fsprogs-native', 'hostapp-update-native', 'nss-native', 'qemu-native', 'glibc', 'elfutils', 'util-linux', 'linux-libc-headers', 'libgcc', 'linux-stable', 'gcc-runtime', 'openssl', 'openssl-native', 'debianutils-native', 'perl-native', 'zlib-native', 'shared-mime-info-native', 'libsolv-native', 'libarchive-native', 'pkgconfig-native', 'onig-native', 'm4-native', 'flex-native', 'python3-native', 'gtk-doc-native', 'go-native', 'util-linux-native', 'sqlite3-native', 'nspr-native', 'glib-2.0-native', 'zlib', 'ncurses', 'libcap-ng', 'opkg-utils', 'libxcrypt', 'bash-completion', 'cpio-native', 'kern-tools-native', 'gdbm-native', 'db-native', 'itstool-native', 'libxml2-native', 'expat-native', 'ninja-native', 'cmake-native', 'bzip2-native', 'lzo-native', 'libnsl2-native', 'libffi-native', 'libtirpc-native', 'readline-native', 'libcap-ng-native', 'libpcre2-native', 'ncurses-native', 'libpcre-native', 'meson-native', 'gettext-native', 're2c-native', 'curl-native', 'python3-setuptools-native', 'unzip-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_hostapp_ext4
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 1.8953e-05 s, 0.0 kB/s
| File does not exist: /home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/deploy-resin-image-image-complete/resin-image-nanopi-neo3-20210307143008.rootfs.docker
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/temp/run.do_image_hostapp_ext4.39581' failed with exit code 1:
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 1.8953e-05 s, 0.0 kB/s
| File does not exist: /home/ubuntu/development/yocto/balena-nanopineo3/build/tmp/work/nanopi_neo3-poky-linux/resin-image/1.0-r0/deploy-resin-image-image-complete/resin-image-nanopi-neo3-20210307143008.rootfs.docker
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/ubuntu/development/yocto/balena-nanopineo3/build/../layers/meta-balena/meta-balena-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4119 tasks of which 4118 didn't need to be rerun and 1 failed.
This might be due to the size limit not building the file, hard to say.