PROCESSOR-SDK-AM64X: K3 Ressource Partioning - Set up fails.

Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

idk why every single tool at TI is a pain in the ass to set up, sry to say that. But here we go again.

It fails right at the beginning of the instructions: e2e.ti.com/.../faq-how-to-use-k3-resource-partitioning-tool-with-processor-sdk-v9-0-or-v9-1

What am I doing wrong?

I use syscfg 1.19.0 and using SDK 09.01

Thx for help.

  • I could solve it by letting chatgpt rewrite the script: 

    ```

    import fileinput
    import argparse
    import os
    import sys

    ################################################################################
    ##                          Main program starts here                          ##
    ################################################################################

    # Setup argument parser
    parser = argparse.ArgumentParser(
        prog='setup.py',
        formatter_class=argparse.RawTextHelpFormatter,
        description='setup.py - Setup script for K3 Resource Partitioning Tool'
    )
    parser.add_argument('-s', '--sysconfig_dir', required=True, dest='sysconfig_dir',
                        action='store', help='Path to SysConfig installation directory')
    args = parser.parse_args()

    # Construct the path to the target file
    path = os.path.join(args.sysconfig_dir, "dist", "ui.js")

    # Check if the file exists
    if not os.path.exists(path):
        print(f"Error: The file {path} does not exist.")
        sys.exit(1)

    # Modify the file content
    try:
        with fileinput.FileInput(path, inplace=True, backup='.bak', encoding='utf-8') as file:
            for line in file:
                print(line.replace('html(){return"<p>$$$$ommitted_html$$$$</p>"}', ''), end='')
        print("Setup finished successfully.\n")
    except Exception as e:
        print(f"An error occurred: {e}")
        sys.exit(1)
    ```
    Now it works
  • Hello Isaac,

    Thanks for posting your solution! We are always looking to improve our code and tools, and this kind of feedback is very helpful for us.

    I am re-opening this thread and sending it over to one of my team mates so we can take a look at whether your modifications are already made in later versions of the K3 Resource Partition Tool, or if we need to integrate your changes going forward.

    Regards,

    Nick

  • Hi Nick,

    This was an encoding error which was present earlier also. I will file an internal Jira ticket for the same so that it gets fixed in upcoming releases.

    Regards,

    Tushar

  • Hi Issac,

    Quick update:

    The setup.py script is not needed to be run. It was a legacy step carried forward.

    I have also updated the FAQ.

    Regards,

    Tushar