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.

[FAQ] [参考译文] [常见问题解答] TDA4VL:RGMII 在 SDK 8.5和 SDK 8.6中的 MAIN_CPSW2G 上无法运行

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1245448/faq-tda4vl-rgmii-not-working-on-main_cpsw2g-in-sdk-8-5-and-sdk-8-6

器件型号:TDA4VL

我想在 TDA4VL 的 MAIN_CPSW2G 上使用 RGMII。 链路已建立、但无法建立通信。 我可以看到 Rx 工作、但 Tx 不工作。

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

    您好!

    这是 SDK 8.5和 SDK 8.6中的一个已知问题。 出现该问题的原因是 RGMII 时钟设置不正确、这会影响 RGMII 的 Tx 路径。

    要解决此问题、您需要:

    1. 更改 mcu1_0上运行的 DM 固件
    2. 更改 GTC 和 CPTS 时钟源以使其不影响这些时钟

    更改 mcu1_0上运行的 DM 固件

    对 rm_pm_hal 使用以下补丁。 补丁: e2e.ti.com/.../2677.pll0_5F00_no_5F00_hw_5F00_init.patch

    应用修补程序:

    1. 转至  -[PSDK-RTOS-Install-directory]/pdk_j721s2_[version-string]/packages/ti/drv/sciclient/src/rm_pm_hal
    2. 运行- git init && git apply <path-to-patch>

    构建固件:

    1. 执行-  [PSDK-RTOS-Install-directory]/pdk_j721s2_[version-string]/packages/ti/build
    2. 运行-
      1. make BOARD=j721s2_evm CORE=mcu1_0 rm_pm_hal_clean
      2. make BOARD=j721s2_evm CORE=mcu1_0 ipc_echo_testb_freertos

    构建的二进制文件将在  [PSDK-RTOS-Install-directory]/pdk_j721s2_[version-string]/packages/ti/binary/ipc_echo_testb_freertos/bin/j721s2_evm/

    SDK 8.5二进制文件的预编译版本可从以下位置获得: e2e.ti.com/.../2677.ipc_5F00_echo_5F00_testb_5F00_mcu1_5F00_0_5F00_release_5F00_strip.xer5f

    要在 SPL 引导流程中包含 DM,请将二进制文件复制到 [PSDK-Linux-Install-directory]/board-support/prebuilt-images/并重新编译 Linux 引导加载程序(majorlytiboot3.bin )。 请参阅下面的、以构建 Linux 引导加载程序。

    更改 GTC 和 CPTS 时钟源

    在 u-boot 上应用以下补丁。 补丁- e2e.ti.com/.../2677.0001_2D00_arch_2D00_arm_2D00_dts_2D00_k3_2D00_j721s2_2D00_Change_2D00_GTC_2D00_and_2D00_CPTS_2D00_clock_2D00_par.patch

    若要应用补丁:

    1. 执行-  [PSDK-Linux-Install-directory]/board-support/u-boot-[commit-hash]/
    2. 运行- git apply <path-to-patch>

    要构建 Linux 引导加载程序、请执行以下操作:

    1. 转至-[PSDK-Linux-Install-directory]
    2. 运行-"" make u-boot
    3. 引导加载程序将内置在中-
      1. tiboot3.bin -  [PSDK-Linux-Install-directory]/board-support/k3-image-gen-[version]/tiboot3.bin
      2. tispl.bin -  [PSDK-Linux-Install-directory]/board-support/u-boot_build/a72/tislp.bin
      3. u-boot.img - [PSDK-Linux-Install-directory]/board-support/u-boot_build/a72/u-boot.img
    4. 您应该将这三个引导加载程序复制到引导介质中。

    这样、您将看到 RGMII 时钟设置为其合适的值、RGMII Tx 将正常工作。

    此致、
    坦迈