Problem building `core-image-minimal` – U-Boot `do_configure` failure in Yocto

Problem building core-image-minimal for BeagleY-AI – U-Boot do_configure failure

Hi,

I am trying to build core-image-minimal for the BeagleY-AI board with a multi-config setup (md and md-k3r5) on Ubuntu 24.04 using Yocto.
The build fails during the U-Boot do_configure step for both configurations.


Environment

  • Target board: BeagleY-AI (TI J722S / AM67x)
  • Host OS: Ubuntu 24.04 (not officially validated)
  • Yocto version: 5.0.7 (Kirkstone)
  • Layers:
    • poky / meta
    • meta-arm
    • meta-arm-toolchain
    • meta-ti-bsp
    • meta-md (custom)

Machines:

  • MACHINE = "md"
  • MACHINE = "md-k3r5"

Command

bitbake core-image-minimal

Warnings

WARNING: Variable key PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} (${BSP_BOOTLOADER_VERSION})
replaces original key PREFERRED_VERSION_u-boot-bb.org (2024.10%).

(repeated many times)


Error log (main part)

During do_configure for u-boot-bb.org, the build fails:

*** Can't find default configuration "arch/../configs/j722s_evm_a53_defconfig"! ***
make[2]: *** ... j722s_evm_a53_config] Error 1
make[1]: *** ... j722s_evm_a53_config] Error 2
make: *** [Makefile:177: sub-make] Error 2

And for the R5 multiconfig:

*** Can't find default configuration "arch/../configs/j722s_evm_r5_defconfig"! ***
make[2]: *** ... j722s_evm_r5_config] Error 1

From the logs:

scripts/kconfig/conf  --defconfig=arch/../configs/j722s_evm_a53_defconfig Kconfig

Summary

  • The build system tries to use:
    • j722s_evm_a53_defconfig
    • j722s_evm_r5_defconfig
  • These files do not exist in u-boot-bb.org/2023.04+git
  • As a result, U-Boot do_configure fails for both configurations (md, md-k3r5)

Questions

  • Are these defconfig names correct for TI J722S (AM67x) / BeagleY-AI?
  • Should I modify the machine configuration or provide custom defconfig files?
  • Is this a known issue with meta-ti-bsp and multiconfig setups?

Any guidance on fixing this do_configure failure would be very helpful.


Log references

  • .../build/tmp/work/md-poky-linux/u-boot-bb.org/2023.04+git/temp/log.do_configure
  • .../build/tmp-k3r5/work/md_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/temp/log.do_configure

Thanks in advance!

1 Like

One problem out of the gate is your version of ubuntu.

Do your first build using the Ti instructions and do it exactly as they state, if that builds then it is bootable you can go onto customizing.

What you are doing is a major time burner, we stopped using yocto unless it is expressly needed. The factory images are perfect for dev, and to some degree depending on the application can be usable for production release with a some work.

We were using core image weston and the Ti Arago that is based upon the Ti BSP. If memory is correct the last version we worked with was scarthgap??

Also, if you have a BBB, do the yocto reference build first. Again, use yocto’s instructions and it will boot and run the BBB. This will verify you have core tools in place and functional. If you scan the internet all you will get is BS that does not work.

Also,


    MACHINE = "md"
    MACHINE = "md-k3r5"

If that is not defined you will not go very far, this is one of the major issues with yocto. You are digging your own rabbit hole.

1 Like

What git sha is the scripts looking at? is it linking to? GitHub - beagleboard/u-boot at v2023.04-ti-09.02.00.009-BeagleY-AI-Production

the build options should be:

j722s_evm_r5_defconfig am67a_beagley_ai_r5.config
and:
j722s_evm_a53_defconfig am67a_beagley_ai_a53.config

Regards,

1 Like

Thank you very much for your quick response.

The current checkout of the u-boot repository is at commit:

b0d717b732ee28e446baf94522b3491e590f7fbb
(branch: v2023.04-ti-09.01.00.008)

So the scripts are building from that exact commit SHA.

Build flow:

  • R5 stage: j722s_evm_r5_defconfig + am67a_beagley_ai_r5.config
  • A53 stage: j722s_evm_a53_defconfig + am67a_beagley_ai_a53.config

Thank you very much for your detailed feedback.

I understand your point about following TI’s official instructions first.
For this build, the MACHINE definitions (both “md” and “md-k3r5”) have already been set correctly in local.conf, so that part is covered.

I am currently working with the Scarthgap Yocto release on Ubuntu 24.04.
As you suggested, I will start with the TI-provided flow to confirm that the factory image builds and boots before moving forward with any customizations.

Does a recipe for those machine configs exist ?, its been a while since touching that stuff but I don’t recall “md” md-k3r5 for machine defs. grep the top of your build and see if you can find those two, if not, it will never build correctly. That is one of the problems with yocto, it defaults and selects whatever if the clearly defined parameters are not found.

