Hello Zee,

Thank you for your reply. I was able to fix it by doing several approaches:

at the end I found out that the size of the wic image in my yocto scarthgap
version was being set by a wks file  which is a template file for creating
wic images in yocto:

I did a "wic list images" that showed me that beaglebone-yocto had a .wks
file for it and I modify the source code as follows:

original beaglebone-yocto.wks source code line
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat
--label boot --active --align 4 --fixed-size 32
--sourceparams="loader=u-boot" --use-uuid

I changed  the --fixed-size to 64, and that give me enough space for what I
want.
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat
--label boot --active --align 4 --fixed-size 64
--sourceparams="loader=u-boot" --use-uuid

Problem solved.

I tried your conf/local.conf with the following modifications because for
some reason I got some problems:


   - MACHINE = "beaglebone"

it is not recognized by my yocto system. I had to use:

MACHINE ??= "beaglebone-yocto"

 I'm using scarthgap release of yocto.

out of curiosity, which version of yocto are you using?

   - How did you get the layers for beaglebone I see the following line in
   the conf/local.conf file:

## mask for non-mender builds
BBMASK = "meta-bbb/recipes-mender"

I looked for it in
https://layers.openembedded.org/layerindex/branch/master/layers/ and could
not find it.

   - I commented out the following lines in your conf/local.conf, but I
   don't think this makes a huge difference.

#original from zoran
#PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
#PREFERRED_VERSION_linux-libc-headers="6.10.%"
#PREFERRED_VERSION_linux-mainline ?= "6.10.%"

#original from zoran
#CORE_IMAGE_EXTRA_INSTALL:append = "openssh cmake libsocketcan nfs-utils
rt-tests strace procps packagegroup-core-buildessential "

After all these modifications I was still getting a similar error.

To solve the problems I did the following steps: I tried looking for some
variable that contain the 32768 limit using "source toaster start" which
guide me to a UI of build output and I found look a failed recipe, click on
the task number and that lead to a page that allow me to look for yocto
variables and their values being set up, I read some variable description
and that lead me to the finding that wic image is created by wic tools in
yocto I search how to create wic images in yocto and found the info I told
you some lines above in yocto documentation et voilá !!! problem solved
just in time for the Olympics!!!

Thanks for your help.

Ulises Vega

On Mon, Jul 22, 2024 at 11:55 PM Zoran Stojsavljevic <
zoran.stojsavlje...@gmail.com> wrote:

