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: BeagleBone PRU Training - Lab 4 - Make overlay file fails

Tool/software: Linux

I am working through the PRU Training Lab 4. I have been following along with the instructions so far and have made it to Lab 4.

I added the #include "am335x-boneblack-prucape.dtsi" to the bottom of the am335x-boneblack.dts file. I am a little lost though on where I should be. Since the next command-line is a make with cross compile arguments, I am using my Linux desktop. I am working in the folder:

user@linuxpc:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/board-support/linux-4.4.19+gitAUTOINC+db0b54cdad-gdb0b54cdad/arch/arm/boot/dts

Is this the correct location? It doesn't seem to specify the path to arch/arm/boot/dts

user@linuxpc:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/board-support/linux-4.4.19+gitAUTOINC+db0b54cdad-gdb0b54cdad/arch/arm/boot/dts$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtb-am335x-boneblack.dtb
make: *** No rule to make target 'dtb-am335x-boneblack.dtb'. Stop.

I am stuck on this step.

  • Hello,

    Justin Hadella1 said:
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtb-am335x-boneblack.dtb

    In this guide

    processors.wiki.ti.com/.../PRU_Training:_Hands-on_Labs

    is written :

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-boneblack.dtb
     

    But in your line there is ....dtb-am335x-boneblack.dtb  could you try as in the guide?
    Could you also try to execute the command in the /ti-processor-sdk-linux-am335x-evm-03.01.00.06/board-support/linux-4.4.19+gitAUTOINC+db0b54cdad-gdb0b54cdad directory.
    Hope this helps.
    BR
    Margarita
  • If I remove the dtb I get basically the same results

    user@linuxpc:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/board-support/linux-4.4.19+gitAUTOINC+db0b54cdad-gdb0b54cdad/arch/arm/boot/dts$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-boneblack.dtb
    make: *** No rule to make target 'am335x-boneblack.dtb'. Stop.

    I ran the same make command down several levels as indicated. The goal here is to just compile the overlay.

    user@linuxpc:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/board-support/linux-4.4.19+gitAUTOINC+db0b54cdad-gdb0b54cdad$ make ARCH=arm CROSS_COMPILE=arm-linu
    x-gnueabihf- am335x-boneblack.dtb
    scripts/kconfig/conf --silentoldconfig Kconfig
    ***
    *** Configuration file ".config" not found!
    ***
    *** Please run some configurator (e.g. "make oldconfig" or
    *** "make menuconfig" or "make xconfig").
    ***
    scripts/kconfig/Makefile:37: recipe for target 'silentoldconfig' failed
    make[2]: *** [silentoldconfig] Error 1
    Makefile:531: recipe for target 'silentoldconfig' failed
    make[1]: *** [silentoldconfig] Error 2
    make: *** No rule to make target 'include/config/auto.conf', needed by 'scripts'. Stop.

    At one point, I tried to make oldconfig, then ran the make dtb file again. This time, it brought up a complicated looking menu.

  • In case anyone else has the same problems, I found some links which were extremely helpful.

    processors.wiki.ti.com/.../RPMsg_Quick_Start_Guide
    processors.wiki.ti.com/.../Linux_Kernel_Users_Guide

    There were some missing steps in the PRU Training -- Lab 4. These two links cover the missing content.