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.

TDA4VH-Q1: Bitbake Build error

Part Number: TDA4VH-Q1

Tool/software:

Hi Ti Team,

Not able to find the project in the openembedded repo.

When I used SDK 9.2

to run ./oelayer_setup.sh

cloning repo bitbake

 

Cloning into '/code/oe-layersetup/sources/bitbake'...
fatal: repository 'https://git.openembedded.org/bitbake/' not found
git failed... remaining attempts: 4    sleeping 15 seconds

I am getting the above error, and I can see its not present there as well

is it deprecated, should i need to point to something else?

Thanks 

Regards 

Gowtham

 

  • Hi Gowtham,

    Can you send the configuration file you are using?

    Can you use SDK 11.0?

    Best,
    Jared

  • bitbake issue is resolved now,

    Now I am facing issues when running bitbake ti-vision-apps

    When I do the clone git vs https I am also seeing the issue

    We are stuck here, 

    can you comment on this!

    Thanks,

  • Hi Gowtham,

    This is due to the git daemon no longer being supported on the server.

    You will need to patch the manifest file like in the following patch: https://git.ti.com/cgit/processor-sdk/psdk_repo_manifests/commit/?h=main&id=427180f537947a869a6e8b64fd8b2902c390c894 

    Another option would be to switch to the 11.0 SDK release.

    Best,
    Jared

  • repo init -u git.ti.com/.../psdk_repo_manifests.git -b REL.PSDK.ANALYTICS.11.00.00.06 -m vision_apps_yocto.xml
    Downloading Repo source from gerrit.googlesource.com/git-repo

    ... A new version of repo (2.54) is available.
    ... New version is available at: /home/gowtham_s/oe_layer_CICD/psdk_vision_apps/.repo/repo/repo
    ... The launcher is run from: /usr/bin/repo
    !!! The launcher is not writable. Please talk to your sysadmin or distro
    !!! to get an update installed.


    manifests:
    fatal: couldn't find remote ref refs/heads/REL.PSDK.ANALYTICS.11.00.00.06
    manifests: sleeping 4.0 seconds before retrying
    fatal: cannot obtain manifest git.ti.com/.../psdk_repo_manifests.git
    ================================================================================
    Repo command failed: UpdateManifestError
    Unable to sync manifest vision_apps_yocto.xml

    How to download the manifest files we are not able to download that as well

  • Hi Gowtham,

    Are you moving to the 11.0  release or attempting to patch the file?

    If you are attempting to patch the file, you should just edit the manifest with a bbappend to the psdk_repo_manifests recipe.

    If you are migrating, you should clear/delete all of the artifacts you've already generated and start fresh.

    Best,
    Jared

  • I am not moving to 11.0, I am trying to patch the file, 

    but I am not able to download the manifest file itself.

    Can you let me know if there are steps to attempt this?

    I want to be in SDK 9.2 for now

  • Hi Gowtham,

    You can clone the repository, edit it, then edit meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb and replace the SRC_URI from the URL to the local file/repository. For example:

    SRC_URI = "repo:///<path-to>/psdk_repo_manifests;protocol=file;branch=<edited-branch>;manifest=vision_apps_yocto.xml"

    Best,
    Jared

  • Hi, 
    Thanks for the response

    I am not able to clone the repo directly, some issue in HEAD commit,

  • Hi Gowtham,

    Can you try again? I am not seeing the issue.

    $ git clone https://git.ti.com/git/processor-sdk/psdk_repo_manifests.git
    Cloning into 'psdk_repo_manifests'...
    remote: Enumerating objects: 196, done.
    remote: Counting objects: 100% (196/196), done.
    remote: Compressing objects: 100% (196/196), done.
    remote: Total 196 (delta 73), reused 0 (delta 0), pack-reused 0
    Receiving objects: 100% (196/196), 24.39 KiB | 2.03 MiB/s, done.
    Resolving deltas: 100% (73/73), done.
    warning: remote HEAD refers to nonexistent ref, unable to checkout.
    $ ls
    psdk_repo_manifests

    Best,
    Jared

  • warning: remote HEAD refers to nonexistent ref, unable to checkout.

    Nothing will be there inside the folder that has been created, its unable to checkout

  • Hi Gowtham,

    You will have to checkout the main branch.

    Best,
    Jared

  • hi, 

    I did download the repo locally and edited the src_uri, still facing the same issue.

    ti-vision-apps-1.0-r0_edgeai_4 do_fetch: Failed to fetch URL repo:///home/gowtham_s/v_oe_layer_CICD/sources/meta-vadas/recipes-tisdk/ti-psdk-rtos/psdk_repo_manifests;branch=main;protocol=file;manifest=vision_apps_yocto.xml, attempting MIRRORS if available
    ERROR: ti-vision-apps-1.0-r0_edgeai_4 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/gowtham_s/v_oe_layer_CICD/sources/oe-core/scripts:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot-native/usr/bin/aarch64-oe-linux:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot/usr/bin/crossscripts:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot-native/usr/sbin:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot-native/usr/bin:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot-native/sbin:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/recipe-sysroot-native/bin:/home/gowtham_s/v_oe_layer_CICD/sources/bitbake/bin:/home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/hosttools"; export HOME="/home/gowtham_s"; /usr/bin/env repo sync failed with exit code 1, output:

    fatal: read error: Connection reset by peer

    processor-sdk/ti-perception-toolkit:
    fatal: read error: Connection reset by peer
    processor-sdk/ti-perception-toolkit: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/ti-perception-toolkit:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/video_io:
    fatal: read error: Connection reset by peer
    processor-sdk/video_io: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/video_io:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/vision_apps:
    fatal: read error: Connection reset by peer
    processor-sdk/vision_apps: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/vision_apps:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/tiovx:
    fatal: read error: Connection reset by peer
    processor-sdk/tiovx: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/tiovx:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/app_utils:
    fatal: read error: Connection reset by peer
    processor-sdk/app_utils: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/app_utils:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/psdk_include:
    fatal: read error: Connection reset by peer
    processor-sdk/psdk_include: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/psdk_include:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/imaging:
    fatal: read error: Connection reset by peer
    processor-sdk/imaging: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/imaging:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/concerto:
    fatal: read error: Connection reset by peer
    processor-sdk/concerto: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/concerto:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk-vision/arm-tidl:
    fatal: read error: Connection reset by peer
    processor-sdk-vision/arm-tidl: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk-vision/arm-tidl:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/sdk_builder:
    fatal: read error: Connection reset by peer
    processor-sdk/sdk_builder: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/sdk_builder:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/app_utils:
    fatal: read error: Connection reset by peer
    processor-sdk/app_utils: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/app_utils:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/imaging:
    fatal: read error: Connection reset by peer
    processor-sdk/imaging: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/imaging:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/psdk_include:
    fatal: read error: Connection reset by peer
    processor-sdk/psdk_include: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/psdk_include:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk-vision/arm-tidl:
    fatal: read error: Connection reset by peer
    processor-sdk-vision/arm-tidl: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk-vision/arm-tidl:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/sdk_builder:
    fatal: read error: Connection reset by peer
    processor-sdk/sdk_builder: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/sdk_builder:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/concerto:
    fatal: read error: Connection reset by peer
    processor-sdk/concerto: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/concerto:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/ti-perception-toolkit:
    fatal: read error: Connection reset by peer
    processor-sdk/ti-perception-toolkit: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/ti-perception-toolkit:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/tiovx:
    fatal: read error: Connection reset by peer
    processor-sdk/tiovx: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/tiovx:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/video_io:
    fatal: read error: Connection reset by peer
    processor-sdk/video_io: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/video_io:
    fatal: read error: Connection reset by peer

    fatal: read error: Connection reset by peer

    processor-sdk/vision_apps:
    fatal: read error: Connection reset by peer
    processor-sdk/vision_apps: sleeping 4.0 seconds before retrying
    fatal: read error: Connection reset by peer

    processor-sdk/vision_apps:
    fatal: read error: Connection reset by peer

    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/ti-perception-toolkit from git://git.ti.com/processor-sdk/ti-perception-toolkit
    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/tiovx from git://git.ti.com/processor-sdk/tiovx
    error: Cannot fetch processor-sdk/app_utils from git://git.ti.com/processor-sdk/app_utils
    error: Cannot fetch processor-sdk/psdk_include from git://git.ti.com/processor-sdk/psdk_include
    error: Cannot fetch processor-sdk/imaging from git://git.ti.com/processor-sdk/imaging
    error: Cannot fetch processor-sdk/concerto from git://git.ti.com/processor-sdk/concerto
    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/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.09.02.00.05 in processor-sdk/app_utils not found
    error: in `sync`: revision refs/tags/REL.PSDK.ANALYTICS.09.02.00.05 in processor-sdk/app_utils not found

    ERROR: ti-vision-apps-1.0-r0_edgeai_4 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'repo:///home/gowtham_s/v_oe_layer_CICD/sources/meta-vadas/recipes-tisdk/ti-psdk-rtos/psdk_repo_manifests;branch=main;protocol=file;manifest=vision_apps_yocto.xml')
    ERROR: Logfile of failure stored in: /home/gowtham_s/v_oe_layer_CICD/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/temp/log.do_fetch.1115901

  • Hi Gowtham,

    Can you try:

    SRC_URI = "file:///home/gowtham_s/v_oe_layer_CICD/sources/meta-vadas/recipes-tisdk/ti-psdk-rtos/psdk_repo_manifests;manifest=vision_apps_yocto.xml"

    Best,
    Jared

  • if i do file based, I am not able to attach patch files using bbappend.

    And I am not able to compile the same ,

    Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:01
    Sstate summary: Wanted 7 Local 0 Mirrors 0 Missed 7 Current 327 (0% match, 97% complete)
    NOTE: Executing Tasks
    ERROR: ti-vision-apps-1.0-r0_edgeai_4 do_compile: oe_runmake failed
    ERROR: ti-vision-apps-1.0-r0_edgeai_4 do_compile: ExecutionError('/code/oe-layersetup/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/temp/run.do_compile.4475', 1, None, None)
    ERROR: Logfile of failure stored in: /code/oe-layersetup/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/temp/log.do_compile.4475
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: make -j 22 -C /code/oe-layersetup/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/repo/sdk_builder yocto_build
    | make: *** /code/oe-layersetup/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/repo/sdk_builder: No such file or directory. Stop.
    | ERROR: oe_runmake failed
    | WARNING: exit code 1 from a shell command.
    ERROR: Task (/code/oe-layersetup/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_compile) failed with exit code '1'

    no repo folder is getting created .

  • Hi Gowtham,

    I was thinking that you wouldn't apply a patch and just edit the source itself.

    You can also try cloning the necessary repos into their work paths. For example: sdk_builder into: build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/1.0-r0_edgeai_4/repo/sdk_builder

    Best,
    Jared

  • Here is another workaround:

    echo '[url "https://git.ti.com/"]' >> ~/.gitconfig
    echo ' insteadOf = git://git.ti.com/' >> ~/.gitconfig

    But beware: this also breaks bitbake in a subtle way! You cannot share download directories between PSDK versions if you do this, as the repo tool integration of bitbake does not seem to be able to handle the different versions. It will just silently use the old version of the source, not even complaining in the internal logs from what I could find. For roughly the same versions you mentioned this produces the following follow-up error:

    | ../git/gst-libs/gst/tiovx/gsttiovxutils.c: In function 'gst_tiovx_get_exemplar_from_caps':
    | ../git/gst-libs/gst/tiovx/gsttiovxutils.c:655:43: error: 'TIVX_IMAGE_STRIDE_Y_ALIGNMENT' undeclared (first use in this function)
    |   655 |     vxSetImageAttribute((vx_image)output, TIVX_IMAGE_STRIDE_Y_ALIGNMENT,
    |       |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    (This is a symptom and not a root cause, I'm pasting it here so that it turns up in search engines.)

    I'm not sure if this is due to the gitconfig or simply because of swapping git origin for the same repo.

  • I have edited the source ti-vision-apps.bb in meta-edgeai , patch file I am saying if I want to add some git patch on any src files, inside the downloaded repo, I am not able to add.

    If i am doing file based I am getting those errors which I pasted above !

  • (I'm not a TI employee, just a regular user like you. And don't know much of the details here.)

    I'm thinking that if this repo tool just causes problems, perhaps adding the sources directly as git repos to SRC_URI would bet better? I think in that case it would be possible to make a .bbappend file quite easily that we could have in our own layers. I'm not sure if you can .bbappend a "repo repo" but if we skip the "repo tool" entirely and just use a list of git links and the correct revisions I think bitbake may play along better.

  • Hi Joel,

    Thank you for the suggestion, I think that's a good idea.

    Gowtham,

    Let me know how it goes.

    Best,
    Jared

  • Cool! Please let me know how it goes and if you have any bbappend to share. Otherwise I may have a stab at it tomorrow if I can find some time.

  • ti-vision-apps.bbappend:

    SRC_URI = "git://git.ti.com/git/processor-sdk/sdk_builder.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo1 \
    	   git://git.ti.com/git/processor-sdk/app_utils.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo2 \
    	   git://git.ti.com/git/processor-sdk/vision_apps.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo3 \
    	   git://git.ti.com/git/processor-sdk/tiovx.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo4 \
    	   git://git.ti.com/git/processor-sdk/imaging.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo5 \
    	   git://git.ti.com/git/processor-sdk/video_io.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo6 \
    	   git://git.ti.com/git/processor-sdk/ti-perception-toolkit.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo7 \
    	   git://git.ti.com/git/processor-sdk/psdk_include.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo8 \
    	   git://git.ti.com/git/processor-sdk-vision/arm-tidl.git;protocol=https;branch=master;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo9 \
    	   git://git.ti.com/git/processor-sdk/concerto.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo10"
    
    SRCREV_FORMAT = "repo1_repo2_repo3_repo4_repo5_repo6_repo7_repo8_repo9_repo10"
    
    # if you would prefer to use the commit hash instead of the tag:
    # SRCREV_repo1 = "b85284c3fbdf18fe05c45450f3030501721e9b48"
    # SRCREV_repo2 = "04355e7112f66093a56cacdb109faa317b148c02"
    # SRCREV_repo3 = "c500b3ee4db9a040aae99ddc8d8c709a1275cbe5"
    # SRCREV_repo4 = "cbcf513ac89fa53700a9055c1296b844d9ee3bd4"
    # SRCREV_repo5 = "d2a3565032e362df67a82f692a6d72d5b9b4638b"
    # SRCREV_repo6 = "c75d8585e6a184131cdf6c927c8f0bacb517885a"
    # SRCREV_repo7 = "7074d1c78e28082c657b77bf2ed5dc40525146c0"
    # SRCREV_repo8 = "2dde83677ad4daf0d3e53bcd6d2a032a9bac53aa"
    # SRCREV_repo9 = "38a2f55ed3b8b11e1e25359f724b75320f26f003"
    # SRCREV_repo10 = "707b11afdbe5d0abb109a42b06828ba70f555bff"
    
    S = "${WORKDIR}/repo"

  • That didn't work... I made a shallow copy of the psdk_repo_manifests repo and stuck the working manifest on a branch for 10.01.

    This works for now... I'd like to have a cleaner solution though:

    ti-vision-apps.bbappend

    We've since come up with better solutions:

    Best,
    Jared

  • I used your bbappend file but tweaked it a bit and it now works. There was the problem that the git fetcher populates files into git/ and the repo fetcher populates them into repo/. This can be changed by setting destsuffix (note that REPODIR and GITDIR don't apply here, they are for the download directory). I didn't want to fight with the repo fetcher so I created an unrepo/ directory and staged my fake repo/ directory there. The original bb file assumes files are in repo/ so I had to fake it like that. The second problem was that the actual repo manifest populates files into subdirectories of other repos (a bit like git submodules), but that could be solved the same way with destsuffix overlays.

    # This is a workaround for broken git links in the repo manifest used by ti-vision-apps.
    
    SRC_URI = "git://git.ti.com/git/processor-sdk/sdk_builder.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo1;destsuffix=unrepo/repo/sdk_builder/ \
               git://git.ti.com/git/processor-sdk/app_utils.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo2;destsuffix=unrepo/repo/app_utils/ \
               git://git.ti.com/git/processor-sdk/vision_apps.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo3;destsuffix=unrepo/repo/vision_apps/ \
               git://git.ti.com/git/processor-sdk/tiovx.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo4;destsuffix=unrepo/repo/tiovx/ \
               git://git.ti.com/git/processor-sdk/imaging.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo5;destsuffix=unrepo/repo/imaging/ \
               git://git.ti.com/git/processor-sdk/video_io.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo6;destsuffix=unrepo/repo/video_io/ \
               git://git.ti.com/git/processor-sdk/ti-perception-toolkit.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo7;destsuffix=unrepo/repo/ti-perception-toolkit/ \
               git://git.ti.com/git/processor-sdk/psdk_include.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo8;destsuffix=unrepo/repo/psdk_include/ \
               git://git.ti.com/git/processor-sdk-vision/arm-tidl.git;protocol=https;branch=master;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo9;destsuffix=unrepo/repo/psdk_include/tidl_j7/arm-tidl/ \
               git://git.ti.com/git/processor-sdk/concerto.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo10;destsuffix=unrepo/repo/sdk_builder/concerto/ \
               "
    
    SRCREV_FORMAT = "repo1_repo2_repo3_repo4_repo5_repo6_repo7_repo8_repo9_repo10"
    
    S = "${WORKDIR}/unrepo"
    

  • Hi Joel,

    Thank you for the append file! Tweaking yours, I've created another bbappend without the unrepo directory:

    SRC_URI = "git://git.ti.com/git/processor-sdk/sdk_builder.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo1;destsuffix=repo/sdk_builder/ \
               git://git.ti.com/git/processor-sdk/app_utils.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo2;destsuffix=repo/app_utils/ \
               git://git.ti.com/git/processor-sdk/vision_apps.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo3;destsuffix=repo/vision_apps/ \
               git://git.ti.com/git/processor-sdk/tiovx.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo4;destsuffix=repo/tiovx/ \
               git://git.ti.com/git/processor-sdk/imaging.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo5;destsuffix=repo/imaging/ \
               git://git.ti.com/git/processor-sdk/video_io.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo6;destsuffix=repo/video_io/ \
               git://git.ti.com/git/processor-sdk/ti-perception-toolkit.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo7;destsuffix=repo/ti-perception-toolkit/ \
               git://git.ti.com/git/processor-sdk/psdk_include.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo8;destsuffix=repo/psdk_include/ \
               git://git.ti.com/git/processor-sdk-vision/arm-tidl.git;protocol=https;branch=master;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo9;destsuffix=repo/psdk_include/tidl_j7/arm-tidl/ \
               git://git.ti.com/git/processor-sdk/concerto.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo10;destsuffix=repo/sdk_builder/concerto/ \
               "
    
    SRCREV_FORMAT = "repo1_repo2_repo3_repo4_repo5_repo6_repo7_repo8_repo9_repo10"
    
    LIC_FILES_CHKSUM:append = " file://tiovx/include/VX/vx.h;beginline=1;endline=15;md5=37315206223081f32a5b9aaaf912f637"
    LIC_FILES_CHKSUM:remove = "file://repo/tiovx/include/VX/vx.h;beginline=1;endline=15;md5=37315206223081f32a5b9aaaf912f637"
    
    S = "${WORKDIR}/repo"
    
    EXTRA_OEMAKE:append = " ${S}/sdk_builder"
    EXTRA_OEMAKE:remove = "${S}/repo/sdk_builder"

    Best,
    Jared

  • Great. If that works I think you could skip the repo/ part altogether (if the new tweak to EXTRA_OEMAKE is enough). Maybe it does not matter as I think this only affects the build directory(?), but I don't fully trust the repo fetcher as it seems to silently use the wrong versions from DL_DIR. (My fear being that an earlier version of PSDK builds would download stuff with the same name into repo/ - but this is very specific to my build environment where we mix and match jobs in CI.)

  • Hi Joel,

    If that works I think you could skip the repo/ part altogether (if the new tweak to EXTRA_OEMAKE is enough).

    I agree that you could likely skip the repo/ part altogether. I just have it due to my general skepticisms. Maybe there's some hardcoded repo path somewhere that I don't have knowledge about. I would need to test without the repo directory to see if there are any issues.

    I don't fully trust the repo fetcher as it seems to silently use the wrong versions from DL_DIR.

    The repo fetcher shouldn't be run at this point due to the replacement of the SRC_URI.

    (My fear being that an earlier version of PSDK builds would download stuff with the same name into repo/ - but this is very specific to my build environment where we mix and match jobs in CI.)

    This is a very valid concern. Hopefully cleaning would deal with that though.

    $ bitbake -c cleanall ti-vision-apps

    Best,
    Jared

  • Tried it out without the repo directory, I see no issues.

    SRC_URI = "git://git.ti.com/git/processor-sdk/sdk_builder.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo1;destsuffix=sdk_builder/ \
               git://git.ti.com/git/processor-sdk/app_utils.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo2;destsuffix=app_utils/ \
               git://git.ti.com/git/processor-sdk/vision_apps.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo3;destsuffix=vision_apps/ \
               git://git.ti.com/git/processor-sdk/tiovx.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo4;destsuffix=tiovx/ \
               git://git.ti.com/git/processor-sdk/imaging.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo5;destsuffix=imaging/ \
               git://git.ti.com/git/processor-sdk/video_io.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo6;destsuffix=video_io/ \
               git://git.ti.com/git/processor-sdk/ti-perception-toolkit.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo7;destsuffix=ti-perception-toolkit/ \
               git://git.ti.com/git/processor-sdk/psdk_include.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo8;destsuffix=psdk_include/ \
               git://git.ti.com/git/processor-sdk-vision/arm-tidl.git;protocol=https;branch=master;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo9;destsuffix=psdk_include/tidl_j7/arm-tidl/ \
               git://git.ti.com/git/processor-sdk/concerto.git;protocol=https;branch=main;tag=REL.PSDK.ANALYTICS.10.01.00.04;name=repo10;destsuffix=sdk_builder/concerto/ \
               "
    
    SRCREV_FORMAT = "repo1_repo2_repo3_repo4_repo5_repo6_repo7_repo8_repo9_repo10"
    
    LIC_FILES_CHKSUM:append = " file://tiovx/include/VX/vx.h;beginline=1;endline=15;md5=37315206223081f32a5b9aaaf912f637"
    LIC_FILES_CHKSUM:remove = "file://repo/tiovx/include/VX/vx.h;beginline=1;endline=15;md5=37315206223081f32a5b9aaaf912f637"
    
    S = "${WORKDIR}"
    
    EXTRA_OEMAKE:append = " ${S}/sdk_builder"
    EXTRA_OEMAKE:remove = "${S}/repo/sdk_builder"

    Best,
    Jared