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.

AM625: Disabling CPU in device tree doesn't work

Part Number: AM625

Hello,

I need to disable cpus as explain the  TI Linux Academy example:

https://dev.ti.com/tirex/explore/node?node=A__AGMop5fjikXYw819LJNi-w__linux_academy_am62x__XaWts8R__LATEST

I added the following lines in k3-am625-sk.dts in the Linux device tree.

cpus {
                /delete-node/ cpu@1;
                /delete-node/ cpu@2;
                /delete-node/ cpu@3;
};

But I got then error below :

|   DTC     arch/arm64/boot/dts/ti/k3-am625-sk.dtb
| Error: /workspace/sitara/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am62xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am625-sk.dts:35.1-5 syntax error
| FATAL ERROR: Unable to parse input tree
| scripts/Makefile.lib:328: recipe for target 'arch/arm64/boot/dts/ti/k3-am625-sk.dtb' failed
| make[2]: *** [arch/arm64/boot/dts/ti/k3-am625-sk.dtb] Error 1
| /workspace/sitara/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am62xx-evm/kernel-source/Makefile:1365: recipe for target 'ti/k3-am625-sk.dtb' failed
| make[1]: *** [ti/k3-am625-sk.dtb] Error 2
| /workspace/sitara/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am62xx-evm/kernel-source/Makefile:185: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: /workspace/sitara/tisdk/build/arago-tmp-external-arm-glibc/work/am62xx_evm-linux/linux-ti-staging/5.10.140+gitAUTOINC+5e63ae91b2-r0b.arago5/temp/run.do_compile.1044445:1 exit 1 from 'exit 1'
| ERROR: Execution of '/workspace/sitara/tisdk/build/arago-tmp-external-arm-glibc/work/am62xx_evm-linux/linux-ti-staging/5.10.140+gitAUTOINC+5e63ae91b2-r0b.arago5/temp/run.do_compile.1044445' failed with exit code 1
ERROR: Task (/workspace/sitara/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_compile) failed with exit code '1'

Regards,

Alexis.

  • Hi Alexis,

    Please use the following kernel patch:

    diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    index 4b9661f1adef..ad7f7c619fa3 100644
    --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    @@ -48,6 +48,19 @@ opp-1400000000 {
                            clock-latency-ns = <6000000>;
                    };
            };
    +
    +       cpus {
    +               cpu-map {
    +                       cluster0 {
    +                               /delete-node/ core1;
    +                               /delete-node/ core2;
    +                               /delete-node/ core3;
    +                       };
    +               };
    +               /delete-node/ cpu@1;
    +               /delete-node/ cpu@2;
    +               /delete-node/ cpu@3;
    +       };
     };