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.

[参考译文] AM4378:构建适用于 AM437x 的 TI SDK 所需的帮助

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1123424/am4378-help-required-to-build-the-ti-sdk-for-am437x

器件型号:AM4378

你(们)好

我正在尝试为 AM4378构建 TI SDK 的06_03_00_106版本。 我遵循以下方面的说明:

https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Overview_Building_the_SDK.html

我已经按照1.2.2.2节中的规定克隆了 Arago 项目 git 存储库。 "构建步骤"、但当我运行时

./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-06.03.00.106-config.txt

如 https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Release_Specific_Yocto_layer_Configuration.html 所建议

我得到以下结果:

Cloning into '/home/markr/Spark/tisdk/sources/meta-arago'...
fatal: 'origin/thud' is not a commit and a branch 'thud' cannot be created from it
merge: origin/thud - not something we can merge
fatal: reference is not a tree: 70436496d2617b281c51390faa3d421814055cd6
ERROR: the meta-arago/meta-arago-distro layer in the meta-arago repository could not be
       found.  Bailing out.


配置文件包含以下行:

meta-arago,arago-project.org/.../meta-arago.git,thud,70436496d2617b281c51390faa3d421814055cd6,layers=meta-arago-distro:meta-arago-extras


这会导致脚本尝试签出"thutd"分支上的提交。 但是、唯一可用的分支是"master":

$ cd sources/meta-arago/
$ git remote -v
origin  arago-project.org/.../meta-arago.git (fetch)
origin  arago-project.org/.../meta-arago.git (push)
$ git branch -r -v
  origin/HEAD   -> origin/master
  origin/master 5687c39b Update README with repository migration and server shutdown notice


可能不存在"重击"、因为 Yocto 版本已停产;请参阅

https://wiki.yoctoproject.org/wiki/Releases

我尝试按照"使用源包快照"下的说明、下载并运行 ti-processor-sdk-linux-am57xx-evm-06.03.00.106-Linux-x86-Install.bin、获取 Arago 包的快照

正如 https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Release_Specific_Yocto_layer_Configuration.html 所暗示的、processor-sdk-06.03.00.106-config.txt 适用于 am437xx-EVM 和 am57xx-EVM。

该说明指出、我应该遵循"额外步骤[...] 以红色显示"、但本节中没有红色的内容。

请告诉我如何构建适用于 AM437x 的 TI SDK。


