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.

[参考译文] AM62L:512MB DDR 引导卡滞

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1501247/am62l-512mb-ddr-boot-stuck

器件型号:AM62L

工具/软件:

您好、

我开发了一个具有512MB DDR4的定制电路板。 使用 DDR 寄存器配置工具、我在 Trusted Firmware-A (TF-A)器件树文件 arm-trusted-firmware/FDTs/k3-am62l-ddr.dts 和 U-Boot 器件树文件 dts/上游/arm64/ti/k3-am62l3-evm.dts 中生成了512MB src 的 DDR 配置并将存储器大小修改为0x20000000。 但是、在启动期间、系统会在 U-Boot 阶段停止。

--- a/fdts/k3-am62l-ddr.dts
+++ b/fdts/k3-am62l-ddr.dts
@@ -12,7 +12,7 @@
         memory@80000000 {
                 device_type = "memory";
                 /* 2G RAM */
-                reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
+                reg = <0x00000000 0x80000000 0x00000000 0x20000000>;
         };
 
        memorycontroller: memorycontroller@f300000 {

--- a/dts/upstream/src/arm64/ti/k3-am62l3-evm.dts
+++ b/dts/upstream/src/arm64/ti/k3-am62l3-evm.dts
@@ -29,7 +29,7 @@
        };
 
        memory@80000000 {
-               reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x20000000>;
                device_type = "memory";
                bootph-all;
        };

日志:

NOTICE:  bl1_plat_arch_setup arch setup 
NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v2.12.0(release):f3b84eb11-dirty
NOTICE:  BL1: Built : 08:38:33, Apr 14 2025
NOTICE:  BL1: dram_class: 10
NOTICE:  lpddr4: post start - PI training status=0x29c02000 
NOTICE:  bl1_platform_setup DDR init done
NOTICE:  k3_bl1_handoff ENTERING WFI - end of bl1
NOTICE:  BL31: v2.12.0(release):f3b84eb11-dirty
NOTICE:  BL31: Built : 08:38:33, Apr 14 2025
NOTICE:  0_ADC0's parent is 0
NOTICE:  0_ADC0's parent (after set_parent) is 2
ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported

U-Boot SPL 2025.01-00256-gc581bb9a32c2 (Apr 14 2025 - 08:39:39 +0000)
SPL initial stack usage: 1872 bytes
Trying to boot from MMC2
ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported


U-Boot 2025.01-00256-gc581bb9a32c2 (Apr 14 2025 - 08:39:39 +0000)

SoC:   AM62LX SR1.0 HS-FS
Model: MYIR MYD-YM62L Module
DRAM:  512 MiB

我有另一个具有1GB DDR4的开发板、它使用相同的配置方法成功引导、但为什么512MB 版本会失败? 此外、还有一种奇怪的现象:当器件树设置为0x40000000 (1GB)时、系统可以在512MB DDR4板上启动、但进入 Linux 后会频繁发生存储器崩溃。

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

    尊敬的 Mazel:

    对于512MB DDR 配置、除了您所做的两项器件树更改外、还请应用以下 U-Boot 配置补丁。

    diff --git a/configs/am62lx_evm_defconfig b/configs/am62lx_evm_defconfig
    index 21040a3eb36a..f673ed118497 100644
    --- a/configs/am62lx_evm_defconfig
    +++ b/configs/am62lx_evm_defconfig
    @@ -124,5 +124,6 @@ CONFIG_CADENCE_QSPI_PHY=y
     CONFIG_SYSRESET=y
     CONFIG_SPL_SYSRESET=y
     CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
    +CONFIG_SYS_MEM_TOP_HIDE=0x02500000
     
     #include <configs/am62x_a53_usbdfu.config>