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.

[参考译文] AM625:SDK10 uboot 编译错误

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1421445/am625-sdk10-uboot-compile-error

器件型号:AM625

工具与软件:

您好、工程师

我们升级到了 SDK10、但编译 uboot 错误、参考 SPRADD1A" AM62x 器件上的 Linux 电路板移植":

  CAT     spl/u-boot-spl-dtb.bin
  COPY    spl/u-boot-spl.bin
  SYM     spl/u-boot-spl.sym
  MKIMAGE u-boot.img
  COPY    u-boot.dtb
  MKIMAGE u-boot-dtb.img
  BINMAN  .binman_stamp
Image 'ti-dm' is missing optional external blobs but is still functional: blob-ext

/binman/ti-dm/blob-ext (ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f):
   Missing blob

Image 'tifsstub-hs' is missing optional external blobs but is still functional: tifsstub-hs-cert.bin tifsstub-hs-enc.bin

/binman/tifsstub-hs/tifsstub-hs-cert.bin (ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin):
   Missing blob

/binman/tifsstub-hs/tifsstub-hs-enc.bin (ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin):
   Missing blob

Image 'tifsstub-fs' is missing optional external blobs but is still functional: tifsstub-fs-cert.bin tifsstub-fs-enc.bin

/binman/tifsstub-fs/tifsstub-fs-cert.bin (ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin):
   Missing blob

/binman/tifsstub-fs/tifsstub-fs-enc.bin (ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin):
   Missing blob

Image 'tifsstub-gp' is missing optional external blobs but is still functional: tifsstub-gp.bin

/binman/tifsstub-gp/tifsstub-gp.bin (ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin):
   Missing blob

binman: name 'ELFError' is not defined
make[1]: *** [/home/xmtech/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/board-support/ti-u-boot-2024.04+git/Makefile:1125: .binman_stamp] Error 1
make[1]: Leaving directory '/home/xmtech/am62_sdk10/output_images/a53'
make: *** [Makefile:177: sub-make] Error 2
make CC a53 failed
xmtech@xmtech-VMware-Virtual-Platform:~/am62_sdk10$ python --version
Python 3.12.3

我们使用 Ubuntu 22.04、R5已成功编译、但在以下步骤中 A53失败:

make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" CC="$CC_64" O=$OUTPUT_DIR/A53 BL31=$TFA_PATH TEE=$OPTEE_PATH BINMAN_INDIRS=$LINUX_FW_PATH

您能帮助我确定错误发生的位置吗?

谢谢!

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

    您可以尝试: cd $uBoot_DIR

          导出 CC_64=" path_to_your_SDK /linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc --sysroot=${sysroot_64}"

    我的示例:

         (导出 CC_64=" /home/divl/linux_divl/sdk_am62x /linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc --sysroot=${sysroot_64}")

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    那么:
          make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" CC="$CC_64" BL31=../prebuilt-images/am62xx-evm/bl31.bin TEE=../prebuilt-images/am62xx- EVM/ bl32.bin O=$uBoot_DIR/OUT/A53 BINMAN_INDIRS=$TI_LINUX_FW_DIR

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

    感谢您的答复、我发现问题、我们必须安装以下软件:

    sudo apt-get install python3-jsonschema

    sudo apt-get install python3-pyelftools

    所以错误已经消失了,但"缺失的斑点"警告仍然存在,我们先继续。