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: How to find dts file for u-boot

Part Number: AM625


Hi Ti team,

Working on AM62X Yocto build ,SDK version : 09_00_00_03.

SOC used : AM625,

Machine name  :AM62XX-EVM.

my host machine : ubuntu 22.04

I built the AM625 EVL with the yocto SDK v9.1. and the command used to build SDK using the below command.

MACHINE=am62xx-evm bitbake -k tisdk-default-image

I have two queries as mentioned below.

1. How I can find which dts files are used for u-boot as I can see u-boot source available in multiple directory like am62xx_evm_k3r5_hs_se-linux-gnueabi, am62xx_evm_k3r5_hs_fs-linux-gnueabi, am62xx_evm_k3r5_gp-linux-gnueabi, and am62xx_evm-linux?

2, As I can see, To enable DFU support, we need to rebuild U-Boot using defconfig am62x_evm_r5_usbdfu_config instead of am62x_evm_r5_config  but we have am62x_evm_r5_deconfig file present in uboot source so is it correct to mention config instead of deconfig? and we need to change defconfig in ti-tisdk-makefile_1.0.bb?

Thanks,

Abhishek Lakhara

  • 1. How I can find which dts files are used for u-boot as I can see u-boot source available in multiple directory like am62xx_evm_k3r5_hs_se-linux-gnueabi, am62xx_evm_k3r5_hs_fs-linux-gnueabi, am62xx_evm_k3r5_gp-linux-gnueabi, and am62xx_evm-linux?

    The best is to look at the U-Boot defconfig files, both for R5 and A53, as they list all DTS files involved with a particular build.

    2, As I can see, To enable DFU support, we need to rebuild U-Boot using defconfig am62x_evm_r5_usbdfu_config instead of am62x_evm_r5_config  but we have am62x_evm_r5_deconfig file present in uboot source so is it correct to mention config instead of deconfig? and we need to change defconfig in ti-tisdk-makefile_1.0.bb?

    If you want to comprehend this defconfig change in the context of generating entire filesystem images with Yocto you need to update the Yocto recipes. The makefile you found is related to building the TISDK which is usually not what you use Yocto for as an end-user. A quick search reveals the below... Try changing the recipe for the am62xx-evm for your new defconfig and see if it does the trick.

    a0797059@dasso:~/tisdk/am62xx-evm/sources (dev)
    $ grep -r -C 5 am62x_evm_r5_defconfig
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf-
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf-SYSFW_SOC = "am62x"
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf-SYSFW_CONFIG = "evm"
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf-SYSFW_SUFFIX = "gp"
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf-
    meta-ti/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf:UBOOT_MACHINE = "am62x_evm_r5_defconfig"
    --
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf-
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf-SYSFW_SOC = "am62x"
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf-SYSFW_CONFIG = "evm"
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf-SYSFW_SUFFIX = "hs-fs"
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf-
    meta-ti/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf:UBOOT_MACHINE = "am62x_evm_r5_defconfig"

    Regards, Andreas

  • Is it possible to have multiple machine.conf? 

    am62xx-evm.conf -> Machine configuration for the TI AM62XX EVM
    am62xx-evm-k3r5.conf ->Machine configuration for the TI AM62xx EVM (R5F core)

    if I complied with `MACHINE=am62xx-evm bitbake -k tisdk-default-image` then am62xx-evm.conf will use?

  • Hi Abhishek,

    if I complied with `MACHINE=am62xx-evm bitbake -k tisdk-default-image` then am62xx-evm.conf will use?

    It'll always use both the "regular" config and the *-k3r5.conf config for our AM6x devices. It uses a Yocto/Bitbake feature called "Multi Config" in order to achieve that. You can learn more here: https://docs.yoctoproject.org/dev/dev-manual/building.html#building-images-for-multiple-targets-using-multiple-configurations

    Regards, Andreas

  • Thanks you for the explaination.