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.

Linux/AM5728: U-boot customization

Part Number: AM5728


Tool/software: Linux

Hello

It is a question from our customers.
They are making a custom board of am5728 and want to remove the SATA driver from U-Boot.
I tried searching bitbake recipes, but I do not know.
How can they be changed?

Best Regards,
Kouji Nishigata

  • The software team have been notified. They will respond here.
  • Hello Kouji,

    To not to use the sata driver, change its status to "disabled" in u-boot-<version>/arch/arm/dts/am57xx-beagle-x15-common.dtsi file.

    &sata {
    status = "disabled";
    };

    Best regards,
    Kemal
  • Hello Kemal

    Thank you for answering.

    This environment is as following web page.
    processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK
    I found the same file in Cross-compile Toolchain.
    ~/tisdk/build/arago-tmp-external-linaro-toolchain/work-shared.am57xx-evm/kernel-source/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

    in this case
    ~/tisdk/build $ MACHINE=am57xx-beagle-x15 bitbake u-boot-ti-staging
    Does this build with am57xx-beagle-x15.dts setting?

    Also, if MACHINE=am57xx-evm, is am57xx-evm.dts setting used?

    There is no SATA description in the am57xx-evm.dts file.
    Will not SATA drivers be incorporated in u-boot for am57xx-evm?

    Best Regards,
    Kouji Nishigata
  • I mean ~/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/u-boot-ti-staging/2017.01+gitAUTOINC+590c7d7fe1-r12/git/arch/arm/dts/am57xx-beagle-x15-common.dtsi file. You are confusing it with the kernel's device tree. There are two separate device tree blobs one for U-Boot and one for Linux.

  • Hello Kemal

    Thank you for answering.
      I confirmed the following files "~/tisdk/build/arago-tmp-external-linaro-toolchain/work/".
    The dts file for U-Boot included the setting of beagle-x15 even if the target is am57xx-evm.
    It seems that these files are generated by bitbake, but will they be overwritten by do_configure or erased by clean or cleanall?

    Best Regards,
    Kouji Nishigata
  • Yes. First do MACHINE=am57xx-evm bitbake u-boot-ti-staging -c do_clean and MACHINE=am57xx-evm bitbake u-boot-ti-staging -c do_unpack change the source then do MACHINE=am57xx-evm bitbake u-boot-ti-staging -c do_compile. Otherwise make a patch which changes this device tree file and append it to u-boot-ti-staging_2017.01.bb recipe or use the Processor SDK to compile the U-Boot source.