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-AM62-LP:BOOTP - u-boot 控制台

Guru**** 2487055 points
Other Parts Discussed in Thread: SK-AM62-LP

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1439307/sk-am62-lp-bootp---u-boot-console

器件型号:SK-AM62-LP

工具与软件:

我正在尝试让以太网引导在 SK-AM62-LP 上工作、以调查它是否适合在测试环境中使用。

该板似乎在启动时做了正确的事情、因为我可以看到发生了 BOOTP、并且文件tiboot3.bin正在使用 TFTP 下载

之后似乎开始执行、但没有到达引导控制台提示符、然后我想在那里调用其他 TFTP 命令以拉入内核/DTB 并通过 NFS 安装

含映像的 SD 卡工作、

是否还需要配置或设置其他内容才能从以太网引导进入 u-boot 提示符?

U-Boot SPL 2024.04 (Nov 15 2024 - 14:54:46 +0000)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
SPL initial stack usage: 13392 bytes
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

此致

尼尔

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

    您好!

    您是否已按照此处提到的步骤操作: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1328520/faq-how-to-boot-sk-am62b-sk-am62a-via-ethernet-and-flash-u-boot-and-linux-binaries-into-emmc-via-ethernet

    此致、
    Aparna

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

    尊敬的 Aparna:

    感谢您的答复。 我没有看到您链接的信息。

    我 在 Rules.make 中更改了 ethboot 配置的 uBoot_machine:

    # u-boot machine configs for A53 and R5
    UBOOT_MACHINE=am62x_evm_a53_defconfig
    UBOOT_MACHINE_R5=am62x_evm_r5_ethboot_defconfig
    MKIMAGE_DTB_FILE=a53/arch/arm/dts/k3-am625-sk.dtb

    # Update platform, defconfig if PLATFORM=am62xx-lp-evm
    ifeq ($(PLATFORM),am62xx-lp-evm)
    UBOOT_MACHINE=am62x_lpsk_a53_defconfig
    UBOOT_MACHINE_R5=am62x_lpsk_r5_ethboot_defconfig
    MKIMAGE_DTB_FILE=a53/arch/arm/dts/k3-am62-lp-sk.dtb
    endif

    然后将这些映像放到 TFTP 服务器上:

    cp ./board-support/u-boot-build/a53/u-boot.img /tftpboot/

    cp ./board-support/u-boot-build/a53/tispl.bin /tftpboot/

    cp ./board-support/u-boot-build/r5/tiboot3.bin /tftpboot/

    现在、我会在 SK-AM62-LP 上电后看到以下内容

    U-Boot SPL 2024.04-dirty (Nov 19 2024 - 07:19:18 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from eth device
    ## Error: Can't create "args_all"
    himport_r: can't insert "args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 ${mtdparts}" into hash table

    我缺少什么明显的东西吗? 谢谢。

    尼尔

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

    Rules.make再次查看、我看到有一个PLATFORM变量、我认为应该am62xx-lp-evm在我使用SK-AM62-LP 电路板时设置它?

    如果我强制make u-boot构建am62xx-lp-evm通路 PLATFORM=am62xx-lp-evm make u-boot并复制仍然看到的二进制文件:

    U-Boot SPL 2024.04-dirty (Nov 19 2024 - 15:28:43 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from eth device
    Loading Environment from nowhere... OK
    No ethernet found.

    No Ethernet devices found
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###

    我看到以太网端口上的 LED 指示灯闪烁、当初始 BOOTP/TFTP 发生时、它必须在一定程度上工作。

    此致

    尼尔

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

    尊敬的 Aparna:

    我想知道您是否对此问题有任何想法、或者我还应该尝试哪些其他方法?

    查看 LP-SK 上 R5的 ethboot 和 A53的 uboot defconfigs、 CONFIG_SPL_NET_VCI_STRING 与您参考的文档中的 DHCP 配置文件不匹配。

    我在服务器配置文件中更改了该值以匹配:

    subnet 10.0.0.0 netmask 255.0.0.0
    {
    range dynamic-bootp 10.0.0.2 10.0.0.16;
    if substring (option vendor-class-identifier, 0, 16) = "TI K3 Bootp Boot"
    {
    filename "tiboot3.bin";
    } elsif substring (option vendor-class-identifier, 0, 20) = "AM62X-LPSK U-Boot R5 SPL"
    {
    filename "tispl.bin";
    } elsif substring (option vendor-class-identifier, 0, 21) = "AM62X-LPSK U-Boot A53 SPL"
    {
    filename "u-boot.img";
    }

    range 10.0.0.17 10.0.0.25;
    default-lease-time 60000;
    max-lease-time 720000;
    next-server 10.0.0.1;
    }

    我仍然只看到:

    U-Boot SPL 2024.04-dirty (Nov 20 2024 - 19:52:15 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from eth device
    Loading Environment from nowhere... OK
    No ethernet found.

    No Ethernet devices found
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###

    Wireshark 仅显示 tiboot3.bin 的初始 BOOTP 和 TFTP

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

    您好、Neil:

    网络专家当前不在办公室、因此、请预计该主题的回复会有一些延迟。 同时、我正在尝试重现 AM62x LP 板上的以太网启动。

    乍一看、您共享的所有配置看起来都是正确的。 为确保以太网连接能够正常工作、您是否可以使用另一种引导介质(如 SD 卡)来引导电路板、并尝试通过 TFTP 服务器下载文件? 这将确保不会出现与以太网配置相关的问题、并且我们可以继续进行与 U-boot 二进制文件相关的调试。

    通过 TFTP 下载文件的命令为:

    => setenv serverip
    => DHCP
    => tftp $loadaddr

    此致、
    Aparna

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

    尊敬的 Aparna:

    谢谢。

    从 SD 卡引导、然后使用 TFTP 下载内核以及使用 NFS 作为根文件系统运行正常、因此我 认为网络连接是有效的。

    正如我所提到的、在 BOOTP 初始化后、我可以看到 tiboot3.bin 下载-因此我也相信网络连接在开机时有效。

    此致

    尼尔

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

    您好、Neil:

    尝试从以太网引导时、我能够在 AM62x LP 板上重现错误。

    我正在与开发团队一起调试这个问题。

    此致、
    Aparna

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

    尊敬的 Aparna:

    好的、您重现了问题。

    当你到达那个阶段时,我应该随时可以测试一个修复。

    此致

    尼尔

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

    您好、Neil:

    请使用 AM62x-LP 电路板的 U-boot 源代码中随附的更改进行测试。

    我还在最后验证了它、它可以正常工作。 如果您仍然看到问题、请告诉我。

    另请注意、您必须同时使用 am62x_lpsk_a53_ethboot_defconfig 和 am62x_lpsk_r5_ethboot_defconfig、并构建 U-boot 二进制文件。

    此致、
    Aparna

    e2e.ti.com/.../tiU24.04_2D00_2_2D00_2_2D00_arch_2D00_arm_2D00_dts_2D00_k3_2D00_am62_2D00_lp_2D00_sk_2D00_u_2D00_boot_2D00_Add_2D00_bootph_2D00_all_2D00_property_2D00_to_2D00_necessary_2D00_nodes.diffe2e.ti.com/.../tiU24.04_2D00_1_2D00_2_2D00_configs_2D00_am62x_5F00_lpsk_5F00_a53_5F00_ethboot_2D00_Disable_2D00_unnecessary_2D00_configs_2D00_for_2D00_AM62_2D00_LPSK_2D00_Ethboot.diff

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

    尊敬的 Aparna:

    感谢贴片。

    我正在取得一些进展、但尚未完全启动。

    请在下面查看我的步骤:

    1.修补文件

    2.修改 Rules.make 以使用 ethboot defconfigs

    # Update platform, defconfig if PLATFORM=am62xx-lp-evm
    ifeq ($(PLATFORM),am62xx-lp-evm)
    UBOOT_MACHINE=am62x_lpsk_a53_ethboot_defconfig
    UBOOT_MACHINE_R5=am62x_lpsk_r5_ethboot_defconfig
    MKIMAGE_DTB_FILE=a53/arch/arm/dts/k3-am62-lp-sk.dtb
    endif

    3.运行 PLATFORM=am62xx-lp-evm make u-boot

    4.复制二进制文件(这些是否正确?) 最终目的 /tftpboot 

    cp board-support/u-boot-build/a53/u-boot.img /tftpboot/

    cp ./board-support/u-boot-build/a53/tispl.bin /tftpboot/

    cp ./board-support/u-boot-build/r5/tiboot3.bin /tftpboot/

    5.打开 LP 电源

    U-Boot SPL 2024.04-dirty (Nov 28 2024 - 11:09:33 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from eth device
    Loading Environment from nowhere... OK
    eth0: ethernet@8000000port@1
    ethernet@8000000port@1 Waiting for PHY auto negotiation to complete....... done
    link up on port 1, speed 1000, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    DHCP client bound to address 10.0.0.3 (562 ms)
    *** Warning: no boot file name; using '00000000.img'
    Using ethernet@8000000port@1 device
    TFTP from server 10.0.0.1; our IP address is 10.0.0.3
    Filename '00000000.img'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found' (1)
    Not retrying...
    udma_stop_mem2dev: peer not stopped TIMEOUT !
    am65_cpsw_nuss_port ethernet@8000000port@1: RX dma free_pkt failed -22
    Problem booting with BOOTP
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###

    6.我看不到 tispl.bin 或 u-boot.img 在 TFTP 上的任何访问

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

    尊敬的 Aparna:

    现在可以开始工作了。

    我意识到中的 VCI 子字符串匹配dhdcpd.conf不是 defconfig 文件中提供的正确长度、因此更正长度会造成差异。

    subnet 10.0.0.0 netmask 255.0.0.0
    {
    range dynamic-bootp 10.0.0.2 10.0.0.16;
    if substring (option vendor-class-identifier, 0, 16) = "TI K3 Bootp Boot"
    {
    filename "tiboot3.bin";
    } elsif substring (option vendor-class-identifier, 0, 24) = "AM62X-LPSK U-Boot R5 SPL"
    {
    filename "tispl.bin";
    } elsif substring (option vendor-class-identifier, 0, 25) = "AM62X-LPSK U-Boot A53 SPL"
    {
    filename "u-boot.img";
    }

    range 10.0.0.17 10.0.0.25;
    default-lease-time 60000;
    max-lease-time 720000;
    next-server 10.0.0.1;
    }

     

    我现在看到以太网完全引导到 u-boot 控制台:

    U-Boot SPL 2024.04-dirty (Nov 28 2024 - 11:09:33 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from eth device
    Loading Environment from nowhere... OK
    eth0: ethernet@8000000port@1
    ethernet@8000000port@1 Waiting for PHY auto negotiation to complete....... done
    link up on port 1, speed 1000, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    DHCP client bound to address 10.0.0.3 (7769 ms)
    Using ethernet@8000000port@1 device
    TFTP from server 10.0.0.1; our IP address is 10.0.0.3
    Filename 'tispl.bin'.
    Load address: 0x82000000
    Loading: #################################################################
    #################################################################
    #################################################################
    ################################# 0 Bytes
    355.5 KiB/s
    done
    Bytes transferred = 1163783 (11c207 hex)
    udma_stop_mem2dev: peer not stopped TIMEOUT !
    Authentication passed
    Authentication passed
    Authentication passed
    Loading Environment from nowhere... OK
    init_env from device 4 not supported!
    Authentication passed
    Authentication passed
    Starting ATF on ARM64 core...

    NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
    NOTICE: BL31: Built : 16:09:05, Feb 9 2024

    U-Boot SPL 2024.04-dirty (Nov 28 2024 - 11:09:47 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    SPL initial stack usage: 1856 bytes
    MMC: no card present
    ** Bad device specification mmc 1 **
    Couldn't find partition mmc 1:1
    Error: could not access storage.
    Trying to boot from eth device
    Loading Environment from nowhere... OK
    eth0: ethernet@8000000port@1
    ethernet@8000000port@1 Waiting for PHY auto negotiation to complete...... done
    link up on port 1, speed 1000, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    DHCP client bound to address 10.0.0.3 (1761 ms)
    Using ethernet@8000000port@1 device
    TFTP from server 10.0.0.1; our IP address is 10.0.0.3
    Filename 'u-boot.img'.
    Load address: 0x82000000
    Loading: #################################################################
    #################################################################
    #################################################################
    ############################ 0 Bytes
    361.3 KiB/s
    done
    Bytes transferred = 1140187 (1165db hex)
    Authentication passed
    Authentication passed


    U-Boot 2024.04-dirty (Nov 28 2024 - 11:09:47 +0000)

    SoC: AM62X SR1.0 HS-FS
    Model: Texas Instruments AM62x LP SK
    EEPROM not available at 0x50, trying to read at 0x51
    Board: AM62-LP-SKEVM rev E2
    DRAM: 2 GiB
    Core: 77 devices, 29 uclasses, devicetree: separate
    MMC: mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In: serial
    Out: serial
    Err: serial
    Net: eth0: ethernet@8000000port@1
    Hit any key to stop autoboot: 0
    =>
    =>

    希望能够对文档和下一个 SDK 的 u-boot defconfig 进行所需的更改。

    感谢您的帮助!

    此致

    尼尔