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
>
>
> 
>
# BeagleBone Black
CONF_VERSION = "2"
PATCHRESOLVE = "noop"
SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
DL_DIR ?= "${TOPDIR}/downloads"
TMPDIR ?= "${TOPDIR}/tmp"
PACKAGE_CLASSES ?= "package_rpm package_deb"
## Select systemd as init manager
INIT_MANAGER ?= "systemd"
## PACKAGECONFIG_append_pn-systemd = " networkd"

## Define kernel version
## PREFERRED_PROVIDER_virtual/kernel ?= "meta-bbb"
## PREFERRED_VERSION_meta-bbb ?= "6.1.%"
## PREFERRED_VERSION_meta-bbb ?= "6.10.%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
PREFERRED_VERSION_linux-libc-headers="6.10.%"
PREFERRED_VERSION_linux-mainline ?= "6.10.%"

## INITRAMFS_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"
## END INITRAMFS_IMAGE

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

## Unmask canutils in meta-openembedded/ (oe) since it will be tracked by oe!
## BBMASK += "meta-openembedded/meta-oe/recipes-extended/socketcan/canutils"

ERROR_QA:remove:pn-u-boot = "patch-status"

## mask for non-libxcrypt builds (too many dependencies)
## BBMASK += "poky/meta/recipes-core/libxcrypt/"
## Lists packages that should not be installed into an image
## PACKAGE_EXCLUDE:pn-target_image = "libxcrypt"
## IMAGE_INSTALL:remove = " libxcrypt"
## PACKAGECONFIG:remove = " libxcrypt"

EXTRA_IMAGE_FEATURES = "debug-tweaks"
## "dhcp": obsolete, functionally replaced by "dhcpcd" and "kea"
## CORE_IMAGE_EXTRA_INSTALL += "dhcp-libs dhcp-server dhcp-server-config 
dhcp-client dhcp-relay dhcp-omshell"
CORE_IMAGE_EXTRA_INSTALL:append = "openssh cmake libsocketcan nfs-utils 
rt-tests strace procps packagegroup-core-buildessential "
DISTRO_FEATURES:append = " nfs systemd"
IMAGE_FSTYPES:append = " cpio.xz"
## INHERIT += "extrausers"
## EXTRA_USERS_PARAMS = "usermod -P root root;"

MACHINE ??= "beaglebone"
DISTRO ??= "poky"
BBMULTICONFIG ?= ""

## BB_NUMBER_THREADS = "1"
## PARALLEL_MAKE = "-j 1"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63557): https://lists.yoctoproject.org/g/yocto/message/63557
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