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: Linux SDK AM57xx 5.01.00.11 Build Error

Part Number: AM5728


Tool/software: Linux

Hi,

I am using AM571x EVM. Installed Linux SDK AM57xx-evm-05.01.00.11 SDK. I am using Ubuntu 16.04

Installation of SDK is successful. I am trying to build the linux.

make clean, make linux is working fine

But make linux_install is giving following error:

cp: will not overwrite just-created '/home/pranaykumark/projects/stryker/ti-processor-sdk-linux-am57xx-evm-05.01.00.11/targetNFS/boot/am57xx-beagle-x15.dtb' with '/home/pranaykumark/projects/stryker/ti-processor-sdk-linux-am57xx-evm-05.01.00.11/board-support/linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00/arch/arm/boot/dts/am57xx-beagle-x15.dtb'
cp: will not overwrite just-created '/home/pranaykumark/projects/stryker/ti-processor-sdk-linux-am57xx-evm-05.01.00.11/targetNFS/boot/am57xx-beagle-x15-revc.dtb' with '/home/pranaykumark/projects/stryker/ti-processor-sdk-linux-am57xx-evm-05.01.00.11/board-support/linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00/arch/arm/boot/dts/am57xx-beagle-x15-revc.dtb'
Makefile:459: recipe for target 'linux-dtbs_install' failed
make: *** [linux-dtbs_install] Error 1

It looks like it is trying to copy two files with same name, from different locations to a same location with a single copy command. Hence copy command is giving error. Is there any fix or patch available for this issue ?

Thanks and Regards,

Pranay kumar

  • Hi Kumar,

    I will try this on my side and come back to you. meanwhile please make sure you are aligned with below pointers:

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

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

    Regards,
    Pavel
  • Kumar,

    I have the same warning on my side.

    But I see that PSDK/targetNFS/boot/am57xx-beagle-x15.dtb file is actually updated/replaced. So when you make changes in PSDK/board-support/linux-4.14.67/arch/arm/boot/dts/am57xx-beagle-x15.dts, then generate new am57xx-beagle-x15.dtb file, I see that this file is actually copied to targetNFS/boot/ folder, even this warning message.

    Regards,
    Pavel
  • Hi Pavel, 

    Thanks for the response. Yes the file is being updated. Actually the issue is the error comes at the following line of the make file:

    Line number: 468

    cp -f `find $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/ -regex '.*\.dtbo?'` $(DESTDIR)/boot/


    In the above command, it is trying to find all the files with extension dtb and dtbo present in $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/  folder and copy to the boot folder. 

    The result of find command is as follows:

    # find arch/arm/boot/dts/ -regex '.*\.dtbo?'
    arch/arm/boot/dts/ti/mt9t111.dtbo
    arch/arm/boot/dts/ti/am57xx-evm-common.dtbo
    arch/arm/boot/dts/ti/dra71-evm.dtb
    arch/arm/boot/dts/ti/ov10635.dtbo
    arch/arm/boot/dts/ti/dra71-evm-lcd-auo-g101evn01.0.dtbo
    arch/arm/boot/dts/ti/dra71-evm-nand.dtbo
    arch/arm/boot/dts/ti/am57xx-beagle-x15.dtb
    arch/arm/boot/dts/ti/am57xx-beagle-x15-revc.dtb
    arch/arm/boot/dts/ti/am57xx-evm.dtbo
    arch/arm/boot/dts/ti/am572x-evm-jailhouse.dtbo
    arch/arm/boot/dts/ti/am57xx-evm-reva3.dtbo
    arch/arm/boot/dts/am57xx-evm-cam-ov10635.dtb
    arch/arm/boot/dts/am572x-idk-lcd-osd101t2587-jh.dtb
    arch/arm/boot/dts/am57xx-evm-reva3-jailhouse.dtb
    arch/arm/boot/dts/am574x-idk-pru-excl-uio.dtb
    arch/arm/boot/dts/am57xx-evm-jailhouse.dtb
    arch/arm/boot/dts/am57xx-evm-reva3-cam-mt9t111.dtb
    arch/arm/boot/dts/am571x-idk.dtb
    arch/arm/boot/dts/am572x-idk-lcd-osd101t2045-jh.dtb
    arch/arm/boot/dts/am574x-idk-lcd-osd101t2587.dtb
    arch/arm/boot/dts/am574x-idk.dtb
    arch/arm/boot/dts/am572x-idk-lcd-osd101t2587.dtb
    arch/arm/boot/dts/am57xx-evm-reva3-cam-ov10635.dtb
    arch/arm/boot/dts/am571x-idk-pru-excl-uio.dtb
    arch/arm/boot/dts/am574x-idk-pps.dtb
    arch/arm/boot/dts/am57xx-evm.dtb
    arch/arm/boot/dts/am572x-idk.dtb
    arch/arm/boot/dts/am572x-idk-pps.dtb
    arch/arm/boot/dts/am572x-idk-pru-excl-uio.dtb
    arch/arm/boot/dts/am571x-idk-lcd-osd101t2587.dtb
    arch/arm/boot/dts/am571x-idk-lcd-osd101t2045.dtb
    arch/arm/boot/dts/am57xx-evm-reva3.dtb
    arch/arm/boot/dts/am574x-idk-jailhouse.dtb
    arch/arm/boot/dts/am57xx-beagle-x15.dtb
    arch/arm/boot/dts/am571x-idk-pps.dtb
    arch/arm/boot/dts/am57xx-evm-cam-mt9t111.dtb
    arch/arm/boot/dts/am57xx-beagle-x15-revc.dtb
    arch/arm/boot/dts/am57xx-beagle-x15-revb1.dtb
    arch/arm/boot/dts/am572x-idk-lcd-osd101t2045.dtb
    arch/arm/boot/dts/am572x-idk-jailhouse.dtb

     


    If you observe the above output both am57xx-beagle-x15.dtb and am57xx-beagle-x15-revc.dtb files are present twice in boot/dts folder. Once in boot/dts folder and once in boot/dts/ti folder. 

    Hence the copy command is copying those files twice to destination directory with single command, which gives cp: will not overwrite just-created error. 

    I think make file has to be updated to resolve this issue. 

    Now if I call make install command, first linux-dtbs_install is being called which gives above error. make install returns error and stops the installation. So all the install related functions called after linux-dtbs_install function are not being executed. 

    Regards,

    Pranay kumar

     

  • Kumar,

    Yes, I agree with you. I will notify the PSDK team for this issue.

    Regards,
    Pavel
  • Hi Pavel,

    I'm seeing this issue too.  This step works with 5.00.00.15, but not with 5.01.00.11.  Any info on when this issue is likely to be resolved?

    Best regards,

    Bob.

  • Bob,

    This issue is logged under PLSDK-2495. This should be fixed for the next version of the PSDK 5.02

    Regards,
    Pavel
  • Hi Pavel,

    Thanks, I'll try it again when the next version is out.

    BR, Bob.

  • Pranay Kumar,

    If you have no more questions related to the subject, please close/verify/resolve this thread.

    Regards,
    Pavel