[FAQ] AM62D-Q1: How to modify CPSW resource partitioning for Ethernet Firmware application?

Part Number: AM62D-Q1


The default out-of-box resource partitioning for AM62Dx distributes CPSW resources between MCU-R5 and A53 core.

However, the Ethfw application requires resource distribution between DM-R5, MCU-R5 and A53. How to modify the configuration using resource partitioning tool? 

  • To enable Ethfw application, we will modify the OOB CPSW resource distribution configuration as the below: 

                       |  OOB configuration                           |   Modified configuration   
                       |                                              |                                                
     Resource          |  MAIN_R5   MCU_R5           A53_2            |   MAIN_R5         MCU_R5          A53_2         
     TX Channels [8]   |   0         8 (Secondary)     8 (Primary)    |    4 (Primary)     4 (Primary)     8 (Secondary)
     TX Rings   [64]   |   0        64 (Secondary)    64 (Primary)    |   32 (Primary)    32 (Primary)    64 (Secondary)
     RX Channels [1]   |   0         1 (Secondary)     1 (Primary)    |    1 (Primary)     1 (Secondary)   0
     RX Flows   [16]   |   0        16 (Secondary)    16 (Primary)    |    6 (Primary)    10 (Primary)    16 (Secondary)
     RX Rings   [16]   |   0        16 (Secondary)    16 (Primary)    |    6 (Primary)    10 (Primary)    16 (Secondary)

  • The following steps show how to make the above modifications and rebuild the required binaries:

    1. Replace the file <mcu_plus_sdk>/tools/sysfw/boardcfg/k3-resource-partitioning/out/am62a-evm.syscfg with the one provided here - 

      https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/am62a_2D00_evm.syscfg
      k3_resource_partitioning tool can be used to manually modify the resource distribution, please refer RESOURCE_ALLOCATION_GUIDE.html

    2. (Optional) To view the modified resource partitioning, run the following command from SDK root directory:

      make -s -C tools/sysfw/boardcfg configure SOC=am62dx


    3. Rebuild the boardcfg file with the new syscfg, run the following command from SDK root directory:

      make -s -C tools/sysfw/boardcfg configure-gen SOC=am62dx

      This should update the file <mcu_plus_sdk>/source/drivers/sciclient/sciclient_default_boardcfg/am62dx/the sciclient_defaultBoardcfg_rm.c

    4. Rebuild the board configuration binary blob by running the following command from the SDK root directory:

      make -s -C tools/sysfw/boardcfg sciclient_boardcfg SOC=am62dx

      This should update the boardcfg binary blob at <mcu_plus_sdk>/source/drivers/sciclient/sciclient_default_boardcfg/am62dx/

    5. Rebuild the SBL before flashing the example binaries.

      make -s -f makefile.am62dx sbl-clean
      make -s -f makefile.am62dx sbl

    Regards,
    Nitika