Actually, the best first run will be to do the official yocto baseline test for the BBB and core image minimal even if you don’t have a BBB. Also, your box needs at least 64 Gb Ram and a dedicated NVMe drive. Any thing less is a coin toss. Also, throttle back the cores leave a couple open for housekeeping and other tasks. It will use all the cores if you don’t throttle it back in your local.conf.

2 Likes

I also have similar problem. I’m trying to generate a custom Yocto recipe for the BeagleY AI board, but encountering a U-Boot configuration error during the build process. The build fails specifically for the R5F core configuration.

Build error log
ERROR: mc:k3r5:u-boot-bb.org-1_2023.04+git-r0 do_configure: oe_runmake failed
ERROR: mc:k3r5:u-boot-bb.org-1_2023.04+git-r0 do_configure: ExecutionError

scripts/kconfig/conf  --defconfig=arch/../configs/j722s_evm_r5_defconfig Kconfig
***
*** Can't find default configuration "arch/../configs/j722s_evm_r5_defconfig"!
***
make[2]: *** [scripts/kconfig/Makefile:96: j722s_evm_r5_defconfig] Error 1
.
Long error log
ERROR: mc:k3r5:u-boot-bb.org-1_2023.04+git-r0 do_configure: oe_runmake failed
ERROR: mc:k3r5:u-boot-bb.org-1_2023.04+git-r0 do_configure: ExecutionError('/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/temp/run.do_configure.2280', 1, None, None)
ERROR: Logfile of failure stored in: /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/temp/log.do_configure.2280
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/meta-ti/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb:do_populate_sysroot', 'mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/gcc/gcc-cross_13.3.bb:do_populate_sysroot', 'mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/meta-ti/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-connectivity/openssl/openssl_3.2.3.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/flex/flex_2.6.4.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3-jsonschema_4.21.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3-pyelftools_0.30.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3-setuptools_69.1.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3-yamllint_1.35.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/python/python3_3.12.8.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-devtools/swig/swig_4.2.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-kernel/dtc/dtc_1.7.0.bb:do_populate_sysroot', 'mc:k3r5:virtual:native:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/poky/meta/recipes-support/gnutls/gnutls_3.8.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['ti-sci-fw', 'gettext-minimal-native', 'binutils-cross-arm', 'cmake-native', 'gcc-cross-arm', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'kern-tools-native', 'ti-k3-secdev-native', 'openssl-native', 'expat-native', 'ncurses-native', 'readline-native', 'util-linux-libuuid-native', 'zlib-native', 'bison-native', 'flex-native', 'git-native', 'gnu-config-native', 'libedit-native', 'make-native', 'patch-native', 'perl-native', 'pkgconfig-native', 'pseudo-native', 'python3-attrs-native', 'python3-build-native', 'python3-calver-native', 'python3-cython-native', 'python3-editables-native', 'python3-flit-core-native', 'python3-hatch-fancy-pypi-readme-native', 'python3-hatch-vcs-native', 'python3-hatchling-native', 'python3-idna-native', 'python3-importlib-metadata-native', 'python3-installer-native', 'python3-jsonpointer-native', 'python3-jsonschema-specifications-native', 'python3-jsonschema-native', 'python3-maturin-native', 'python3-more-itertools-native', 'python3-packaging-native', 'python3-pathlib2-native', 'python3-pathspec-native', 'python3-pip-native', 'python3-pluggy-native', 'python3-pyelftools-native', 'python3-pyparsing-native', 'python3-pyproject-hooks-native', 'python3-pyrsistent-native', 'python3-pyyaml-native', 'python3-referencing-native', 'python3-rfc3339-validator-native', 'python3-rfc3987-native', 'python3-rpds-py-native', 'python3-semantic-version-native', 'python3-setuptools-rust-native', 'python3-setuptools-scm-native', 'python3-setuptools-native', 'python3-six-native', 'python3-toml-native', 'python3-tomli-native', 'python3-trove-classifiers-native', 'python3-typing-extensions-native', 'python3-webcolors-native', 'python3-wheel-native', 'python3-yamllint-native', 'python3-zipp-native', 'python3-native', 'cargo-native', 'rust-llvm-native', 'rust-native', 'swig-native', 'bc-native', 'bzip2-native', 'libidn2-native', 'libnsl2-native', 'libtirpc-native', 'unzip-native', 'xz-native', 'zstd-native', 'dtc-native', 'attr-native', 'ca-certificates-native', 'curl-native', 'gdbm-native', 'gmp-native', 'gnutls-native', 'libtasn1-native', 'libffi-native', 'libmpc-native', 'libpcre2-native', 'libssh2-native', 'libunistring-native', 'libyaml-native', 'mpfr-native', 'nettle-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make CROSS_COMPILE=arm-poky-eabi- CC=arm-poky-eabi-gcc  --sysroot=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot -fcanon-prefix-map  -fmacro-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git=/usr/src/debug/u-boot-bb.org/2023.04+git  -fdebug-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git=/usr/src/debug/u-boot-bb.org/2023.04+git  -fmacro-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build=/usr/src/debug/u-boot-bb.org/2023.04+git  -fdebug-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build=/usr/src/debug/u-boot-bb.org/2023.04+git  -fdebug-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot=  -fmacro-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot=  -fdebug-prefix-map=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native=  V=1 HOSTCC=gcc  -isystem/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include -O2 -pipe -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread STAGING_INCDIR=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include STAGING_LIBDIR=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib BINMAN_INDIRS=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot/lib/firmware -C /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git O=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build j722s_beagley_ai_evt_r5_defconfig
| make: Entering directory '/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git'
| make -C /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build KBUILD_SRC=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git \
| -f /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/Makefile j722s_beagley_ai_evt_r5_defconfig
| make[1]: Entering directory '/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build'
| make -f /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/Makefile.build obj=scripts/basic
|   gcc  -isystem/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include -O2 -pipe -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11   -o scripts/basic/fixdep /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/basic/fixdep.c
| rm -f .tmp_quiet_recordmcount
| ln -fsn /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git source
| /bin/bash /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/mkmakefile /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git
|   GEN     Makefile
| make -f /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/Makefile.build obj=scripts/kconfig j722s_beagley_ai_evt_r5_defconfig
|   gcc  -isystem/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include -O2 -pipe -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -c -o scripts/kconfig/conf.o /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/kconfig/conf.c
|   bison -oscripts/kconfig/zconf.tab.c -t -l /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/kconfig/zconf.y
|   flex -oscripts/kconfig/zconf.lex.c -L /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/kconfig/zconf.l
|   gcc  -isystem/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include -O2 -pipe -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11  -I/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
|   gcc  -isystem/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/include -O2 -pipe -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -L/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread   -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
| scripts/kconfig/conf  --defconfig=arch/../configs/j722s_beagley_ai_evt_r5_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/j722s_beagley_ai_evt_r5_defconfig"!
| ***
| make[2]: *** [/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/scripts/kconfig/Makefile:96: j722s_beagley_ai_evt_r5_defconfig] Error 1
| make[1]: *** [/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git/Makefile:575: j722s_beagley_ai_evt_r5_defconfig] Error 2
| make[1]: Leaving directory '/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/build'
| make: *** [Makefile:177: sub-make] Error 2
| make: Leaving directory '/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/meta-ti/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2023.04.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5280 tasks of which 5270 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  mc:k3r5:/home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/meta-ti/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2023.04.bb:do_configure
    log: /home/bismih/projelerimiz3/yocto_workspace/.distrobox/yocto-labs/build/tmp-k3r5/work/bismih_k3r5-poky-eabi/u-boot-bb.org/2023.04+git/temp/log.do_configure.2280
Summary: There were 4108 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Machine Configuration Files

new_beagley_ai.conf (A53 core):

#@TYPE: Machine
#@NAME: Bootlin Labs BeagleY AI (A53)
#@DESCRIPTION: Custom machine configuration for the BeagleY AI board (A53 core) - Bootlin Labs version

require conf/machine/include/j722s.inc

TI_PREFERRED_BSP ?= "bb_org-6_1"
require conf/machine/include/beagle-bsp.inc

UBOOT_MACHINE = "j722s_evm_a53_config"
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am67a_beagley_ai_a53.config"

KERNEL_DEVICETREE_PREFIX = " \
    ti/k3-j722s \
"

KERNEL_DEVICETREE = ""
KERNEL_DEVICETREE:append:bsp-bb_org-6_1 = " \
    ti/k3-j722s-evm.dtb \
    ti/k3-am67a-beagley-ai.dtb \
"

MACHINE_GUI_CLASS = "bigscreen"
MACHINEOVERRIDES =. "j722s-evm:beagley-ai:"

BSP_BOOTLOADER_PROVIDER = "u-boot-bb.org"
BSP_BOOTLOADER_VERSION = "1:2023.04+git"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
PREFERRED_VERSION_u-boot-bb.org = "2023.04"

new_beagley_ai-k3r5.conf (R5F core):

#@TYPE: Machine
#@NAME: BeagleY AI (R5F)
#@DESCRIPTION: Machine configuration for the BeagleY AI (R5F core)

require conf/machine/include/k3r5.inc

TI_PREFERRED_BSP ?= "bb_org-6_1"
require conf/machine/include/beagle-bsp.inc

SYSFW_SOC = "j722s"
SYSFW_CONFIG = "evm"
SYSFW_SUFFIX = "hs-fs"

UBOOT_MACHINE = "j722s_evm_r5_defconfig"
# UBOOT_MACHINE = "am67a_beagley_ai_r5_defconfig"

UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am67a_beagley_ai_r5.config"

MACHINEOVERRIDES =. "j722s-evm:beagley-ai-r5:"

BSP_BOOTLOADER_PROVIDER = "u-boot-bb.org"
BSP_BOOTLOADER_VERSION = "1:2023.04+git"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
PREFERRED_VERSION_u-boot-bb.org = "2023.04"
Output: pwd; find . -type f -name "*j72*"
./j722s_evm_r5_usbdfu.config
./j722s_evm_r5_defconfig
./j721e_beagleboneai64_r5.config
./j7200_evm_a72_defconfig
./j721e_beagleboneai64_a72.config
./j722s_beagley_ai_evt_r5.config      # ← This exists!
./j722s_beagley_ai_evt_a53.config     # ← This exists!
./j722s_evm_a53_defconfig
./j721e_evm_r5_defconfig
./j722s_evm_r5_usbmsc.config
./j721s2_evm_r5_defconfig
./j721s2_evm_a72_defconfig
./j721e_evm_a72_defconfig
./j7200_evm_r5_defconfig

.

  1. Working: bitbake u-boot-bb.org compiles successfully

  2. Working: Setting machine to beagley-ai in local.conf works without errors

  3. Failing: The custom R5F configuration fails to find j722s_evm_r5_defconfig

  4. Available: I can see that j722s_beagley_ai_evt_r5.config and j722s_beagley_ai_evt_a53.config exist in the source

  5. Root Cause: Why is the build looking for j722s_evm_r5_defconfig in the wrong path (arch/../configs/ instead of configs/)?

  6. Configuration Mismatch: Should I be using j722s_beagley_ai_evt_r5.config instead of j722s_evm_r5_defconfig for the BeagleY AI?

  7. Path Issue: Is there a configuration setting that controls where U-Boot looks for defconfig files?

My environment

  • Yocto Version: Scarthgap
  • U-Boot Version: 2023.04+git
  • Target: BeagleY AI (J722S SoC)
  • BSP: bb_org-6_1
  • My system: Distrobox ubuntu 22.04

Where is the problem? And how can i solve this problem

1 Like

UBOOT_MACHINE = "j722s_evm_a53_config am67a_beagley_ai_a53.config"

UBOOT_MACHINE = "j722s_evm_r5_defconfig am67a_beagley_ai_r5.config"

Regards,

3 Likes

is a pre-production design, it won’t boot on an non-evt…

Regards,

3 Likes

another option.. as bitbake can’t build that tree, just switch to mainline v2025.07 with a couple patches:

v2025.07-Beagle: GitHub - beagleboard/u-boot at v2025.07-Beagle

am67a_beagley_ai_r5_defconfig

&

am67a_beagley_ai_a53_defconfig

Regards,

2 Likes

Hi,

Thanks for your feedback. You are correct: md and md-k3r5 are custom machines that I created myself. @foxsquirrel
When I use the official MACHINE = "beagley-ai", everything works as expected:

  • The build completes successfully,
  • I can boot the board, connect via UART, and even run small apps (e.g. nInvaders).

@RobertCNelson However, when I try to build with my custom machine (which has the same configuration as beagley-ai, just renamed), I hit these issues:

  1. For R5 I added:
    UBOOT_MACHINE = "j722s_evm_r5_defconfig am67a_beagley_ai_r5.config"
    
  2. For A53 I added:
    UBOOT_MACHINE = "j722s_evm_a53_config am67a_beagley_ai_a53.config"
    

Even after these changes, the build still fails with:

*** Can't find default configuration "arch/../configs/j722s_evm_r5_defconfig"!

and similar errors for A53.


My questions:

  1. Besides copying meta-beagle/conf/machine/beagley-ai.conf into my own layer and renaming it, are there additional steps required (such as copying Kconfig fragments, U-Boot defconfig files, or symlinks) so that the build system recognizes these configs for a custom machine?
  2. Do I need to manually provide the am67a_beagley_ai_*.config fragments somewhere when using a renamed machine?
  3. Is there a recommended workflow to debug why UBOOT_MACHINE cannot find these configs when the machine name is changed?

My goal is to keep using the BeagleY-AI board (because it is newer and more powerful) but with a custom machine name for my Yocto work.

Any guidance on the proper steps to fully duplicate the beagley-ai machine into a custom machine would be greatly appreciated!

2 Likes

Thank you for your reply. I tried it but it gave same result. But when i check blow place, u-boot bb file use different git and use machine name. I changed its name for my machine now it is building.

Thank you for all help

1 Like

Ah! Yeap I should stay out of yocto discussions! Just a little detail that changes everything.

2 Likes

Thanks, the problem is fixed now.

1 Like