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.

[参考译文] PROCESSOR-SDK-AM437X:AM437x U-boot 出现问题

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1330159/processor-sdk-am437x-facing-issue-for-am437x-u-boot

器件型号:PROCESSOR-SDK-AM437X

你好,专家!

我们有  TI-PROCESSOR-SDK-LINUX-AM437X-EVM-09.01.00.001 SDK。

尝试针对定制硬件进行编译。

面朝下错误。

LD spl/u-boot-spl
arm-oE-linux-gnueabi-ld.bfd:enV/fat.o:in function `env_fat_get_dev_part':
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/env/fat.c:50:对`mmc_get_env_dev'的引用未定义
arm-oE-linux-gnueabi-ld.bfd:enV/fat.o:in function `env_fat_load':
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/env/fat.c:130:未`m"MC_initialize"
arm-oE-linux-gnueabi-ld.bfd:drivers/net/phy/phy.o:在函数`genphy_update_link'中:
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/phy/phy.c:258:未定义对`CtrlC'的引用
ARM-OE-LINUX-gnueabi-ld.bfd:drivers/net/ti/cpsw.o:在函数`cpsw_eth_of_to_plat'中:
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/ti/cpsw.c:1184:未定义对`GPIO_GET_LIST_COUNT'的引用
ARM-OE-LINUX-gnueabi-ld.bfd:/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/ti/cpsw.c:1188:对`GPIO_request_list_By_name'的引用未定义
arm-oE-linux-gnueabi-ld.bfd:drivers/net/ti/cpsw_MDIO.o:在函数`wait_for_bit_le32'中:
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/include/WAIT_BIT.h:81:对`CtrlC'的未定义引用
ARM-OE-LINUX-gnueabi-ld.bfd:drivers/USB/gadget/ether.o:in function ` usb_eth_init':
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/usb/gadget/ether.c:2339:未`"CtrlC"的引用
ARM-OE-LINUX-gnueabi-ld.bfd:net/net.o:在函数`net_loop'中:
/home/aws-suma/PIC6.1_Migration/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/net/net.c:629:未定义对`CtrlC'的引用
make[1]:***[scripts/Makefile.spl:527: SPL/u-boot-spl]错误1
make:***[Makefile:2043: SPL/u-boot-spl]错误2

谢谢。

Suraj.

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

    我们可以尝试从 SDK9.1顶部安装文件夹中运行"make u-boot"吗?
    此致!
    -洪

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

    Suraj 看起来不像干净的构建/主机环境。

    1.您的主机 Ubuntu 22.04是否已安装所有必备软件包?  

    2.在同一台机器上、您之前曾尝试过构建、或者这是您首次针对自定义 am43机器或机器=AM437X-EVM 进行构建

    3.提供所有的构建和环境步骤,以便在问题可能出现的地方做进一步的评论(确保按照发行说明中记录的所有步骤进行操作)  

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

    尊敬的 Praneeth:

    感谢您的答复!

    在这里、我不使用 Yocto 构建设置。 只需在基于首要 EVM 的9.1 SDK 上构建交叉编译、就创建了自定义更改和构建了。

    我能够运行 生成 u-boot 。 但当尝试只编译时、 制造 命令、然后遇到问题以创建 SPL 图像。

    是的 前提条件软件包已安装在 Ubuntu 22.04之上。

    请查找以下有关 make 命令的日志

    香港特区政府

    CC spl/net/ping.o
    CC spl/net/tftp.o
    AR spl/网络/内置.o
    LDS spl/u-boot-spl.lds
    LD spl/u-boot-spl
    arm-oE-linux-gnueabi-ld.bfd:enV/fat.o:in function `env_fat_get_dev_part':
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/env/fat.c:50:对`mmc_get_env_dev'的引用未定义
    arm-oE-linux-gnueabi-ld.bfd:enV/fat.o:in function `env_fat_load':
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/env/fat.c:130:未`m"MC_initialize"
    arm-oE-linux-gnueabi-ld.bfd:drivers/net/phy/phy.o:在函数`genphy_update_link'中:
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/phy/phy.c:258:未定义对`CtrlC'的引用
    ARM-OE-LINUX-gnueabi-ld.bfd:drivers/net/ti/cpsw.o:在函数`cpsw_eth_of_to_plat'中:
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/ti/cpsw.c:1184:未定义对`GPIO_GET_LIST_COUNT'的引用
    ARM-OE-LINUX-gnueabi-ld.bfd:/home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/net/ti/cpsw.c:1188:对`GPIO_request_list_By_name'的引用未定义
    arm-oE-linux-gnueabi-ld.bfd:drivers/net/ti/cpsw_MDIO.o:在函数`wait_for_bit_le32'中:
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/include/WAIT_BIT.h:81:对`CtrlC'的未定义引用
    ARM-OE-LINUX-gnueabi-ld.bfd:drivers/USB/gadget/ether.o:in function ` usb_eth_init':
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/drivers/usb/gadget/ether.c:2339:未`"CtrlC"的引用
    ARM-OE-LINUX-gnueabi-ld.bfd:net/net.o:在函数`net_loop'中:
    /home/aws-suma/PIC6.1_Migration/base_custom_pic61/11-1-2023-PIC6.1/board-support/ti-u-boot-2023.04 +gitAUTOINC+d74d0993e2-gd74d0993e2/net/net.c:629:未定义对`CtrlC'的引用
    make[1]:***[scripts/Makefile.spl:527: SPL/u-boot-spl]错误1
    make:***[Makefile:2043: SPL/u-boot-spl]错误2

    香港特区政府

    我们是否因该自定义遗漏了任何内容而导致了未定义的引用?

    我们可以做些什么来实现明确和明确编译?

    谢谢。

    Suraj.

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

    我建议使用"make u-boot"来编译 u-boot。
    此致!
    -洪

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

    是的,对,但 SPL 图像呢?

    如果我是对的,那么生成 u-boot 将只创建 u-boot 映像而不是 spl 映像?

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

    "make u-boot"会编译所有 u-boot 二进制文件、包括 SPL、u-boot、dtb……
    此致!
    -洪

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

    使用"make u-boot"、工具链、*defconfig...时 在"Rules.make"中配置。
    无需配置工具链等。。。
    "make u-boot"在我的设置中适用以构建 u-boot 二进制文件- SPL、u-boot、dtb……
    此致!
    -洪

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

    感谢您的回复!!

    您能否共享用于下载的 SDK 链接以及构建该链接的步骤?

    将使用相同的方法并尝试它。

    谢谢。

    Suraj.

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

    www.ti.com/.../09.01.00.001
    运行顶部 SDK 安装文件夹中的"make u-boot"。
    此致!
    -洪