This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62A-LP: Yocto build issue *** SOC env variable ...

Part Number: SK-AM62A-LP


Hi, i try to build a yocto image build i have an error during the build.
the step i followed

followed this guide :
https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/09_01_00/exports/docs/linux/Overview_Building_the_SDK.html

and use this file for the config like described here :
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1297472/sk-am62a-lp-yocto-build-issue/4960381#4960381

and execute :
./oe-layertool-setup.sh -f configs/processor-sdk-analytics/processor-sdk-analytics-09.01.00-config.txt


Build Configuration (mc:default):
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "aarch64-oe-linux"
MACHINE              = "am62axx-evm"
DISTRO               = "arago"
DISTRO_VERSION       = "2023.10"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta-arago-distro
meta-arago-extras
meta-arago-demos
meta-arago-test      = "HEAD:190e2b58fb6c1e3c658fe2f7afc40a2863007bbc"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-virtualization  = "HEAD:67b0ef4256a484851f3556d281ca4caa88374388"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems     = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta-ti-extras
meta-ti-bsp          = "HEAD:6ad91a192fa1ab33775a22894a413aefd0b67106"
meta-arm
meta-arm-toolchain   = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta                 = "HEAD:b77cd331199fa62e3b162f37efca3b927c68d8e5"
meta-tisdk           = "HEAD:d0a92bc0a53276a3faad16ed52084451f4d1b3bf"
meta-edgeai          = "HEAD:02ce7e60b449c72def00f26afc549034cbd82ba9"


Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "arm-oe-eabi"
MACHINE              = "am62axx-evm-k3r5"
DISTRO               = "arago"
DISTRO_VERSION       = "2023.10"
TUNE_FEATURES        = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU           = "hard"
meta-arago-distro
meta-arago-extras
meta-arago-demos
meta-arago-test      = "HEAD:190e2b58fb6c1e3c658fe2f7afc40a2863007bbc"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-virtualization  = "HEAD:67b0ef4256a484851f3556d281ca4caa88374388"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems     = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta-ti-extras
meta-ti-bsp          = "HEAD:6ad91a192fa1ab33775a22894a413aefd0b67106"
meta-arm
meta-arm-toolchain   = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta                 = "HEAD:b77cd331199fa62e3b162f37efca3b927c68d8e5"
meta-tisdk           = "HEAD:d0a92bc0a53276a3faad16ed52084451f4d1b3bf"
meta-edgeai          = "HEAD:02ce7e60b449c72def00f26afc549034cbd82ba9"

