TDA4VL-Q1: PROCESSOR-SDK-J721S2: Changed from LPDDR4 RAM 16G (8G x2) [EVM] to 8G (8G x1)

Part Number: TDA4VL-Q1

Tool/software:

Hi all

we use sdk11.

I referred to the linked([FAQ] TDA4VL-Q1: How to configure DDR size of 4GB in the J721s2 SDK? - Processors forum - Processors - TI E2E support forums) patch, but in the current SDK version, the board/ti/j721s2/evm.cfile does not have the dram_init_banksizefunction. How can I modify the DDR size in SDK11?

RB

liupt

  • Hi Peitao,

    The dram_init_banksize is now defined in board/ti/common/k3-ddr.c. And configuration should now be based on devicetree instead of hardcoding.

    Regards,

    Takuma

  • HI 

    The TDA4AL EVM uses two ​MT53E2G32D4DT-046 AAT:A​ chips, while our custom board uses one ​MT53E2G32D4DE-046 AAT:C.

    Is it sufficient to only modify memory@80000000in k3-j721s2-som-p0.dtsi without changing the DDR parameter configurations?

    I should modify the psdkla/board-support/ti-u-boot-2025.01+git/dts/upstream/src/arm64/ti/k3-j721s2-som-p0.dtsi

        memory@80000000 {
            device_type = "memory";
            bootph-all;
            /* 16 GB RAM */
            reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
                  <0x00000008 0x80000000 0x00000003 0x80000000>;
        };
    to
        memory@80000000 {
            device_type = "memory";
            bootph-all;
            /* 8 GB RAM */
            reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
                  <0x00000008 0x80000000 0x00000001 0x80000000>;
        };
    Currently, the following issue occurs:
    Timeout during frequency handshake
    ### ERROR ### Please RESET the board ###
    Any other file should be modify?

    BR
    liupt
  • Hi Liupt,

    I tried below. Essentially, almost the exact same as Nikhil's FAQ, but remove the dram_init_banksize related changes, and modify the memory@80000000 for 8GB instead of 4GB:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_PSDK_2D00_11.0_2D00_J721S2_2D00_8GB_2D00_U_2D00_Boot.patch

    And I get below logs:

    U-Boot SPL 2025.01-ti-g70667128cb5b-dirty (Aug 20 2025 - 18:02:33 -0500)
    SYSFW ABI: 4.0 (firmware rev 0x000b '11.0.9--v11.00.09+ (Fancy Rat)')
    SPL initial stack usage: 13456 bytes
    Trying to boot from MMC2
    Skipping authentication on GP device
    Skipping authentication on GP device
    Skipping authentication on GP device
    Skipping authentication on GP device
    Skipping authentication on GP device
    Loading Environment from nowhere... OK
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.12.0(release):11.00.09-dirty
    NOTICE:  BL31: Built : 12:35:58, Mar 24 2025
    I/TC:
    I/TC: OP-TEE version: 4.5.0-73-gef1ebdc23-dev (gcc version 13.3.0 (GCC)) #1 Tue Feb  4 11:33:18 UTC 2025 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware rev 0x000b '11.0.9--v11.00.09+ (Fancy Rat)')
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: HUK Initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2025.01-ti-g70667128cb5b-dirty (Aug 20 2025 - 18:02:30 -0500)
    SYSFW ABI: 4.0 (firmware rev 0x000b '11.0.9--v11.00.09+ (Fancy Rat)')
    Trying to boot from MMC2
    Skipping authentication on GP device
    Skipping authentication on GP device
    
    
    U-Boot 2025.01-ti-g70667128cb5b-dirty (Aug 20 2025 - 18:02:30 -0500)
    
    SoC:   J721S2 SR1.0 GP
    Model: Texas Instruments J721S2 EVM
    Board: J721S2X-PM1-SOM rev E1
    DRAM:  2 GiB (total 8 GiB)
    Core:  125 devices, 32 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   mmc@4f80000: 0, mmc@4fb0000: 1
    Loading Environment from nowhere... OK
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    941 bytes read in 2 ms (459 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
    Failed to load '/lib/firmware/j721s2-mcu-r5f0_1-fw'
    1023372 bytes read in 107 ms (9.1 MiB/s)
    Load Remote Processor 2 with data@addr=0x82000000 1023372 bytes: Success!
    355572 bytes read in 101 ms (3.4 MiB/s)
    Load Remote Processor 3 with data@addr=0x82000000 355572 bytes: Success!
    Failed to load '/lib/firmware/j721s2-main-r5f1_0-fw'
    Failed to load '/lib/firmware/j721s2-main-r5f1_1-fw'
    15073424 bytes read in 252 ms (57 MiB/s)
    Load Remote Processor 6 with data@addr=0x82000000 15073424 bytes: Success!
    9703384 bytes read in 198 ms (46.7 MiB/s)
    Load Remote Processor 7 with data@addr=0x82000000 9703384 bytes: Success!
    22256128 bytes read in 232 ms (91.5 MiB/s)
    112487 bytes read in 5 ms (21.5 MiB/s)
    Working FDT set to 88000000
    10408 bytes read in 5 ms (2 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 000000008fee1000, end 000000008fffffff ... OK
    Working FDT set to 8fee1000
    
    Starting kernel ...
    
    

    ^"DRAM:  2 GiB (total 8 GiB)"

    Regards,

    Takuma

  • Hi 

    Thank you 

    BR liupt