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.

PROCESSOR-SDK-AM62X: Build for AM6232

Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: AM625

Hi Team,

Evaluation Board:- AM62B-P1

SDK:- PROCESSOR-SDK-LINUX-RT-AM62X — Processor SDK RT-Linux for AM62x  Version: 09.00.00.03

Build Environment:- yocto build environment

I am trying to build AM62x SDK for AM6232 Device. I followed the https://dev.ti.com/tirex/explore/node?node=A__AR2h22wR-iz3YmiHsjulEQ__AM62-ACADEMY__uiYMDcq__LATEST&placeholder=true and tried to Port CPUs(Enable 2 CPUs Only) and disable GPU.

I've made the necessary changes in the DTS file at the specified paths related to CPU configuration. However, despite the successful rebuild, the changes do not seem to take effect on the board.

  • tisdk/build/arago-tmp-default-glibc/work-shared/am62xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am625.dtsi ---> removed cpu-1,2,3 from cpu's
  • tisdk/sources/meta-ti/meta-ti-bsp/conf/machine/include/am62xx.inc --> removed MACHINE_FEATURE="screen gpu"
  • meta-arm/meta-arm-bsp/recipes-kernel/linux/files/fvp-baser-aemv8r64/fvp-baser-aemv8r64.dts ---> removed cpu-1,2,3 from cpu's

Queries:-

1. Location of Device Tree Source (DTS) to Modify for CPU Configuration and to disable GPU.
Could someone please advise on the specific section or node in the Device Tree Source (DTS) file where I should make modifications to configure the system to use only one CPU?

2. Command to Rebuild Device Tree Binary (DTB):
Once the necessary changes are made in the DTS file, what command should be used to rebuild the Device Tree Binary (DTB) and apply the configuration changes?

Regards,

Kumar Ashutosh

  • Hi Ashutosh,

    You should look at this file to reduce the number of cpu cores.

    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/dts/k3-am625.dtsi?h=ti-u-boot-2023.04

    In order to disable GPU you may want to add in the DTS file

    gpu{

        status = disabled;

    };

    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/dts/k3-am625-sk.dts?h=ti-u-boot-2023.04

    Building the Device Tree blob (DTB) using make linux-dtbs as mentioned in the below link:

    software-dl.ti.com/.../Top_Level_Makefile.html

    • linux-dtbs - Compiles and creates the device tree blobs.

    Also you can use maxcpus in u-boot boot args to specify the number of CPU cores you want to use as mentioned in the below link:

    https://dev.ti.com/tirex/explore/node?node=A__AUTBljJxXWNOgUHj.1-BaA__AM62-ACADEMY__uiYMDcq__LATEST&placeholder=true

    Hope this helps.

    Best Regards,

    Suren

  • Hi Suren,

    Sorry for late response. 

    I have tried above steps but could not able reduce the CPU no's and Disable GPU. In my code base "k3-am625.dtsi" and "k3-am625-sk.dts" is available in build directory and as per my understanding we cannot change the configuration in build directory. Please correct me if I am wrong.

    Do I need to create patch and apply in my yacto build environment and apply the changes. Kindly confirm

    Regards,

    Kumar Ashutosh

  • Hi Ashutosh,

    Happy New year.

    Yes, you would have to create a patch and rebuild the yocto build environment if you are using the Yocto build. Or you could apply the patch to u-boot/kernel sources that is part of the installer.bin of the SDK offering.

    Let me know how it goes.

    Best Regards,

    Suren

  • Hi Suren,

    Happy New Year.

    Thankyou for your response.

    We are currently facing an issue while attempting to apply a patch for disabling CPU cores on the AM625 processor. The patch has been placed at the following location:

    Path:tisdk/sources/meta-ti/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb

    However, we are encountering an error during the patch application process. Below is the error message we are receiving:

    linux-ti-staging-rt-6.1.46+gitAUTOINC+b871cdee8c-r0b.arago1_tisdk_4_edgeai_0_edgeai_7 do_patch: Applying patch 'disable_cpu_core.patch' on target directory 'tisdk/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging-rt/6.1.46+gitAUTOINC+b871cdee8c-r0b.arago1_tisdk_4_edgeai_0_edgeai_7/git'
    CmdError('quilt --quiltrc tisdk/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging-rt/6.1.46+gitAUTOINC+b871cdee8c-r0b.arago1_tisdk_4_edgeai_0_edgeai_7/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch disable_cpu_core.patch
    patching file arch/arm64/boot/dts/ti/k3-am625-sk.dts
    Hunk #1 FAILED at 48.
    1 out of 1 hunk FAILED -- rejects in file arch/arm64/boot/dts/ti/k3-am625-sk.dts
    Patch disable_cpu_core.patch does not apply (enforce with -f)
    stderr: ')
    ERROR: Logfile of failure stored in: tisdk/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging-rt/6.1.46+gitAUTOINC+b871cdee8c-r0b.arago1_tisdk_4_edgeai_0_edgeai_7/temp/log.do_patch.933213
    ERROR: Task (tisdk/sources/meta-ti/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb:do_patch) failed with exit code '1'

    We have followed the steps outlined in the discussion on the TI E2E community forum (Link), but the issue persists.

    Could you please provide guidance on resolving this error? Additionally, if there are any updates, patches, or workarounds that we may have missed, we would appreciate your assistance in this matter.

    Regards,

    Kumar Ashutosh

  • Ashutosh,

    The error is pointing to patch not being applied and there is an error in the patch file. Can you cross check your patch file?

    Also, can you try to apply the patch on the u-boot source and just build the u-boot instead of the yocto build

    I can have your query routed to our yocto build expert for further assistance.

    Best Regards,

    Suren

  • Hi Suren,

    Thankyou for your response.

    We have found the issue in patch file and now we are able to apply patch and disable the CPU core.

    Regards,

    Kumar Ashutosh