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:使用 Yocto 构建映像时失败

Guru**** 2337880 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1512129/am62a7-failed-when-build-image-with-yocto

器件型号:AM62A7

工具/软件:

尊敬的 TI 专家:

它似乎有些文件下载错误,

但我可以成功下载其他文件,为什么?

如何 解决此问题?

此致、

Meng

状态摘要:所需179个本地107个镜像0漏掉72个当前6610 (59%匹配、98%完成)######################################################################################################## ETA:0:00:00
正在初始化任务:100%|############################################################################################################################################################################################### 时间:0:00:04
注意:正在执行任务
警告:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:无法获取 URL 存储库:/git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/REL.psdk.analytics.10.00.04;manifest=vision_apps_yocto.xml、尝试镜像(如果可用)
错误:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:fetcher 失败:fetcher 命令 export pseude_disable=1 /run/user/1000/bus;export DBUS_Session_bus_address="unix /run/user/1000/keyring/ssh:path=unix";export SSH_AUTH_SOCK_command="oe-git-proxyable";export ALL_proxy="7890/toscs.0.1"/> export all_proxy="SOCKS://127.0.0.1:7890/";export no_proxy="127.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="">">127.0.0.1:7890/.../hosttools export path="/home/user/tisdk/sources/oe-core/scripts /home/user:/home/user/tisdk/sources/bitbake/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/usr/bin:/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/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;export home="/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot-native/usr/sbin;/usr/bin/env repo 同步失败、退出代码1、输出:
错误:"同步"命令需要先安装 repo。
使用"repo init"将其安装在此处。

错误:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:Bitbake Fetcher 错误:FetchError ("无法从任何源获取 URL。"、"repo:/git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/reL.analytics.10.00.04;manification=vision_apps_psdkdk.xml")
错误:存储在/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch.2253028中的失败日志文件
错误:任务(/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch)失败、退出代码为"1"
注意:任务摘要:已尝试14478个任务、其中14471个任务不需要重新运行、1个任务失败。
注意:正在编写构建历史记录
注意:编写构建历史记录耗时:2秒
注意:正在编写构建历史记录
注意:编写构建历史记录耗时:2秒

摘要:1个任务失败:
/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch
摘要:有1条警告消息。
摘要:有2条错误消息、返回非零退出代码。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Meng:

    您能否从 shell 中尝试以下命令来查看您是否可以手动克隆/同步此特定存储库? 据`、n ü`re工具有时会在某些网络环境中通过防火墙等发生问题。

    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 git.ti.com/.../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 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
    $

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Andreas:

    我尝试了你的建议,它的工作! 我成功同步了存储库!

    但是、在使用 Yocto 构建映像时如何应用此应用?

    当我重新运行时 MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image、我仍然收到错误:

    正在初始化任务:100%|######################################## 时间:0:00:04
    注意:正在执行任务
    警告:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:无法获取 URL 存储库:/git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/REL.psdk.analytics.10.00.04;manifest=vision_apps_yocto.xml、尝试镜像(如果可用)
    错误:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:fetcher 失败:fetcher 命令 export pseude_disable=1 /run/user/1000/keyring/ssh;export DBUS_Session_bus_address="unix:path=/run/user/1000/bus、guid=dd01c8d8b6e5947e20e8255e681ed232";export 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="">">>export HTTPS_proxy="">"> ">127.0.0.1:7890/.../bin export http_proxy="">">>">127.0.0.1:7890/.../bin export HTTP_proxy="">">>export PATH="/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/hosttools:/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-native/sbin:/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/recipe-sysroot/usr/bin/crossscripts:";">127.0.0.1:7890/.../127.0.0.1:7890"; 导出 home="/home/user;/usr/bin/env 存储库同步失败、退出代码1、输出:
    错误:"同步"命令需要先安装 repo。
    使用"repo init"将其安装在此处。

    错误:TI-vision-apps-10.1.0-r0_edgeai_10 do_fetch:Bitbake Fetcher 错误:FetchError ("无法从任何源获取 URL。"、"repo:/git.ti.com/git/processor-sdk/psdk_repo_manifests.git;protocol=https;branch=refs/tags/reL.analytics.10.00.04;manification=vision_apps_psdkdk.xml")
    错误:存储在/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch.2398773中的失败日志文件
    错误:任务(/home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch)失败、退出代码为"1"
    注意:任务摘要:已尝试14478个任务、其中14471个任务不需要重新运行、1个任务失败。
    注意:正在编写构建历史记录
    注意:编写构建历史记录耗时:2秒
    注意:正在编写构建历史记录
    注意:编写构建历史记录耗时:2秒

    摘要:1个任务失败:
    /home/user/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_fetch
    摘要:有1条警告消息。
    摘要:有2条错误消息、返回非零退出代码。

    此致、  

    Meng

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    很高兴看到这一步有效。  我目前正在国际出差。 请留出几天时间进行跟进。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好、感谢您的帮助!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Meng:

    好的、我只是仔细看了一下。 我以前没有看到您的错误、但查看您的日志我注意到了...

    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/";

    ...这意味着您的所有流量都通过`oe-git-proxy`命令。 在我的计算机上、`ti-vision-apps`(位于/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-vision-apps/10.1.0/temp/log.do_fetch)的 Yocto 获取日志不显示 `OE-git-proxy` 正在使用、但我的代理服务器是直接配置并分配给 https:p_proxy=...、HTTPS_proxy=... 环境变量(在您的日志中、所有这些变量将通过127.0.0.1:xxxx 路由)。

    因此、我不知道您的系统为何使用 GIT_PROSET_COMMAND、或者会出现什么错误、但似乎系统中的命令被错误引用、或者命令无法正常运行、从而导致 Yocto 无法正确使用代理来获取存储库。

    我想你已经根据 https://wiki.yoctoproject.org/wiki/Working_Behind_ a Network_Proxy 上讨论的"Git 代理配置"一节尝试设置 GIT_PROXY 命令了 吗?

    您是否可以删除此 GIT_PROSET_COMMAND ENV 变量、并直接通过在命令行上定义所有代理变量来设置代理、如上述链接的"HTTP/HTTPS/FTP 设置"一节所述?

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    它是有效的。 Thans 非常 than