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:am62X 的 u-boot 自定义

Guru**** 2393165 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1484735/am625-u-boot-customization-for-the-am62x

器件型号:AM625

工具与软件:

您好!

我们正在努力为定制电路板自定义 u-boot。 我们正在尝试从 U-boot 中删除以太网、USB、mmc1、我们希望 MMC0直接引导映像、并且需要添加 usb0来更新 mmcblk0下的 Linux 映像。

我们使用的是使用 bitbake frommm toradex 构建的 Yocto、由于我们使用的是 verdin am62、我们有 u-boot-toradex-ti 的工作区、在此我们不确定要编辑的器件树文件。 请提供修改 u-boot 的步骤。

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

    主题所有者是 ooo 本周. 敬请期待下周的答复。

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

    尊敬的 Naveenkumar:

    [报价 userid="579101" url="~/support/processors-group/processors/f/processors-forum/1484735/am625-u-boot-customization-for-the-am62x "]我们使用的是使用 bitbake frommm toradex 构建的 Yocto 由于我们使用的是 verdin am62、我们有 u-boot-toradex-ti 的工作区、在此我们不确定要编辑哪些器件树文件。 [报价]

    我们不支持 Toradex 软件包,您最好控制 Toradex 处理这个问题。

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

    尊敬的

    感谢您的答复。

    我们实际上在 SOM 中使用的是 AM62x、我们要做的是定制 u-boot 并尝试测试它。 目前、我们已修改器件树文件、并为 u-boot 构建了映像。

    我需要了解的是如何使用 SD 卡测试新生成的 u-boot 映像。

    需要将哪些所有文件添加到 SD 中、以及需要在 SD 中创建哪些分区来单独测试 u-boot?

    请在这方面提供帮助!

    提前感谢。

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

    尊敬的 Naveenkumar:

    此处的难点不在于 AM62x 器件、而是软件包(U-Boot 源代码)。 如果您不使用 TI 处理器 SDK 中提供的 U-Boot 包、我无法评论任何具体问题。

    需要在 SD 中添加的所有文件以及需要在 SD 中创建的分区以单独测试 u-boot?
    [quote userid="579101" url="~/support/processors-group/processors/f/processors-forum/1484735/am625-u-boot-customization-for-the-am62x 由于我们使用的是 bitfrommm toradex、所以我们使用的是 Yocto 构建、

    我不是 Yocto 专家、但我认为 Yocto 构建应该会生成 Linux WIC 映像文件。 您只需在 Linux 上使用工具(例如 bmaptool)将此 WIC 映像写入 SD 卡、 然后使用此 SD 卡启动电路板。

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

    U-Boot 生成3个二进制文件:tiboot3.bin、tispl.bin 和 u-boot.img。

    将 Yocto WIC 映像文件刷写到 SD 卡后、这3个二进制文件应位于 SD 卡引导分区中。

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

    尊敬的

    感谢您提供的信息。

    您提到的使用以下命令更新了所有3个文件、它们看起来都正常工作。

    => mmc dev 0 1
    => fatload mmc 1 ${loadaddr} tiboot3.bin
    => mmc write ${loadaddr} 0x0 0x400
    => fatload mmc 1 ${loadaddr} tispl.bin
    => mmc write ${loadaddr} 0x400 0x1000
    => fatload mmc 1 ${loadaddr} u-boot.img
    => mmc write ${loadaddr} 0x1400 0x2000

    在 SPL 中、我们目前看到、首先检查 MMC1、检查 MMC0。 我要更改此启动顺序。

    我可以在哪里操作。 我正在检查板目录、但找不到确切的文件。 您能告诉我这一点吗?

    提前感谢。

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

    尊敬的 Naveenkumar:

    在 SPL 中、目前我们看到、首先选中了 MMC1、选中了 MMC0。 [报价]

    如果不看到日志、我不确定它是什么、但您可能想要检查 Boot_Targets u-boot 文件 board/ti/am62x/am62x.env 中的变量

    boot_targets=mmc1 mmc0 USB PXE DHCP

    此变量定义了引导设备搜索顺序。

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

    请在此处找到日志

    U-Boot SPL 2023.04-6.5.0-devel+git.536d0d5eef24 (Nov 04 2024 - 10:41:05 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
    SPL initial stack usage: 1856 bytes
    Trying to boot from MMC1
    Authentication passed
    Authentication passed
    
    
    U-Boot 2023.04-6.5.0-devel+git.536d0d5eef24 (Nov 04 2024 - 10:41:05 +0000)
    
    SoC:   AM62X SR1.0 HS-FS
    DRAM:  1 GiB
    Core:  140 devices, 28 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Model: Toradex 0074 Verdin AM62 Dual 1GB IT V1.1C
    Serial#: 15415780
    i2c_write: error waiting for data ACK (status=0x116)
    get_tdx_eeprom: cannot find EEPROM by node
    MISSING TORADEX CARRIER CONFIG BLOCKS
    i2c_write: error waiting for data ACK (status=0x116)
    get_tdx_eeprom: cannot find EEPROM by node
    Failed to probe am65_cpsw_nuss driver
    Setting variant to nonwifi
    Net:   No ethernet found.
    Hit any key to stop autoboot:  0 
    starting USB...
    Bus usb@31000000: generic_phy_get_bulk : no phys property
    Register 1000840 NbrPorts 1
    Starting the controller
    USB XHCI 1.10
    Bus usb@31100000: generic_phy_get_bulk : no phys property
    Register 1000840 NbrPorts 1
    Starting the controller
    USB XHCI 1.10
    scanning bus usb@31000000 for devices... 1 USB Device(s) found
    scanning bus usb@31100000 for devices... 1 USB Device(s) found
           scanning usb for storage devices... 0 Storage Device(s) found
    
    Device 0: unknown device
    Card did not respond to voltage select! : -110
    

    请提供在 u-boot 中使用 MMC 命令更新环境变量的步骤

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

    > GET_TDX_EEPROM:无法按节点查找 EEPROM
    > 缺少 TORADEX 载波配置块

    同样,我们不熟悉 Toradex 软件包,也不支持它们。