Initialising tasks: 100% |###########################################################################################################################################################| Time: 0:00:16
Sstate summary: Wanted 147 Local 79 Mirrors 0 Missed 68 Current 4188 (53% match, 98% complete)
NOTE: Executing Tasks
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /data/mlestephan/ti/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
ERROR: ti-edgeai-firmware-AUTOINC+49be344b64-r0 do_install: ExecutionError('/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/temp/run.do_install.255', 1, None, None)
ERROR: Logfile of failure stored in: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/temp/log.do_install.255
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/data/mlestephan/ti/yocto-build/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', '/data/mlestephan/ti/yocto-build/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/data/mlestephan/ti/yocto-build/sources/meta-ti/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb:do_populate_sysroot', 'virtual:native:/data/mlestephan/ti/yocto-build/sources/oe-core/meta/recipes-connectivity/openssl/openssl_3.0.12.bb:do_populate_sysroot', 'virtual:native:/data/mlestephan/ti/yocto-build/sources/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/data/mlestephan/ti/yocto-build/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['opkg-utils', 'quilt-native', 'ti-k3-secdev-native', 'openssl-native', 'patch-native', 'pseudo-native', 'perl-native', 'libtool-native', 'attr-native', 'gcc-runtime', 'glibc', 'make-native', 'zlib-native', 'xz-native', 'gdbm-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'libgcc', 'linux-libc-headers']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_mcu1_0.out: No such file or directory
| 80BBB806027F0000:error:80000002:system library:file_ctrl:No such file or directory:../openssl-3.0.12/crypto/bio/bss_file.c:297:calling fopen(/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_mcu1_0.out, r)
| 80BBB806027F0000:error:10080002:BIO routines:file_ctrl:system lib:../openssl-3.0.12/crypto/bio/bss_file.c:300:
| cat: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_mcu1_0.out: No such file or directory
| Error checking x509 extension section v3_ca
| 80ABB2F05B7F0000:error:07800079:common libcrypto routines:ossl_hexstr2buf_sep:hex string too short:../openssl-3.0.12/crypto/o_str.c:195:
| 80ABB2F05B7F0000:error:068000B2:asn1 encoding routines:asn1_str2type:illegal hex:../openssl-3.0.12/crypto/asn1/asn1_gen.c:695:string=
| 80ABB2F05B7F0000:error:11000074:X509 V3 routines:v3_generic_extension:extension value error:../openssl-3.0.12/crypto/x509/v3_conf.c:256:value=SEQUENCE:sysfw_image_integrity
| cat: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_mcu1_0.out: No such file or directory
| /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_c7x_1.out: No such file or directory
| 806B6B83AC7F0000:error:80000002:system library:file_ctrl:No such file or directory:../openssl-3.0.12/crypto/bio/bss_file.c:297:calling fopen(/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_c7x_1.out, r)
| 806B6B83AC7F0000:error:10080002:BIO routines:file_ctrl:system lib:../openssl-3.0.12/crypto/bio/bss_file.c:300:
| cat: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_c7x_1.out: No such file or directory
| Error checking x509 extension section v3_ca
| 801B5549F57F0000:error:07800079:common libcrypto routines:ossl_hexstr2buf_sep:hex string too short:../openssl-3.0.12/crypto/o_str.c:195:
| 801B5549F57F0000:error:068000B2:asn1 encoding routines:asn1_str2type:illegal hex:../openssl-3.0.12/crypto/asn1/asn1_gen.c:695:string=
| 801B5549F57F0000:error:11000074:X509 V3 routines:v3_generic_extension:extension value error:../openssl-3.0.12/crypto/x509/v3_conf.c:256:value=SEQUENCE:sysfw_image_integrity
| cat: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_c7x_1.out: No such file or directory
| install: cannot stat '/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/am62axx_evm-oe-linux/ti-edgeai-firmware/AUTOINC+49be344b64-r0/git//vx_app_rtos_linux_mcu1_0.out': No such file or directory
| WARNING: exit code 1 from a shell command.
ERROR: Task (/data/mlestephan/ti/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-edgeai-firmware.bb:do_install) failed with exit code '1'
ERROR: ti-vision-apps-1.0-r0_edgeai_1 do_compile: oe_runmake failed
ERROR: ti-vision-apps-1.0-r0_edgeai_1 do_compile: ExecutionError('/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/temp/run.do_compile.303', 1, None, None)
ERROR: Logfile of failure stored in: /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/temp/log.do_compile.303
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 -C /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/repo/sdk_builder yocto_build
| make: Entering directory '/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/repo/sdk_builder'
| make: Leaving directory '/data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/repo/sdk_builder'
| /data/mlestephan/ti/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_1/repo/sdk_builder/build_flags.mak:74: *** SOC env variable should be set to one of (j721e, j721s2, j784s4, am62a).  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/data/mlestephan/ti/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 10884 tasks of which 10882 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 8 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 8 seconds

Summary: 2 tasks failed:
  /data/mlestephan/ti/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-edgeai-firmware.bb:do_install
  /data/mlestephan/ti/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_compile
Summary: There were 8 WARNING messages.
Summary: There were 3 ERROR messages, returning a non-zero exit code.


can you help

There is an updtae for the yocot image ?

  • Hi Mickael,

    For SDK v9.1 the steps have changed slightly, can you please make sure to have the exact branding step from the documentation and try again:

    $ echo 'ARAGO_BRAND = "edgeai"' >> conf/local.conf

    See https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/09_01_00/exports/docs/linux/Overview_Building_the_SDK.html

    Regards, Andreas

  • Hi Andreas,

    move to trash all the precedent work, and follow the guide from a clean folder but same result !

  • With the "edgeai" branding applied to local.conf you need to be building the 

    tisdk-edgeai-image target, NOT any other image. What image are you trying to build?

    Regards, Andres
  • MACHINE="am62axx-evm" bitbake -k tisdk-edgeai-image

    local.conf

  • MACHINE="am62axx-evm" bitbake -k tisdk-edgeai-image

    local.conf

    # CONF_VERSION is increased each time build/conf/ changes incompatibly
    CONF_VERSION = "2"
    
    #
    # Where to place downloads
    #
    # During a first build the system will download many different source code
    # tarballs from various upstream projects. This can take a while, particularly
    # if your network connection is slow. These are all stored in DL_DIR. When
    # wiping and rebuilding you can preserve this directory to speed up this part
    # of subsequent builds. This directory is safe to share between multiple builds
    # on the same machine too.
    DL_DIR = "/data/mlestephan/yocto-dowloads"
    
    #
    # Where to place shared-state files
    #
    # BitBake has the capability to accelerate builds based on previously built
    # output. This is done using "shared state" files which can be thought of as
    # cache objects and this option determines where those files are placed.
    #
    # You can wipe out TMPDIR leaving this directory intact and the build would
    # regenerate from these files if no changes were made to the configuration.
    # If changes were made to the configuration, only shared state files where the
    # state was still valid would be used (done using checksums).
    SSTATE_DIR = "${OEBASE}/build/sstate-cache"
    
    #
    # Shared-state files from other locations
    #
    # As mentioned above, shared state files are prebuilt cache data objects which
    # can be used to accelerate build time. This variable can be used to configure
    # the system to search other mirror locations for these objects before it
    # builds the data itself.
    #
    # This can be a filesystem directory, or a remote url such as http or ftp.
    # These would contain the sstate-cache results from previous builds (possibly
    # from other machines). This variable works like fetcher MIRRORS/PREMIRRORS
    # and points to the cache locations to check for the shared objects.
    #SSTATE_MIRRORS ?= "\
    #file://.* http://someserver.tld/share/sstate/ \n \
    #file://.* file:///some/local/dir/sstate/"
    
    #
    # Where to place the build output
    #
    # This option specifies where the bulk of the building work should be done and
    # where BitBake should place its temporary files and output. Keep in mind that
    # this includes the extraction and compilation of many applications and the toolchain
    # which can use Gigabytes of hard disk space.
    TMPDIR = "${TOPDIR}/arago-tmp"
    
    # By default, DEPLOY_DIR is inside TMPDIR, but can be changed here to be outside
    #DEPLOY_DIR = "${TOPDIR}/deploy"
    
    #
    # Machine Selection
    #
    # You need to select a specific machine to target the build with. There are a selection
    # of emulated machines available which can boot and run in the QEMU emulator:
    #
    MACHINE = "am62axx-evm"
    
    #
    # Package Management configuration
    #
    # This variable lists which packaging formats to enable. Multiple package backends 
    # can be enabled at once and the first item listed in the variable will be used 
    # to generate the root filesystems.
    # Options are:
    #  - 'package_deb' for debian style deb files
    #  - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
    #  - 'package_rpm' for rpm style packages
    # E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
    # We default to ipk:
    PACKAGE_CLASSES ?= "package_ipk"
    
    #
    # SDK/ADT target architecture
    #
    # This variable specified the architecture to build SDK/ADT items for and means
    # you can build the SDK packages for architectures other than the machine you are 
    # running the build on (i.e. building i686 packages on an x86_64 host._
    # Supported values are i686 and x86_64
    SDKMACHINE ?= "x86_64"
    
    #
    # Extra image configuration defaults
    #
    # The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated 
    # images. Some of these options are added to certain image types automatically. The
    # variable can contain the following options:
    #  "dbg-pkgs"       - add -dbg packages for all installed packages
    #                     (adds symbol information for debugging/profiling)
    #  "dev-pkgs"       - add -dev packages for all installed packages
    #                     (useful if you want to develop against libs in the image)
    #  "tools-sdk"      - add development tools (gcc, make, pkgconfig etc.)
    #  "tools-debug"    - add debugging tools (gdb, strace)
    #  "tools-profile"  - add profiling tools (oprofile, exmap, lttng valgrind (x86 only))
    #  "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
    #  "debug-tweaks"   - make an image suitable for development
    #                     e.g. ssh root access has a blank password
    # There are other application targets that can be used here too, see
    # meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
    # We default to enabling the debugging tweaks.
    EXTRA_IMAGE_FEATURES = "debug-tweaks"
    
    #
    # Additional image features
    #
    # The following is a list of additional classes to use when building images which
    # enable extra features. Some available options which can be included in this variable 
    # are:
    #   - 'buildstats' collect build statistics
    #   - 'image-swab' to perform host system intrusion detection
    # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
    USER_CLASSES ?= "buildstats"
    
    # By default disable interactive patch resolution (tasks will just fail instead):
    PATCHRESOLVE = "noop"
    
    # By default the machine configuration file sets the IMAGE_FSTYPES.  But if you
    # would like to add additional file system types you can uncomment the
    # following line and add the additional IMAGE_FSTYPES you want created
    # as part of the build flow.  Some common types are listed below and you
    # can remove the ones you do not want.
    # IMAGE_FSTYPES += "jffs2 cramfs ext2.gz ext3.gz squashfs ubi tar.gz tar.bz2 cpio"
    
    #
    # Parallelism Options
    #
    # These two options control how much parallelism BitBake should use. The first 
    # option determines how many tasks bitbake should run in parallel:
    #
    # BB_NUMBER_THREADS ?= "1"
    # 
    # The second option controls how many processes make should run in parallel when
    # running compile tasks:
    #
    # PARALLEL_MAKE ?= "-j 1"
    #
    # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
    # be appropriate for example
    #
    # NOTE: By default, bitbake will choose the number of processeors on your host
    # so you should not need to set this unless you are wanting to lower the number
    # allowed.
    #
    
    DISTRO = "arago"
    
    # Set terminal types by default it expects gnome-terminal
    # but we chose xterm
    TERMCMD = "${XTERM_TERMCMD}"
    TERMCMDRUN = "${XTERM_TERMCMDRUN}"
    
    # Don't generate the mirror tarball for SCM repos, the snapshot is enough
    BB_GENERATE_MIRROR_TARBALLS = "0"
    
    # Uncomment this to remove work directory after packaging to save disk space
    #INHERIT += "rm_work"
    
    # Keep one set of images by default
    RM_OLD_IMAGE = "1"
    
    # Enable local PR service for binary feeds
    PRSERV_HOST = "localhost:0"
    
    # Enable hash equiv server
    BB_SIGNATURE_HANDLER = "OEEquivHash"
    BB_HASHSERVE = "auto"
    
    # It is recommended to activate "buildhistory" for testing the PR service
    INHERIT += "buildhistory"
    BUILDHISTORY_COMMIT = "1"
    

  • I noticed you are building under Ubuntu 20.04. Please re-try using 22.04, which is the officially supported OS for the SDK v9.x releases.

    Also make sure to not use any virtualization environments (Docker, WSL2, ...) during your initial attempts trying to get to a good build.

    Regards, Andreas

  • Thank you Andreas, build with a docker and ubuntu 22.04 works fine.