Hi,
I am working on customizing the Arago Project for a custom AM62L-based hardware platform. As part of this effort, I have added a new layer (meta-custom-ti) and introduced hardware-specific overrides and append files to replace the TI reference hardware sources.
While building Trusted Firmware-A (TF-A) using BitBake, I encounter the following error:
dir: ~/Anandhu/oe-layersetup/buildcustom_admin@(docker)$ bitbake trusted-firmware-aNOTE: Started PRServer with DBfile: /home/custom_admin/Anandhu/oe-layersetup/build/cache/prserv.sqlite3, Address: 127.0.0.1:43183, PID: 3355835Loading cache: 100% |############################################| Time: 0:00:01Loaded 5445 entries from dependency cache.Parsing recipes: 100% |##########################################| Time: 0:00:03Parsing of 3416 .bb files complete (3414 cached, 2 parsed). 5447 targets, 786 skipped, 0 masked, 0 errors.NOTE: Resolving any missing task queue dependencies
Build Configuration:BB_VERSION = "2.8.1"BUILD_SYS = "x86_64-linux"NATIVELSBSTRING = "ubuntu-22.04"TARGET_SYS = "aarch64-oe-linux"MACHINE = "am62lxx-stamp"DISTRO = "arago"DISTRO_VERSION = "2025.01"TUNE_FEATURES = "aarch64"TARGET_FPU = ""meta-ti-foundational meta-ti-ml = "HEAD:93d1c18850f4bb73de4b09b740fb4ad51eecfe2d"meta-arago-distro meta-arago-extras meta-arago-test = "HEAD:51f6bfa0b61c07dd1542e4aafc83747623355f82"meta-virtualization = "HEAD:af1db2042caf8021d767dce1b26c08b59b96f3d1"meta-networking meta-python meta-oe meta-gnome meta-filesystems meta-multimedia = "HEAD:e621da947048842109db1b4fd3917a02e0501aa2"meta-lts-mixins = "HEAD:a8046d5ec53b1856169ac795aa87cb0d5db84c04"meta-ti-extras meta-beagle meta-ti-bsp = "HEAD:9a30c7b97a979fa66cb22b2c2ce1d3b7d466ee24"meta-arm meta-arm-toolchain = "HEAD:0f1e7bf92c89759f0ab74cfa5be4ee47b092ad46"meta-clang = "HEAD:057ee563305e9484b29d02347aeafdadc5ea28ed"meta = "HEAD:4cf131ebd157b79226533b5a5074691dd0e1a4ab"meta-custom-ti = "master:9997a06c04594d6cdff7d6e8e6b93112d75a59d5"
Sstate summary: Wanted 11 Local 0 Mirrors 0 Missed 11 Current 300 (0% match, 96% complete)Initialising tasks: 100% |#######################################| Time: 0:00:01NOTE: Executing TasksERROR: trusted-firmware-a-2.13+git-r0 do_install: Unsupported TFA_INSTALL_TARGET target bl31ERROR: trusted-firmware-a-2.13+git-r0 do_install: ExecutionError('/home/custom_admin/Anandhu/oe-layersetup/build/arago-tmp-default-glibc/work/am62lxx_stamp-oe-linux/trusted-firmware-a/2.13+git/temp/run.do_install.3357604', 1, None, None)ERROR: Logfile of failure stored in: /home/custom_admin/Anandhu/oe-layersetup/build/arago-tmp-default-glibc/work/am62lxx_stamp-oe-linux/trusted-firmware-a/2.13+git/temp/log.do_install.3357604ERROR: Task (/home/custom_admin/Anandhu/oe-layersetup/sources/meta-arm/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.10.4.bb:do_install) failed with exit code '1'NOTE: Tasks Summary: Attempted 1017 tasks of which 1005 didn't need to be rerun and 1 failed.NOTE: Writing buildhistoryNOTE: Writing buildhistory took: 4 seconds
Summary: 1 task failed: /home/custom_admin/Anandhu/oe-layersetup/sources/meta-arm/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.10.4.bb:do_install log: /home/custom_admin/Anandhu/oe-layersetup/build/arago-tmp-default-glibc/work/am62lxx_stamp-oe-linux/trusted-firmware-a/2.13+git/temp/log.do_install.3357604Summary: There were 2 ERROR messages, returning a non-zero exit code.dir: ~/Anandhu/oe-layersetup/buildcustom_admin@(docker)$
Trusted-firmware-a_%.bbappend file from the meta-custom-ti is posted below :
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:am62lxx = "git://github.com/Anandhu-Sudha/arm-trusted-firmware.git;protocol=https;branch=ti-master"
SRCREV:pn-trusted-firmware-a:am62lxx = "e601819087f7866806624b69eb79544538fa8736"
S = "${WORKDIR}/git"
TFA_INSTALL_TARGET:am62lxx = "bl31 bl1"
EXTRA_OEMAKE:append = " DEBUG=1"COMPATIBLE_MACHINE = "k3"
Observations
-
The same customized TF-A sources build and run correctly when built locally outside of Yocto.
-
The BitBake environment itself is functional, as I am able to successfully build the complete filesystem and boot images for the AM62L EVM using the default TI configuration.
-
The issue appears only after introducing the custom BSP layer, and only during the TF-A
do_installtask. -
The error indicates that
TFA_INSTALL_TARGETis resolving tobl31, which is reported as unsupported by themeta-armTF-A recipe.
Questions
-
What could cause
TFA_INSTALL_TARGETto be set tobl31when using a custom layer, while the default TI configuration builds successfully? -
What is the recommended way to debug variable changes or overrides introduced by a custom BSP layer in the Arago/Yocto environment?
-
Is there an official Arago Project or TI-recommended porting guide for bringing up custom hardware (similar to Yocto BSP porting documentation)?
Any guidance on the correct approach to resolve this issue or pointers to relevant documentation would be greatly appreciated.
Regards,
Anandhu