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.

SK-AM62: There was a problem compiling the device tree

Part Number: SK-AM62
Other Parts Discussed in Thread: AM625

Hi team,

After compiling the downloaded kernel, an Image is generated. Next, an error occurred while compiling the device tree: 

In the compiled kernel, the files in /arch/ARM62/boot/DTS/ti are shown in the following figure:

There isn't the K3-am625-SK.DTS file like the kernel in the SDK, is it required to copy it from the kernel of the SDK? The downloaded kernel is compiled using tisdk-am62xx-EVM-RT_defconfig and make menuconfig in the SDK kernel. 

Reference link for the steps is here: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/linux/Foundational_Components_Kernel_Users_Guide.html#id12

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    There isn't the K3-am625-SK.DTS file like the kernel in the SDK, 

    Where does the kernel source come from? not from the Processor SDK?

  • Hi,

    Thank you for the support.

    Where does the kernel source come from? not from the Processor SDK?

    No, it was downloaded from TI.com, and the configuration files used when building the kernel are defconfig and tisdk-AM62xx-EVM-RT_defconfig in the SDK.

    Thanks and regards,

    Cherry

  • Hi Cherry,

    Can you please attach the full log showing the compiling process? I tried 'make ... ti/k3-am625-sk.dtb' in SDK8.6 kernel folder but didn't see any issue.

  • Hi,

    Can you please attach the full log showing the compiling process?

    ubuntu@ubuntu:~/linux_kernel/linux-5.10.176$ make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- Image
    SYNC include/config/auto.conf.cmd
    UPD include/config/kernel.release
    UPD include/generated/utsrelease.h
    CALL scripts/checksyscalls.sh
    CALL scripts/atomic/check-atomics.sh
    CHK include/generated/compile.h
    CC init/version.o
    AR init/built-in.a
    CC kernel/sys.o
    CC kernel/module.o
    UPD kernel/config_data
    GZIP kernel/config_data.gz
    CC kernel/configs.o
    AR kernel/built-in.a
    CC drivers/base/firmware_loader/main.o
    AR drivers/base/firmware_loader/built-in.a
    AR drivers/base/built-in.a
    AR drivers/built-in.a
    CC net/ethtool/ioctl.o
    AR net/ethtool/built-in.a
    AR net/built-in.a
    GEN .version
    CHK include/generated/compile.h
    UPD include/generated/compile.h
    CC init/version.o
    AR init/built-in.a
    LD vmlinux.o
    MODPOST vmlinux.symvers
    MODINFO modules.builtin.modinfo
    GEN modules.builtin
    LD .tmp_vmlinux.kallsyms1
    KSYMS .tmp_vmlinux.kallsyms1.S
    AS .tmp_vmlinux.kallsyms1.S
    LD .tmp_vmlinux.kallsyms2
    KSYMS .tmp_vmlinux.kallsyms2.S
    AS .tmp_vmlinux.kallsyms2.S
    LD vmlinux
    SORTTAB vmlinux
    SYSMAP System.map
    OBJCOPY arch/arm64/boot/Image
    ubuntu@ubuntu:~/linux_kernel/linux-5.10.176$ make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- ti/k3-am625-sk.dtb
    
    DTC arch/arm64/boot/dts/ti/k3-am625-sk.dtb
    Error: arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi:233.4-5 syntax error
    FATAL ERROR: Unable to parse input tree
    scripts/Makefile.lib:326: recipe for target 'arch/arm64/boot/dts/ti/k3-am625-sk.dtb' failed
    make[1]: *** [arch/arm64/boot/dts/ti/k3-am625-sk.dtb] Error 1
    Makefile:1377: recipe for target 'ti/k3-am625-sk.dtb' failed
    make: *** [ti/k3-am625-sk.dtb] Error 2

    (The files in arch/ARM64/boot/DTS/ti in the linux5.10.176 kernel, which is downloaded by the customer, are AM65 only, so copy the ti file from the SDK kernel to linux5.10.176 to compile)

    There are ti-owned device tree files in the kernel folder /arch/arm62/boot/DTS/ti in the SDK. In kernel /arch/arm62/boot/DTS/ti downloaded from the Linux official website, only device tree files for SK-AM65 are available. Is it possible to copy the device tree files for the AM625 from /arch/arm62/boot/DTS/ti in the SDK directly to the downloaded kernel? 

    Thanks and regards,

    Cherry

  • Hi Cherry,

    Your messages are confusing, but

    Is it possible to copy the device tree files for the AM625 from /arch/arm62/boot/DTS/ti in the SDK directly to the downloaded kernel? 

    generally speaking, no (unless you know what you are doing, then you won't come here asking such questions...).