标记。

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

    Mark、您好!

    SDK 的当前版本为 v08.02 (https://www.ti.com/tool/PROCESSOR-SDK-AM437X)。 您不能仅使用它吗? 或者它必须是那个旧版本吗?

    此致、Andreas

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

    尊敬的 Andreas:

    感谢你的答复。 抱歉、我忘记说我需要 HS 版本、因为我想加入一个 TEE。 HS 的最新 SDK 版本似乎是06.03.00.106;对吗?

    标记。

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

    Mark、您好!

    啊、好的、这可能是不同的。 让我将其重新分配给我们的安全专家。 他目前不在办公室、但将在下周初回来。 因此、请留出几天的时间进行回复、谢谢。

    此致、Andreas

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

    尊敬的 Andreas:

    感谢你的帮助。

    标记。

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

    Mark、您好!
    您是否在安全下载门户上下载了 AM437x 安全 Linux SDK 6.3软件包?
    如果是、则可以通过按照 u-boot 和内核构建指令来构建 u-boot 和内核
    software-dl.ti.com/.../Foundational_Components_U-Boot.html
    software-dl.ti.com/.../Foundational_Components_Kernel_Users_Guide.html
    我将邀请您加入半私人安全论坛、讨论任何与安全相关的主题。
    您将在早期论坛帖子中找到一些主题...
    最棒的
    -香港

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

    您好、Hong、

    感谢您的回答。

    我已尝试使用您提供的链接构建 U-Boot、但第二个 make 命令失败:

     cd am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    $ export PATH=$HOME/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH
    $ rm -fr ./am437x_evm
    $ make CROSS_COMPILE=arm-linux-gnueabihf- O=am437x_evm am43xx_evm_defconfig
    make[1]: Entering directory '/home/markr/Spark/am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/am437x_evm'
      HOSTCC  scripts/basic/fixdep
      GEN     ./Makefile
      HOSTCC  scripts/kconfig/conf.o
      YACC    scripts/kconfig/zconf.tab.c
      LEX     scripts/kconfig/zconf.lex.c
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    #
    # configuration written to .config
    #
    make[1]: Leaving directory '/home/markr/Spark/am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/am437x_evm'
    $ make CROSS_COMPILE=arm-linux-gnueabihf- O=am437x_evm
    make[1]: Entering directory '/home/markr/Spark/am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/am437x_evm'
      GEN     ./Makefile
    scripts/kconfig/conf  --syncconfig Kconfig
      CHK     include/config.h
      UPD     include/config.h
      CFG     u-boot.cfg
      GEN     include/autoconf.mk
      GEN     include/autoconf.mk.dep
      CFG     spl/u-boot.cfg
      GEN     spl/include/autoconf.mk
      CHK     include/config/uboot.release
      UPD     include/config/uboot.release
      Using .. as source for U-Boot
      .. is not clean, please run 'make mrproper'
      in the '..' directory.
    /home/markr/Spark/am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/Makefile:1560: recipe for target 'prepare3' failed
    make[1]: *** [prepare3] Error 1
    make[1]: Leaving directory '/home/markr/Spark/am437x-hs-evm-linux-sdk-src-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/am437x_evm'
    Makefile:148: recipe for target 'sub-make' failed
    make: *** [sub-make] Error 2

    我无法在父目录中运行"make mrprome"、因为那里没有 Makefile。

    此外、您是否向半私人安全论坛发送了邀请? 我没有收到任何邀请。

    标记。

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

    Mark、您好!
    我尝试使用 Linux SDK6.3构建 u-boot、它适用于我。

    cd $Linux_SDK_Installation_Path
    export PATH=$PWD/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
    cd board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3
    make CROSS_COMPILE=arm-linux-gnueabihf- distclean
    make CROSS_COMPILE=arm-linux-gnueabihf- O=am43xx_gp_test am43xx_evm_config all

    最棒的
    -香港

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

    您好、Hong、

    请向我发送一份半私人安全论坛邀请。

    标记。

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

    Mark、您好!
    您是否成功构建了安全变体?
    我再次发送邀请、您需要接受您的邀请。
    最棒的
    -香港

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

    您好、Hong、

    我使用上述说明构建了 U-Boot、但当我在电路板上运行时、控制台上没有生成输出。  U-Boot 源代码来自以下位置:

    存储库:Git://git.ti.com/processor-sdk/processor-sdk-u-boot.git
    分支:    PROCESSOR-SDK-u-boot-2019.01
    修订版本:  333c72d362c1fd1e5011e4e961c231b8f8edc8

    我遵循 OP-TEE 的说明:

    opte.readthdocs.io/.../build.html

    OP-TEE 版本3.18.0 (2022年7月15日发布)。 该编译使用以下版本的 U-Boot:

    存储库:Git://git.ti.com/ti-u-boot/ti-u-boot.git
    修订版本:  c68ed086bd00054e28c46e033385f79104c3f84c

    当我运行此版本时,我会在串行端口上看到输出,但默认启动不会尝试启动内核:“正在启动内核...” 在加载 TEE 图像后未显示:

    Authentication passed: CERT_ZIMAGE
    ## Loading fdt from FIT Image at 87000000 ...
       Using 'am437x-gp-evm.dtb' configuration
       Trying 'am437x-gp-evm.dtb' fdt subimage
         Description:  Flattened Device Tree blob
         Type:         Flat Device Tree
         Compression:  uncompressed
         Data Start:   0x873f1acc
         Data Size:    54928 Bytes = 53.6 KiB
         Architecture: ARM
       Verifying Hash Integrity ... OK
    Authentication passed: CERT_AM437X-GP-
       Booting using the fdt blob at 0x873f1acc
    ## Loading loadables from FIT Image at 87000000 ...
       Trying 'optee' loadables subimage
         Description:  OPTEE OS Image
         Type:         Trusted Execution Environment Image
         Compression:  uncompressed
         Data Start:   0x8740bcd8
         Data Size:    329788 Bytes = 322.1 KiB
       Verifying Hash Integrity ... OK
    Authentication passed: CERT_TEE
       Loading loadables from 0x8740bcd8 to 0xbdb000e4

    但是、如果我将 fitImage 中使用的 zImage 复制到 SD 卡上、我可以使用以下命令让内核启动:

    run findfdt
    set devtype mmc
    run loadfdt
    fdt addr $fdtaddr
    setenv bootargs "console=ttyS0,115200n8 root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4"
    load mmc 0:2 $loadaddr boot/zImage
    bootz $loadaddr - $fdtaddr

    因此、我认为 TEE 图像未成功加载。  是否需要使用
    要加载 TEE 映像的完全安全启动(带有证书)?

    标记。

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

    Mark、您好!
    我注意到您已接受安全论坛的邀请。
    让我们关闭这个 e2e、并将我们的讨论转移到安全论坛。
    我建议先搜索相同/相似的主题、如果没有现成的答案、请重新发布到安全论坛?
    最棒的
    -香港