> Hello Ulises,
>
> I did try to stuff your initramfs changes/addendums in my local.conf .
>
> Just out of curiosity. ;-)
>
> It does work seamlessly. The build finished without any problems.
>
> Please, find attached my local.conf with your addendums.
>
> It could help you... I believe.
>
> Zee
> _______
>
> On Mon, Jul 22, 2024 at 7:47 PM Ulises Vega via lists.yoctoproject.org
> <u.apeiron=gmail....@lists.yoctoproject.org> wrote:
> >
> > Hello everyone,
> >
> > I'm trying to run Automotive Grade Linux (AGL) on beagleboneai-64.
> >
> > AGL uses a yocto based build. I'm trying to generate an initrd image for
> the beagleboneai-64.
> >
> > I'm using yocto scarthgap. I added the following features to
> conf/local.conf but got some errors while creating the wic image.
> >
> > INITRAMFS_IMAGE = "core-image-tiny-initramfs"
> > INITRAMFS_IMAGE_BUNDLE = "1"
> > INITRAMFS_IMAGE_NAME ?= "${INITRAMFS_IMAGE}-${MACHINE}"
> > INITRAMFS_KERNEL_IMAGE="${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin"
> > VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
> > IMAGE_BOOT_FILES:append = "
> ${INITRAMFS_KERNEL_IMAGE};${KERNEL_IMAGETYPE}"
> >
> > IMAGE_ROOTFS_MAXSIZE ?= "4294967296"
> > ROOTFS_PARTITION_SIZE ?= "4294967296"
> >
> > SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4"
> >
> > IMAGE_FSTYPES:append = " ext4 cpio.gz"
> >
> > These are the errors I got.
> >
> > DEBUG: Executing python function extend_recipe_sysroot
> > NOTE: Direct dependencies are
> ['/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-core/glibc/cross-localedef-native_2.39.bb:do_populate_sysroot',
> '/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot',
> '/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/binutils/binutils-cross_2.42.bb:do_populate_sysroot',
> '/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb:do_populate_sysroot',
> '/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot',
> '/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/meta-selinux/recipes-security/selinux/policycoreutils_3.6.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_6.7.1.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/createrepo-c/createrepo-c_1.0.4.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/dnf/dnf_4.19.0.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/erofs-utils/erofs-utils_1.7.1.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/mtools/mtools_4.0.43.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.3.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/rpm/rpm_4.19.1.1.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-extended/parted/parted_3.6.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-extended/pigz/pigz_2.8.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-extended/xz/xz_5.4.6.bb:do_populate_sysroot',
> 'virtual:native:/media/ulisesv/linux_workspace/AGL/ricefish/external/poky/meta/recipes-support/bmaptool/bmaptool_git.bb:
> do_populate_sysroot']
> > NOTE: u-boot-ti-staging exists in sysroot, but is stale
> (u-boot-ti-staging.fb4c3165ab7b6a4cdff9ac6dd66ec27131b6b0a1458829b9a2435efbb437d016
> vs.
> u-boot-ti-staging.e12d75717bc48fff394b754723686e43ed4c4136875027162649d00c6473048b),
> removing.
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/u-boot-beaglebone-ai64-2023.04+git-r0.img
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/u-boot-spl.bin
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/tispl.bin-beaglebone-ai64-2023.04+git-r0
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/u-boot.img
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/u-boot-spl.bin-beaglebone-ai64-2023.04+git-r0
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/tispl.bin
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/u-boot-ti-staging
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/u-boot
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/virtual_bootloader
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/boot/
> > NOTE: linux-bb.org exists in sysroot, but is stale 
> > (linux-bb.org.72fd73ea1b79abe5b75726e3efd6ea0d79ca9966b16cddfdaafc987fba084c80
> vs. 
> linux-bb.org.2a69e1fa14e6277a5b20f66736709b5530721756913f3d6246e20f465f8b792e),
> removing.
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/
> linux-bb.org
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/virtual_kernel
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-only/fitImage
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-providers/
> > DEBUG: Removing manifest:
> /media/ulisesv/linux_workspace/AGL/ricefish/beaglebone-ai64/tmp/work/beaglebone_ai64-agl-linux/agl-ivi-demo-qt-crosssdk/1.0/recipe-sysroot/sysroot-only/
> > NOTE: Installed into sysroot: ['u-boot-ti-staging', 'linux-bb.org']
> > NOTE: Skipping as already exists in sysroot: ['trusted-firmware-a',
> 'optee-os', 'ti-dm-fw', 'ti-sci-fw', 'gettext-minimal-native',
> 'cross-localedef-native', 'glibc', 'ldconfig-native',
> 'systemd-systemctl-native', 'binutils-cross-aarch64', 'cdrtools-native',
> 'cmake-native', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native',
> 'opkg-utils', 'qemu-native', 'qemuwrapper-cross', 'texinfo-dummy-native',
> 'depmodwrapper-cross', 'linux-libc-headers', 'nspr-native', 'nss-native',
> 'libselinux-native', 'libsemanage-native', 'libsepol-native',
> 'policycoreutils-native', 'openssl-native', 'coreutils-native',
> 'expat-native', 'gettext-native', 'glib-2.0-native', 'libxml2-native',
> 'ncurses-native', 'readline-native', 'update-rc.d-native',
> 'util-linux-libuuid-native', 'util-linux-native', 'zlib-native',
> 'btrfs-tools-native', 'createrepo-c-native', 'desktop-file-utils-native',
> 'dnf-native', 'dosfstools-native', 'e2fsprogs-native', 'elfutils-native',
> 'erofs-utils-native', 'gptfdisk-native', 'file-native', 'flex-native',
> 'gnu-config-native', 'json-c-native', 'libcomps-native', 'libdnf-native',
> 'libedit-native', 'libmodulemd-native', 'librepo-native', 'lua-native',
> 'make-native', 'makedevs-native', 'mtools-native', 'nasm-native',
> 'opkg-utils-native', 'perl-native', 'pseudo-native',
> 'python3-build-native', 'python3-flit-core-native',
> 'python3-iniparse-native', 'python3-installer-native',
> 'python3-packaging-native', 'python3-pyproject-hooks-native',
> 'python3-setuptools-native', 'python3-six-native', 'python3-wheel-native',
> 'python3-native', 'rpm-native', 'squashfs-tools-native', 'swig-native',
> 'syslinux-native', 'bzip2-native', 'cpio-native', 'groff-native',
> 'libarchive-native', 'libidn2-native', 'libnsl2-native', 'libsolv-native',
> 'libtirpc-native', 'lzlib-native', 'parted-native', 'pigz-native',
> 'shadow-native', 'unzip-native', 'xz-native', 'zstd-native',
> 'gdk-pixbuf-native', 'gobject-introspection-native',
> 'libjpeg-turbo-native', 'kmod-native', 'libpng-native', 'acl-native',
> 'attr-native', 'bmaptool-native', 'curl-native', 'debianutils-native',
> 'gdbm-native', 'gmp-native', 'gnutls-native', 'libtasn1-native',
> 'gpgme-native', 'itstool-native', 'libassuan-native', 'libbsd-native',
> 'libcap-ng-native', 'libcap-native', 'libcheck-native', 'libffi-native',
> 'libgcrypt-native', 'libgpg-error-native', 'libmd-native',
> 'libmicrohttpd-native', 'libpcre2-native', 'libunistring-native',
> 'libyaml-native', 'lz4-native', 'lzo-native', 'nettle-native',
> 'popt-native', 'shared-mime-info-native', 'sqlite3-native']
> > DEBUG: Python function extend_recipe_sysroot finished
> > DEBUG: Executing python function set_image_size
> > DEBUG: 2361054.800000 = 1816196 * 1.300000
> > DEBUG: 2467550.800000 = max(2361054.800000, 8192)[2361054.800000] +
> 106496
> > DEBUG: 2467551.000000 = int(2467550.800000)
> > DEBUG: 2467551 = aligned(2467551)
> > DEBUG: returning 2467551
> > DEBUG: Python function set_image_size finished
> > DEBUG: Executing shell function do_image_wic
> > INFO: Creating image(s)...
> >
> > ERROR: File system image of partition None is larger (336164 kB) than
> its allowed size 131072 kB
> >
> > WARNING: exit code 1 from a shell command.
> > ~
> >
> > Thanks.
> >
> > Ulises Vega
> >
> >
> > 
> >
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63574): https://lists.yoctoproject.org/g/yocto/message/63574
Mute This Topic: https://lists.yoctoproject.org/mt/107490023/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to