Do_image_hostapp_ext4 task failed in resin-image recipe

Hello,

I have an error when I build balenaOS for up-board machine.
Error logs are in following gist : https://gist.github.com/quentin-burg/cdf4a6584b4758ba3a52c489dbf32f40

This error appear when I try to add a bbappend recipe to have a custom plymouth and I don’t understand why.

Does anyone have an idea ?

Thanks

Hi. Can you paste the command you used to clone the repository? And then paste the command you used to build it?

Hello @floion,

I clone repository with git clone --recursive https://github.com/balena-os/balena-up-board.git.
The command to build image is bitbake resin-image-flasher.

Thanks

Hi. The command “bitbake resin-image-flasher” would not work. You’d need to specify a machine. So can you paste exactly the command you used after you cloned?

Hi,

The machine is set in local.conf file :
MACHINE ?= "up-board"

I have a script that runs :

balena-yocto-scripts/build/build-device-type-json.sh
source layers/poky/oe-init-build-env build
bitbake resin-image-flasher

Thanks

You could run barys instead. And you could also make use of shared sstate and shared downloads by doing so: "barys -m up-board --shared-downloads --shared-sstate ". And then you can re-use these 2 directories for future builds so that it speeds-up download tasks and compile tasks.
For the problem at hand, do you happen to have the aufs module available on your build machine? I believe the issue is that you are lacking this module as the Up Board uses aufs and it needs to have it available at build time.

Thank you for these tips.

The aufs module is available at build time.
I copied the result of the lsmod command:

Module                  Size  Used by
veth                   16384  0
aufs                  360448  0
ipt_MASQUERADE         16384  2
nf_nat_masquerade_ipv4    16384  1 ipt_MASQUERADE
nf_conntrack_netlink    36864  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              36864  1
xfrm_algo              16384  1 xfrm_user
iptable_nat            16384  1
nf_conntrack_ipv4      16384  3
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_nat_ipv4            16384  1 iptable_nat
xt_addrtype            16384  2
iptable_filter         16384  1
xt_conntrack           16384  2
nf_nat                 24576  2 nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_conntrack          114688  6 nf_conntrack_ipv4,nf_conntrack_netlink,nf_nat_masquerade_ipv4,xt_conntrack,nf_nat_ipv4,nf_nat
br_netfilter           24576  0
bridge                135168  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
overlay                49152  0
intel_rapl             20480  0
sb_edac                24576  0
cirrus                 24576  1
edac_core              57344  1 sb_edac
ttm                    98304  1 cirrus
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
drm_kms_helper        155648  1 cirrus
ghash_clmulni_intel    16384  0
drm                   360448  4 cirrus,ttm,drm_kms_helper
intel_rapl_perf        16384  0
evdev                  24576  2
serio_raw              16384  0
button                 16384  0
ip_tables              24576  2 iptable_filter,iptable_nat
x_tables               36864  5 ip_tables,iptable_filter,ipt_MASQUERADE,xt_addrtype,xt_conntrack
autofs4                40960  2
ext4                  585728  1
crc16                  16384  1 ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  0
fscrypto               28672  1 ext4
ecb                    16384  0
mbcache                16384  2 ext4
ata_generic            16384  0
crc32c_intel           24576  2
aesni_intel           167936  0
xen_netfront           28672  0
xen_blkfront           36864  2
aes_x86_64             20480  1 aesni_intel
glue_helper            16384  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
ablk_helper            16384  1 aesni_intel
cryptd                 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel
psmouse               135168  0
ata_piix               36864  0
i2c_piix4              24576  0
libata                249856  2 ata_piix,ata_generic
scsi_mod              225280  1 libata

EDIT : le build échoue seulement quand j’ajoute la recette qui nous permet de jouer une animation au démarrage de la board (plymouth_0.9.2.bbappend in a custom layer).
When I take out this recipe, the build goes normally.

can you share that custom layer with us / the source of that plymouth_0.9.2.bbappend? Maybe it has some syntax or other issues?

Hi @imrehg,

Here is the plymouth recipe :

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " \
    file://0001-plymouth-default-theme-is-cutii.patch \
    file://cutii-theme.tar.bz2 \
    file://cutii-linear-theme.tar.bz2 \
    "
do_install_append() {
    # Theme based on progress
    install -d ${D}/${datadir}/plymouth/themes/cutii
    install ${WORKDIR}/cutii/cutii.plymouth ${D}/${datadir}/plymouth/themes/cutii
    install ${WORKDIR}/cutii/*.png ${D}/${datadir}/plymouth/themes/cutii
    # Theme based on time
    install -d ${D}/${datadir}/plymouth/themes/cutii-linear
    install ${WORKDIR}/cutii-linear/cutii-linear* ${D}/${datadir}/plymouth/themes/cutii-linear
    install ${WORKDIR}/cutii-linear/*.png ${D}/${datadir}/plymouth/themes/cutii-linear
    # two-step plugin
    install -d ${D}${nonarch_libdir}/plymouth/
    install ${WORKDIR}/build/src/plugins/splash/two-step/.libs/two-step.so ${D}${nonarch_libdir}/plymouth/
}

Thanks