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.

AM62A7: Failed when build Image with yocto

Part Number: AM62A7

Tool/software:

Hi TI Experts,

It seem some file download error ,

But I can download other file successfully, why?

How to I solve this problem?

Best Regards,

Meng

Sstate summary: Wanted 179 Local 107 Mirrors 0 Missed 72 Current 6610 (59% match, 98% complete)############################################################################# | ETA: 0:00:00
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:04
NOTE: Executing Tasks
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 SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_PROXY_COMMAND="oe-git-proxy"; export all_proxy="socks://127.0.0.1:7890/"; export ALL_PROXY="socks://127.0.0.1:7890/"; export no_proxy="127.0.0.1"; export NO_PROXY="127.0.0.1"; export ftp_proxy="">http://127.0.0.1:7890/"; export https_proxy="">http://127.0.0.1:7890"; export http_proxy="">http://127.0.0.1:7890/"; export PATH="/home/user/tisdk/sources/oe-core/scripts:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin/aarch64-oe-linux:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot/usr/bin/crossscripts:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/sbin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/sbin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/bin:/home/user/tisdk/sources/bitbake/bin:/home/user/tisdk/build/arago-tmp-default-glibc/hosttools"; export HOME="/home/user"; /usr/bin/env repo sync failed with exit code 1, output:
error: command 'sync' requires repo to be installed first.
Use "repo init" to install it here.

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: /home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch.2253028
ERROR: Task (/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 14478 tasks of which 14471 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds

Summary: 1 task failed:
/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

  • Hi Meng,

    can you try the below commands from your shell to see if you can manually clone/sync this specific repo? The `repo` tool is known to have issues sometimes going through firewalls etc. also in certain network environments.

    a0797059@jiji:~/tmp
    $ mkdir test
    a0797059@jiji:~/tmp
    $ cd test/
    a0797059@jiji:~/tmp/test
    $ repo init -m vision_apps_yocto.xml -b refs/tags/REL.PSDK.ANALYTICS.10.01.00.04 -u https://git.ti.com/git/processor-sdk/psdk_repo_manifests.git
    /home/a0797059/bin/repo:696: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
      now = datetime.datetime.utcnow()
    Downloading Repo source from https://gerrit.googlesource.com/git-repo
    
    ... A new version of repo (2.54) is available.
    ... You should upgrade soon:
        cp /home/a0797059/tmp/test/.repo/repo/repo /home/a0797059/bin/repo
    
    
    Your identity is: Andreas Dannenberg <dannenberg@ti.com>
    If you want to change this, please re-run 'repo init' with --config-name
    
    repo has been initialized in /home/a0797059/tmp/test
    a0797059@jiji:~/tmp/test
    $ ll
    total 12
    drwxrwxr-x 3 a0797059 a0797059 4096 May 12 17:15 ./
    drwxrwxr-x 5 a0797059 a0797059 4096 May 12 17:15 ../
    drwxrwxr-x 5 a0797059 a0797059 4096 May 12 17:15 .repo/
    a0797059@jiji:~/tmp/test
    $ repo sync
    /home/a0797059/bin/repo:696: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
      now = datetime.datetime.utcnow()
    
    ... A new version of repo (2.54) is available.
    ... You should upgrade soon:
        cp /home/a0797059/tmp/test/.repo/repo/repo /home/a0797059/bin/repo
    
    Fetching: 100% (10/10), done in 2m3.479s
    Checking out:  80% (8/10), done in 0.796s
    Checking out:  20% (2/10), done in 0.023s
    repo sync has finished successfully.
    a0797059@jiji:~/tmp/test
    $ ll
    total 44
    drwxrwxr-x 11 a0797059 a0797059 4096 May 12 17:18 ./
    drwxrwxr-x  5 a0797059 a0797059 4096 May 12 17:15 ../
    drwxrwxr-x  3 a0797059 a0797059 4096 May 12 17:18 app_utils/
    drwxrwxr-x 11 a0797059 a0797059 4096 May 12 17:18 imaging/
    drwxrwxr-x  6 a0797059 a0797059 4096 May 12 17:18 psdk_include/
    drwxrwxr-x  7 a0797059 a0797059 4096 May 12 17:18 .repo/
    drwxrwxr-x  5 a0797059 a0797059 4096 May 12 17:18 sdk_builder/
    drwxrwxr-x 12 a0797059 a0797059 4096 May 12 17:18 tiovx/
    drwxrwxr-x  6 a0797059 a0797059 4096 May 12 17:18 ti-perception-toolkit/
    drwxrwxr-x  3 a0797059 a0797059 4096 May 12 17:18 video_io/
    drwxrwxr-x 10 a0797059 a0797059 4096 May 12 17:18 vision_apps/
    a0797059@jiji:~/tmp/test
    $

    Regards, Andreas

  • Hi Andreas,

    I tried your suggestion, and it worked! I successfully synced the repo!

    However, how do I apply this apply it when building the image with Yocto?

    When I rerun MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image, I still get errors:

    Initialising tasks: 100% |#######################################| Time: 0:00:04
    NOTE: Executing Tasks
    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,guid=dd01c8d8b6e5947e20e8255e681ed232"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_PROXY_COMMAND="oe-git-proxy"; export all_proxy="socks://127.0.0.1:7890/"; export ALL_PROXY="socks://127.0.0.1:7890/"; export no_proxy="127.0.0.1"; export NO_PROXY="127.0.0.1"; export ftp_proxy="">">http://127.0.0.1:7890/"; export FTP_PROXY="">">http://127.0.0.1:10808/"; export https_proxy="">">http://127.0.0.1:7890"; export HTTPS_PROXY="">">http://127.0.0.1:7890/"; export http_proxy="">">http://127.0.0.1:7890/"; export HTTP_PROXY="">">http://127.0.0.1:7890/"; export PATH="/home/user/tisdk/sources/oe-core/scripts:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin/aarch64-oe-linux:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot/usr/bin/crossscripts:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/sbin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/bin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/sbin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/bin:/home/user/tisdk/sources/bitbake/bin:/home/user/tisdk/build/arago-tmp-default-glibc/hosttools"; export HOME="/home/user"; /usr/bin/env repo sync failed with exit code 1, output:
    error: command 'sync' requires repo to be installed first.
    Use "repo init" to install it here.

    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: /home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch.2398773
    ERROR: Task (/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 14478 tasks of which 14471 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 2 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 2 seconds

    Summary: 1 task failed:
    /home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch
    Summary: There was 1 WARNING message.
    Summary: There were 2 ERROR messages, returning a non-zero exit code.

    Best Regards, 

    Meng

  • Great to see this step worked. I'm currently traveling international for business. Please allow a few days for a follow-up.

  • OK,Thanks for your help !

  • Hi Meng,

    Ok I just had a closer look. I've not seen your error before, but looking at your log I noticed this...

    export GIT_PROXY_COMMAND="oe-git-proxy"; export all_proxy="socks://127.0.0.1:7890/"; export ALL_PROXY="socks://127.0.0.1:7890/"; export no_proxy="127.0.0.1"; export NO_PROXY="127.0.0.1"; export ftp_proxy="">">">http://127.0.0.1:7890/"; export FTP_PROXY="">">">http://127.0.0.1:10808/"; export https_proxy="">">">http://127.0.0.1:7890"; export HTTPS_PROXY="">">">http://127.0.0.1:7890/"; export http_proxy="">">">http://127.0.0.1:7890/"; export HTTP_PROXY="">">">http://127.0.0.1:7890/";

    ...which means all your traffic goes through the `oe-git-proxy` command. On my machine, the Yocto fetch log for `ti-vision-apps` (located at ./arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch) does NOT show `oe-git-proxy` getting used, but instead my proxy server is configured directly and assigned to the https_proxy=..., HTTPS_PROXY=... environmental variables directly (in your log, all those are routed through 127.0.0.1:xxxx instead).

    So I'm not sure why your system uses GIT_PROXY_COMMAND or what goes wrong, but it seems like either the command there is referenced incorrectly, or the command doesn't work correctly, leading to Yocto not being able to use the proxy for repo fetches correctly.

    I suppose you have tried setting up GIT_PROXY_COMMAND as per "Git Proxy Configuration" section discussed on https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy ?

    Can you instead delete this GIT_PROXY_COMMAND env variable, and set the proxy up directly by defining all the proxy variables on the command line directly as discussed in the section "HTTP/HTTPS/FTP Setup" of the above link?

    Regards, Andreas

  • It works. thans very much