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] How to use K3 resource partitioning tool with Processor SDK v9.0 or v9.1?

Other Parts Discussed in Thread: SYSCONFIG

Hi Team,

I am using Processor SDK Linux v9.0 or v9.1 for development. I want to do resource allocation between the cores, but these files from SDK 8.x are no longer in the SDK: board-support/k3-image-gen tool folder and rm-cfg.c.

How do I allocate resources in SDK v9.x?

This FAQ was written for AM62x, AM62Ax, AM62Px, AM64x, though it may apply to other processors as well.

  • What changed from SDK v8.x to SDK v9.x?

    The tools to generate uboot files changed from SDK v8.x to SDK v9.x. The k3-image-gen tool is replaced by binman. Because of this, rm-cfg.c has been replaced with rm-cfg.yaml.

    The resource partitioning tool provided as a part of SDK v9.x or above will generate equivalent *.yaml file that can be used to allocate resources among hosts.

    The resource partitioning tool can be found at path `${SDK root}/board-support/k3-respart-tool`.

    For more information, please refer K3_Resource_Partitioning_Tool.

    However... if you are using SDK 9.0 or SDK 9.1, you CANNOT actually use the K3 Resource Partition tool that is packaged into the SDK. Here's why:

    Known bugs 

    * AM62x Linux & MCU+ SDK 9.0: the k3-respart-tool that is packaged into the SDK cannot generate .yaml output files

    * AM64x Linux SDK 9.0: the k3-respart-tool that is packaged into the SDK cannot generate .yaml output files, and will not open in SysConfig 1.18+

    * AM62Ax Linux SDK 9.0 & SDK 9.1: the k3-respart-tool that is packaged into the SDK does not include the out/am62a-evm.syscfg file

    * AM62x, AM62Px, AM64x Linux SDK 9.1: k3-respart-tool was not packaged into the SDK

    * AM64x MCU+ SDK 9.0, 9.1: tools/sysfw/k3-resource-partitioning was not packaged into the SDK

    AM62x & AM62Px MCU+ SDK 9.1 tools/sysfw/k3-resource-partitioning CAN generate .yaml files.

  • Allocate Resources using Resource Partitioning Tool

    To allocate resources using resource partitioning tool in SDK v9.0 or v9.1:

    Download this version of the K3 Resource Partitioning Tool 

    k3-resource-partitioning.zip

    Open the base design in SysConfig v1.18 or above

    Download and install the SysConfig tool (1.18 or later) from https://www.ti.com/tool/SYSCONFIG

    Getting Started for Linux Machine:

    Open the SysConfig GUI tool and navigate to the keystone3 resource partition folder.

    Click on the browse to open an existing design. Navigate to the out directory in the K3 Resource Partition tool, and you will find a baseline file for your platform.

    Note: We do not recommend you to start from scratch. Always load the baseline file out\xyz-platform-name.syscfg for customization.

    Getting Started for Windows machine 

    Make sure you have a local copy of the K3 Resource Partition tool on your machine. 

    Open the SysConfig GUI tool and navigate to the keystone3 resource partition.

    Click on the browse to open an existing design. Navigate to k3-respart-tool\out directory and you will find a baseline file for your platform.

    Note : We do not recommend you to start from scratch, always load the baseline file out\xyz-platform-name.syscfg for customization.

    Build the changes into your uboot files 

    Once you have made all the changes you want to make:

    • Save the generated rm-cfg.yaml file.
    • Replace the original rm-cfg.yaml file located at `${SDK root}/board-support/ti-u-boot/board/ti/<soc>` (here soc can be am62, am64 etc) with the previously saved file.
    • After replacing the original file with the updated file, just rebuild the u-boot with below command.

    make u-boot
    

    • It will generate the tiboot3.bin file at path <SDK>/board-support/u-boot-build/r5.
    • In the SD card, replace the old tiboot3.bin file with the newly created tiboot3.bin.
    • Boot the board with the updated images.

    After performing the above steps you will be able to see the changes made in resource allocation.

  • Using Resource Partitioning tool on SDK v8.6 or earlier

    To use resource partitioning tool on SDK v8.6 or earlier, please refer faq-how-to-get-started-with-resource-partitioning-tool. 

    The above referenced page also has an FAQ to modify GPIO interrupt routers using resource partitioning tool.