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.

TDA4VE-Q1: Failed to build SDK with Yocto (SDK Linux for J721s2 r10.1)

Part Number: TDA4VE-Q1

Tool/software:

Hi TI Experts,

We followed the official instructions to build SDK with Yocto (SDK Linux for J721s2 r10.1)

The purpose is to generate the roots "tisdk-adas-image-j721s2-evm.tar.xz" which is used in SDK RTOS.

git clone https://git.ti.com/git/arago-project/oe-layersetup.git yocto-build
cd yocto-build
./oe-layertool-setup.sh -f configs/processor-sdk-analytics/processor-sdk-analytics-10.01.00-config.txt
cd build
. conf/setenv
echo 'ARAGO_BRAND = "adas"' >> conf/local.conf
TOOLCHAIN_BASE=/opt/tda4 MACHINE="j721s2-evm" bitbake -k tisdk-adas-image

But encountered the following error during the build process:

Parsing of 7036 .bb files complete (0 cached, 7036 parsed). 11095 targets, 1643 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'tisdk-adas-image'. Close matches:
tisdk-base-image
tisdk-default-image
tisdk-edgeai-image

$ MACHINE="j721s2-evm" bitbake -k tisdk-adas-image
WARNING: Duplicate inclusion for /home/user-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
WARNING: Duplicate inclusion for /home/user-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
NOTE: Started PRServer with DBfile: /mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/cache/prserv.sqlite3, Address: 127.0.0.1:43269, PID: 2008227
Loading cache: 100% |                                                                              | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |#############################################################################| Time: 0:00:57
Parsing of 7036 .bb files complete (0 cached, 7036 parsed). 11095 targets, 1643 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'tisdk-adas-image'. Close matches:
  tisdk-base-image
  tisdk-default-image
  tisdk-edgeai-image
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies

Build Configuration (mc:default):
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "aarch64-oe-linux"
MACHINE              = "j721s2-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:b6349e47760397add572cc27468e0f30b40474c1"
meta-qt5             = "scarthgap:554fc20c326a9b205169331644f0cb471619e63c"
meta-virtualization  = "HEAD:450941a1b6df96285691e8c23d4f332d3c88a994"
meta-networking      
meta-python          
meta-oe              
meta-gnome           
meta-filesystems     
meta-multimedia      = "HEAD:b8d1a14f7f3b76457c36752202ea7ae5881b6654"
meta-ti-extras       
meta-ti-bsp          = "HEAD:f06324bc1649e4f437686560cbd66f973ba920f5"
meta-arm             
meta-arm-toolchain   = "HEAD:7088279c0ab00c7dabefdd4544951b4746b48476"
meta-clang           = "HEAD:9fbfa9db33131abdf3870a94f00199eb53e276e5"
meta                 = "HEAD:92cb4641ff4ec8c1f681bca21cfeaf2ba6923ab7"
meta-tisdk           = "HEAD:fcd7661087b0dd5b5b57d30ba0d45f2698e962f8"
meta-edgeai          = "HEAD:41499d7bcc8d37862b93c0d56cf782f9182d0be1"


Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "arm-oe-eabi"
MACHINE              = "j721s2-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:b6349e47760397add572cc27468e0f30b40474c1"
meta-qt5             = "scarthgap:554fc20c326a9b205169331644f0cb471619e63c"
meta-virtualization  = "HEAD:450941a1b6df96285691e8c23d4f332d3c88a994"
meta-networking      
meta-python          
meta-oe              
meta-gnome           
meta-filesystems     
meta-multimedia      = "HEAD:b8d1a14f7f3b76457c36752202ea7ae5881b6654"
meta-ti-extras       
meta-ti-bsp          = "HEAD:f06324bc1649e4f437686560cbd66f973ba920f5"
meta-arm             
meta-arm-toolchain   = "HEAD:7088279c0ab00c7dabefdd4544951b4746b48476"
meta-clang           = "HEAD:9fbfa9db33131abdf3870a94f00199eb53e276e5"
meta                 = "HEAD:92cb4641ff4ec8c1f681bca21cfeaf2ba6923ab7"
meta-tisdk           = "HEAD:fcd7661087b0dd5b5b57d30ba0d45f2698e962f8"
meta-edgeai          = "HEAD:41499d7bcc8d37862b93c0d56cf782f9182d0be1"

NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds

Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.

It seems the build target "tisdk-adas-image" is not found when running bitbake.

I would appreciate it if you could guide me through the process of building tisdk-adas-image-j721s2-evm.tar.xz for use with Vision Apps.

Regards,

Christopher

  • Hi Christopher,

    The recipe should be found when running bitbake. The following are the files which define the recipe:

    $ grep -n tisdk-adas-image -r ./*
    ./meta-edgeai/recipes-core/images/tisdk-edgeai-image.bb:5:PN:adas = "tisdk-adas-image"
    ./meta-edgeai/recipes-core/images/tisdk-edgeai-image.bb:72:IMAGE_BASENAME:adas = "tisdk-adas-image${ARAGO_IMAGE_SUFFIX}"
    ./meta-edgeai/recipes-core/images/tisdk-core-bundle.bbappend:6:TARGET_IMAGES:adas = "tisdk-adas-image"

    The recipe also appears when I search for it:

    $ MACHINE=j721s2-evm bitbake-layers show-recipes
    ...
    tisdk-adas-image:
      meta-edgeai          1.0
    ...

    Can you send your local.conf?

    Additionally, why are you defining TOOLCHAIN_BASE in the command?

    These are the commands I ran:

    $ cd oe-layersetup/
    $ ./oe-layertool-setup.sh -f configs/processor-sdk-analytics/processor-sdk-analytics-10.01.00-config.txt
    $ cd build
    $ echo 'ARAGO_BRAND = "adas"' >> conf/local.conf
    $ MACHINE=j721s2-evm bitbake-layers show-recipes

    Best,
    Jared

  • Hi Jared,

    Thank you for your feedback.

    After removing the entire yocto_build folder and retrying with the correct command, the build process is now running successfully.

    I have a few follow-up questions:

    1. Is the build target tisdk-adas-image based on the tisdk-edgeai-image.bb recipe?
    2. What is the difference between tisdk-adas-image and tisdk-default-image? In r10.1, is it still necessary to switch between edgeai and vision_apps by replacing the uEnv.txt file?

    Thanks.

    Best regards,
    Kris

  • Hi Jared,

    The build process failed when doing "ti-vision-apps-10.1.0-r0_edgeai_10 do_fetch"

    Please see below log:

    ---------------------- log ---------------------------

    (ti-j721s2-v10-py38) jet-ai@JET-AI:~/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build$ MACHINE="j721s2-evm" bitbake -k tisdk-adas-image
    NOTE: Started PRServer with DBfile: /mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/cache/prserv.sqlite3, Address: 127.0.0.1:37817, PID: 774610
    Loading cache: 100% |###############################################################################| Time: 0:00:04
    Loaded 11095 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies

    Build Configuration (mc:default):
    BB_VERSION = "2.8.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-22.04"
    TARGET_SYS = "aarch64-oe-linux"
    MACHINE = "j721s2-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:b6349e47760397add572cc27468e0f30b40474c1"
    meta-qt5 = "scarthgap:554fc20c326a9b205169331644f0cb471619e63c"
    meta-virtualization = "HEAD:450941a1b6df96285691e8c23d4f332d3c88a994"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia = "HEAD:b8d1a14f7f3b76457c36752202ea7ae5881b6654"
    meta-ti-extras
    meta-ti-bsp = "HEAD:f06324bc1649e4f437686560cbd66f973ba920f5"
    meta-arm
    meta-arm-toolchain = "HEAD:7088279c0ab00c7dabefdd4544951b4746b48476"
    meta-clang = "HEAD:9fbfa9db33131abdf3870a94f00199eb53e276e5"
    meta = "HEAD:92cb4641ff4ec8c1f681bca21cfeaf2ba6923ab7"
    meta-tisdk = "HEAD:fcd7661087b0dd5b5b57d30ba0d45f2698e962f8"
    meta-edgeai = "HEAD:41499d7bcc8d37862b93c0d56cf782f9182d0be1"


    Build Configuration:
    BB_VERSION = "2.8.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-22.04"
    TARGET_SYS = "arm-oe-eabi"
    MACHINE = "j721s2-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:b6349e47760397add572cc27468e0f30b40474c1"
    meta-qt5 = "scarthgap:554fc20c326a9b205169331644f0cb471619e63c"
    meta-virtualization = "HEAD:450941a1b6df96285691e8c23d4f332d3c88a994"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia = "HEAD:b8d1a14f7f3b76457c36752202ea7ae5881b6654"
    meta-ti-extras
    meta-ti-bsp = "HEAD:f06324bc1649e4f437686560cbd66f973ba920f5"
    meta-arm
    meta-arm-toolchain = "HEAD:7088279c0ab00c7dabefdd4544951b4746b48476"
    meta-clang = "HEAD:9fbfa9db33131abdf3870a94f00199eb53e276e5"
    meta = "HEAD:92cb4641ff4ec8c1f681bca21cfeaf2ba6923ab7"
    meta-tisdk = "HEAD:fcd7661087b0dd5b5b57d30ba0d45f2698e962f8"
    meta-edgeai = "HEAD:41499d7bcc8d37862b93c0d56cf782f9182d0be1"

    Sstate summary: Wanted 479 Local 108 Mirrors 0 Missed 371 Current 6020 (22% match, 94% complete) | ETA: 0:00:01
    Initialising tasks: 100% |##########################################################################| Time: 0:00:30
    NOTE: Executing Tasks
    WARNING: libeigen-3.4.0-r0 do_fetch: Failed to fetch URL git://gitlab.com/libeigen/eigen.git;protocol=http;branch=3.4, attempting MIRRORS if available
    WARNING: ti-tidl-1.0.0-r0_edgeai_2 do_recipe_qa: QA Issue: ti-tidl: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol [src-uri-bad]
    WARNING: boost-1.84.0-r0 do_fetch: Checksum failure encountered with download of boostorg.jfrog.io/.../boost_1_84_0.tar.bz2 - will attempt other sources if available
    WARNING: ti-tidl-osrt-1.0-r0_edgeai_4 do_package_qa: QA Issue: File /usr/lib/python3.12/site-packages/tflite_runtime-2.12.0.dist-info/direct_url.json in package ti-tidl-osrt contains reference to TMPDIR
    File /usr/lib/python3.12/site-packages/onnxruntime_tidl-1.15.0.dist-info/direct_url.json in package ti-tidl-osrt contains reference to TMPDIR
    File /usr/lib/python3.12/site-packages/dlr-1.13.0.dist-info/direct_url.json in package ti-tidl-osrt contains reference to TMPDIR [buildpaths]
    WARNING: ti-vision-apps-10.1.0-r0_edgeai_10 do_fetch: Failed to fetch URL repo://git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/REL.PSDK.ANALYTICS.10.01.00.04;manifest=vision_apps_yocto.xml, attempting MIRRORS if available
    ERROR: ti-vision-apps-10.1.0-r0_edgeai_10 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/oe-core/scripts:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin/aarch64-oe-linux:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot/usr/bin/crossscripts:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/sbin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/sbin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/bin:/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/bitbake/bin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/hosttools"; export HOME="/home/jet-ai"; /usr/bin/env repo sync failed with exit code 1, output:

    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.207]: errno=Connection timed out


    processor-sdk/app_utils:
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.207]: errno=Connection timed out

    processor-sdk/app_utils: sleeping 4.0 seconds before retrying
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out


    processor-sdk/imaging:
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    processor-sdk/imaging: sleeping 4.0 seconds before retrying
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    processor-sdk/psdk_include:
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    processor-sdk/psdk_include: sleeping 4.0 seconds before retrying
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.207]: errno=Connection timed out

    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.207]: errno=Connection timed out

    ...


    processor-sdk/vision_apps: sleeping 4.0 seconds before retrying
    fatal: unable to connect to git.ti.com:
    git.ti.com[0: 198.47.28.208]: errno=Connection timed out

    warning: repo is not tracking a remote branch, so it will not receive updates; run `repo init --repo-rev=stable` to fix.
    error: Cannot fetch processor-sdk/app_utils from git://git.ti.com/processor-sdk/app_utils
    error: Cannot fetch processor-sdk/imaging from git://git.ti.com/processor-sdk/imaging
    error: Cannot fetch processor-sdk/psdk_include from git://git.ti.com/processor-sdk/psdk_include
    error: Cannot fetch processor-sdk-vision/arm-tidl from git://git.ti.com/processor-sdk-vision/arm-tidl
    error: Cannot fetch processor-sdk/sdk_builder from git://git.ti.com/processor-sdk/sdk_builder
    error: Cannot fetch processor-sdk/concerto from git://git.ti.com/processor-sdk/concerto
    error: Cannot fetch processor-sdk/ti-perception-toolkit from git://git.ti.com/processor-sdk/ti-perception-toolkit
    error: Cannot fetch processor-sdk/tiovx from git://git.ti.com/processor-sdk/tiovx
    error: Cannot fetch processor-sdk/video_io from git://git.ti.com/processor-sdk/video_io
    error: Cannot fetch processor-sdk/vision_apps from git://git.ti.com/processor-sdk/vision_apps
    error: Cannot fetch processor-sdk/app_utils from git://git.ti.com/processor-sdk/app_utils
    error: Cannot fetch processor-sdk/imaging from git://git.ti.com/processor-sdk/imaging
    error: Cannot fetch processor-sdk/psdk_include from git://git.ti.com/processor-sdk/psdk_include
    error: Cannot fetch processor-sdk-vision/arm-tidl from git://git.ti.com/processor-sdk-vision/arm-tidl
    error: Cannot fetch processor-sdk/sdk_builder from git://git.ti.com/processor-sdk/sdk_builder
    error: Cannot fetch processor-sdk/concerto from git://git.ti.com/processor-sdk/concerto
    error: Cannot fetch processor-sdk/ti-perception-toolkit from git://git.ti.com/processor-sdk/ti-perception-toolkit
    error: Cannot fetch processor-sdk/tiovx from git://git.ti.com/processor-sdk/tiovx
    error: Cannot fetch processor-sdk/video_io from git://git.ti.com/processor-sdk/video_io
    error: Cannot fetch processor-sdk/vision_apps from git://git.ti.com/processor-sdk/vision_apps
    error: Cannot checkout processor-sdk/app_utils: ManifestInvalidRevisionError: revision refs/tags/REL.PSDK.ANALYTICS.10.01.00.04 in processor-sdk/app_utils not found
    error: in `sync`: revision refs/tags/REL.PSDK.ANALYTICS.10.01.00.04 in processor-sdk/app_utils not found

    ERROR: ti-vision-apps-10.1.0-r0_edgeai_10 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'repo://git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/REL.PSDK.ANALYTICS.10.01.00.04;manifest=vision_apps_yocto.xml')
    ERROR: Logfile of failure stored in: /mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch.777645
    ERROR: Task (/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 13919 tasks of which 13275 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 7 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 6 seconds

    Summary: 1 task failed:
    /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch
    Summary: There were 5 WARNING messages.
    Summary: There were 2 ERROR messages, returning a non-zero exit code.

    ---------------------- end of log ---------------------------

    Cloud you please help me with this issue?

    Thanks.

    Regards,

    Christopher

  • Hi Jared,

    We found it still failed by simply trying below command:

    git clone git://git.ti.com/processor-sdk/video_io


    There may be some network setting issue on the machine we use to build yocto.

    We will try to figure it out.

    Regards,

    Christopher

  • Hi Christopher,

    1. Is the build target tisdk-adas-image based on the tisdk-edgeai-image.bb recipe?

    Yes, but the tisdk-adas-image and tisdk-edgeai-image are different. The adas image utilizes the R core frameworks (vision_apps) instead of the Linux frameworks.

    2. What is the difference between tisdk-adas-image and tisdk-default-image? In r10.1, is it still necessary to switch between edgeai and vision_apps by replacing the uEnv.txt file?

    The default image doesn't contain vision_apps code. It is necessary to select the between edgeai vs vision_apps.

    fatal: unable to connect to git.ti.com:

    View the following thread for the solution to this error: TDA4VH-Q1: Bitbake Build error 

    Best,
    Jared

  • Hi Jared,

    After adding ti-vision-apps.bbappend, the build completed successfully.
    Thank you for your detailed explanation.

    Regards,

    Christopher

  • Hi Jared,

    The solution of adding tisdk-edgeai-image.bbappend worked last week.

    However, when I executed the same command to build tisdk-adas-image today, the build failed with the following error log.

    (ti-j721s2-v10-py38) jet-ai@JET-AI:~/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build$ MACHINE=j721s2-evm bitbake -f -k tisdk-adas-image
    NOTE: Started PRServer with DBfile: /mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/cache/prserv.sqlite3, Address: 127.0.0.1:39155, PID: 2335551
    Loading cache: 100% |#######################################################################################| Time: 0:00:03
    Loaded 11095 entries from dependency cache.
    WARNING: /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
    WARNING: /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb: Error during finalise of mc:k3r5:/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb
    ERROR: ExpansionError during parsing /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb
    bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/oe-core/scripts:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin/arm-oe-eabi:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot/usr/bin/crossscripts:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/sbin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot-native/sbin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/work/armv7at2hf-vfp-oe-eabi/ti-vision-apps/10.1.0/recipe-sysroot-native/bin:/home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/bitbake/bin:/mnt/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/build/arago-tmp-default-baremetal-k3r5/hosttools"; export HOME="/home/jet-ai"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.ti.com/git/processor-sdk/sdk_builder.git  failed with exit code 128, output:
    fatal: unable to access 'https://git.ti.com/git/processor-sdk/sdk_builder.git/': gnutls_handshake() failed: Error in the pull function.
    
    The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]
    
    ERROR: Parsing halted due to errors, see error messages above
    WARNING: /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb: Error during finalise of /home/jet-ai/sdc/iAVM/ti-processor-sdk-linux-adas-j721s2-evm-10_01_00_04/yocto-build/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb
    
    Summary: There were 3 WARNING messages.
    Summary: There were 2 ERROR messages, returning a non-zero exit code.

    Simply did the git clone and it was not stable..

    $ git clone https://git.ti.com/git/processor-sdk/sdk_builder.git/
    Cloning into 'sdk_builder'...
    fatal: unable to access 'https://git.ti.com/git/processor-sdk/sdk_builder.git/': Failed to connect to git.ti.com port 443: Connection refused

    Could you please help me troubleshoot or suggest how to resolve this issue?

    Thanks in advance for your support.

    Regards,

    Christopher

  • Hi Christopher,

    Are you able to clone the repository now? The link may have been temporarily down.

    Best,
    Jared

  • Hi Jared,

    Although it's still not stable, the build occasionally succeeds.

    Thanks.

    Regards,

    Christopher

  • Hi Christopher,

    If the build is able to succeed (sometimes), the issue is likely due to your machine's settings

    You can try decreasing the PARALLEL_MAKE and BB_NUMBER_THREADS variables in the local.conf. This should improve stability.

    Best,
    Jared

  • Hi Jared,

    Thanks for  the suggestion.

    I will give it a try.

    Best,

    Christopher

  • Hi Christopher,

    I will close the thread if the issue is resolved.

    Best,
    Jared