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 构建错误。

Guru**** 2481495 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1448879/sk-am62a-lp-yocto-build-error

器件型号:SK-AM62A-LP

工具与软件:

我做不到  1.2.3.2.  Yocto 的构建步骤 software-dl.ti 中记录 。 之后   MACHINE= 62axx-evm bitbake -k tisdk-core-bundle 命令。 似乎7个任务失败、需要重新运行。

NOTE: Tasks Summary: Attempted 19684 tasks of which 19677 didn't need to be rerun and 7 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds

Summary: 7 tasks failed:
  /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc_13.3.bb:do_compile
  virtual:nativesdk:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
  virtual:native:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gdb/gdb-cross-canadian_14.2.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross-canadian_13.3.bb:do_compile
Summary: There were 14 ERROR messages, returning a non-zero exit code.
 

这是终端中的注释和摘要。 请帮我解决这个问题。

谢谢你。

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

    尊敬的 Sajan:

    我 ``了尝试构建"tisdk-core-bundle"的问题、但错误与您看到的错误不同。 不过、常规图像目标会很好地构建。 我正在和团队核实我们是如何在生产中建立这些目标的、可能文档中缺失了一些信息。

     `、为什么要尝试编译 tisdk-core-bundle`? 此目标通常仅在 TI 的 SDK 创建过程中使用、客户不会用到。 如果有任何问题、客户通常会构建`meta-toolchain-arago-tisdk`、以生成所谓的"Devkit installer"、即用于应用开发的跨平台主机工具链+库+头文件等。

    此致、Andreas

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

    尊敬的 Andreas:

    您提到过、我尝试使用了这些公式 meta-toolchain-arago-tisdk 为目标。 它也包含错误。 在下面附加终端注释。


    NOTE: Tasks Summary: Attempted 8398 tasks of which 8391 didn't need to be rerun and 6 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    
    Summary: 6 tasks failed:
      /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
      virtual:native:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gdb/gdb-cross-canadian_14.2.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross-canadian_13.3.bb:do_compile
      virtual:nativesdk:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
    Summary: There were 8 WARNING messages.
    Summary: There were 12 ERROR messages, returning a non-zero exit code.


    此致、

    Sajan。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    正如您所提到的、我尝试使用了 meta-toolchain-arago-tisdk 为目标。 它也包含错误。 A [/报价]

    是的、这也不是为我构建的。 但同样在这里、我的误差是不同的。 我向开发团队核实了他们不知道可能会出现什么问题、他们声称是为他们构建的。

    我需要花更多时间自行对此进行研究、方法是在不同的机器/从零开始进行设置、然后返回此处报告。

    此致、Andreas

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

    Sajan

    此外、您是否在 Ubuntu 22.04上构建此文件?

    那么、您是否还可以尝试基于 Docker 的构建流程作为替代方案? 请参见此处 https://github.com/TexasInstruments/ti-docker-images?tab=readme-ov-file#steps-to-run-yocto-builds-inside-container (链接自 SDK 文档 https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/10_00_00/exports/docs/linux/Overview_Building_ sdk.html#steps to run-yocto-builds-inside-container)。

    此外、您配置了多少存储器和交换空间? 理想情况下、您需要至少64GB 的总容量。

    此致、Andreas

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

    我在  Ubuntu 22.04机器上尝试过它、它同时具有32GB RAM 和换用。


    此致、
    Sajan

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

    尊敬的 Sajan:

    我刚刚使用了另一台机器、安装了不同的 Yocto 构建系统(适用于 AM62A SDK v10.0)、并且能够构建 meta-toolchain-arago-tisdk 而不会有任何问题:

    a0797059@dasso:~/tisdk/am62axx-evm/build (master)
    $ ll deploy-ti/sdk/
    total 481668
    drwxr-xr-x 3 a0797059 a0797059      4096 Dec 11 22:21 ./
    drwxr-xr-x 4 a0797059 a0797059      4096 Dec 11 22:21 ../
    -rw-r--r-- 2 a0797059 a0797059     24664 Dec 11 22:14 arago-2023.10-aarch64-linux-tisdk.host.manifest
    -rw-r--r-- 2 a0797059 a0797059   2149308 Dec 11 22:14 arago-2023.10-aarch64-linux-tisdk-host.spdx.tar.zst
    -rw-r--r-- 2 a0797059 a0797059 486828058 Dec 11 22:21 arago-2023.10-aarch64-linux-tisdk.sh
    drwxr-xr-x 2 a0797059 a0797059      4096 Dec 11 22:19 arago-2023.10-aarch64-linux-tisdk-sw_manifest/
    -rw-r--r-- 2 a0797059 a0797059     39999 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk.target.manifest
    -rw-r--r-- 2 a0797059 a0797059   3611815 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk-target.spdx.tar.zst
    -rw-r--r-- 2 a0797059 a0797059    547426 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk.testdata.json

    我正在尝试  tisdk-core-bundle 下一步。

    您是否也可以尝试全新/全新安装?

    此致、Andreas

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

    您好、 Andreas、

    您能否检查 tisdk-default-image target。 当我尝试 构建该目标时、它似乎出错。

    WARNING: Duplicate inclusion for /home/tisdk/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /home/tisdk/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
    WARNING: Duplicate inclusion for /home/tisdk/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/include/branding-core.inc in /home/tisdk/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf
    NOTE: Started PRServer with DBfile: /home/tisdk/tisdk/build/cache/prserv.sqlite3, Address: 127.0.0.1:37953, PID: 1193
    Loading cache: 100% |############################################################################################################################################| Time: 0:00:02
    Loaded 11126 entries from dependency cache.
    Parsing recipes: 100% |##########################################################################################################################################| Time: 0:00:01
    Parsing of 7068 .bb files complete (7067 cached, 1 parsed). 11127 targets, 1714 skipped, 0 masked, 0 errors.
    ERROR: Invalid line '' in sstate manifest '/home/tisdk/tisdk/build/arago-tmp-default-glibc/sstate-control/index-x86_64'
    
    Summary: There were 2 WARNING messages.
    Summary: There was 1 ERROR message, returning a non-zero exit code.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您能否检查 tisdk-default-image target? 当我尝试 构建该目标时似乎出错。

    内容  TISDK-DEFAULT-IMAGE 不支持 AM62A SDK v10.0。 要构建的完整映像为  tisdk-edgeai-image 映像。  可以构建较小的映像 tisdk-base-image 我刚刚试过、结果成功通过了测试。 但是、它不会有很多 AM62A 细节(仅支持基本的 BSP)、但可以作为一个良好的起点、添加到选定的项目/封装中。

    此致、Andreas

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

    类型的建筑  tisdk-edgeai-image 构建中仍然出现错误。

    ERROR: qtmultimedia-5.15.13+git-r0 do_compile: oe_runmake failed
    ERROR: qtmultimedia-5.15.13+git-r0 do_compile: ExecutionError('/home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/qtmultimedia/5.15.13+git/temp/run.do_compile.481770', 1, None, None)
    ERROR: Logfile of failure stored in: /home/user/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/qtmultimedia/5.15.13+git/temp/log.do_compile.481770
    ERROR: Task (/home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtwayland_git.bb:do_compile) failed with exit code '1'

    此致、Sajan

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

    Sajan

    我建议从头开始设置。 以下是 AM62A SDK v10.0的更正步骤、因为 SDK 文档中的步骤并非总是易于遵循(配置文件的位置/名称)、并且下一个文档版本中将修复一些已知问题(品牌推广步骤会导致错误、不再需要安全开发包)。

    git clone git.ti.com/.../oe-layersetup.git tisdk
    cd tisdk
    ./oe-layertool-setup.sh -f configs/processor-sdk-analytics/processor-sdk-analytics-10.00.00-config.txt
    cd build
    . conf/setenv
    echo 'ARAGO_BRAND = "edgeai"' >> conf/local.conf
    MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image

    如果仍有问题、请尝试:

    • 在新的/不同的 Ubuntu 22.04计算机和/或上设置操作
    • 尝试基于 Docker 的构建方法

    此致、Andreas

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

    您好、Andreas、

    文档和 GitHub Docker 步骤存储库中提到的步骤有很多不同 .

    我正在尝试基于 Docker 的方法。 您能告诉我吗 正确的基于 Docker 的安装步骤 作为您的上一个回复。

    我按照 GitHub 的步骤进行操作、并完成构建。 但在构建目录中的任何位置都找不到 WIC 映像。 我想这是因为我遵循了这些步骤。

    tisdk-edgeai-image 目标无法构建 . 完成60%后、计算机将终止、计算机将 自动注销。

    此致、Sajan

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

    Sajan

    我在一周的剩余时间进行国际商务旅行;如果时间允许、下周早些时候将查看此内容。

    此致、Andreas

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

    尊敬的 Andreas:

    感谢您的更新。 我完全理解、希望您的商务旅行顺利进行。 我期待下周收到您的回复。

    安全的旅行!

    此致、
    Sajan

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

    可以帮帮我吗。

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

    尊敬的 Sajan:

    [报价 userid="634264" url="~/support/processors-group/processors/f/processors-forum/1448879/sk-am62a-lp-yocto-build-error/5570829 #5570829"]我按照 GitHub 中的步骤操作并完成编译。 但在构建目录中的任何位置都找不到 WIC 映像。 我认为这是因为我遵循了一些步骤。[/报价]

    我想您在这里指的是这些步骤: https://github.com/TexasInstruments/ti-docker-images?tab=readme-ov-file#steps-to-run-yocto-builds-inside-container。 其中、会显示"您的 target WIC 映像将在 deploy-ti 目录中生成。"

    您是否可以从编译/文件夹中尝试以下命令、以查看是否可以找到任何 WIC 文件。 请注意、WIC 文件已压缩、因此它们在文件名上有额外的扩展名。

    a0797059@jiji:~/tisdk/am62axx-evm/build (master)
    $ find deploy-ti/ -name '*.wic*'
    deploy-ti/images/am62axx-evm/tisdk-base-image-am62axx-evm.rootfs.wic.xz
    deploy-ti/images/am62axx-evm/tisdk-base-image-am62axx-evm.rootfs.wic.bmap
    deploy-ti/images/am62axx-evm/tisdk-base-image-am62axx-evm.rootfs-20241216065554.wic.xz
    deploy-ti/images/am62axx-evm/tisdk-base-image-am62axx-evm.rootfs-20241216065554.wic.bmap

    [报价 userid="634264" url="~/support/processors-group/processors/f/processors-forum/1448879/sk-am62a-lp-yocto-build-error/5570829 #5570829"] tisdk-edgeai-image 目标无法构建 . 完成60%后、它将终止、计算机将 自动注销

    请在此处尝试、该操作摘自 AM62文档(https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/10_01_10_04/exports/docs/linux/Overview_Building_ SDK.html#build-steps)。 尝试将两个变量设置为`4`作为起点。

    此致、Andreas

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

    尊敬的 Andreas:
    我尝试了上述终端命令、得到了相同的结果。 我用 bmap 刷写了 WIC 映像。 但它不会启动板。

    find deploy-ti/ -name '*.wic*'
    
    deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.bmap
    deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20241218055652.wic.xz
    deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.xz
    deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20241218055652.wic.bmap



    我尝试重建、现在似乎有2个错误。

    ERROR: Task (/home/tisdk/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile) failed with exit code '1'
    ERROR: Task (/home/tisdk/tisdk/sources/oe-core/meta/recipes-support/boost/boost_1.84.0.bb:do_install) failed with exit code '134' 
    Pseudo log:
    path mismatch [3 links]: ino 54531709 db '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/boost/1.84.0/image/usr/lib/cmake/boost_math_c99f-1.84.0/boost_math_c99f-config-version.cmake' req '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/boost/1.84.0/image'.
    inode mismatch: '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/boost/1.84.0/image' ino 54427837 in db, 54531709 in request.
    Setup complete, sending SIGUSR1 to pid 8567.
    
    NOTE: Tasks Summary: Attempted 14079 tasks of which 14077 didn't need to be rerun and 2 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds

    谢谢!
    Sajan

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

    尊敬的 Sajan:

    我尝试了上述终端命令并得到了相同的结果。 我通过 bmap 刷写了 WIC 映像

    您使用了什么命令? 这应该是一个很小的东西。。。

    sudo bmaptool copy deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.xz /dev/ &&同步

    此外、您是否可以从 https://www.ti.com/tool/PROCESSOR-SDK-AM62A?刷写标准 SDK WIC 映像通过这种方法、您可以验证电路板是否设置正确以进行引导。 请注意,在刷写 WIC 映像时,您需要将'--nobmap'作为参数添加到'bmaptool'命令中,因为网络下载不包含相应的*.bmap 文件。 因此、您的命令将需要如下所示...

    sudo bmaptool copy --- nobmap ...

    我尝试重建、现在似乎有2个错误。

    看起来您的构建文件夹("...inode mismatch:...")中存在一些损坏、最好的方法可能是从中删除/删除所有文件夹 编译/ 非常相似 build/conf 和重新启动。

    此致、Andreas

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

    您好、Andreas、

    非常感谢 在整个讨论过程中、为您提供宝贵的支持和指导、它在成功完成启动过程中真正发挥了重要作用!

    此致、

    Sajan