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.

AM5728: Cannot build PDK custom board

Part Number: AM5728


I have followed all of the steps in "3.1.3.6.1. Instructions to add custom Board to the PDK build" in the Processor SDK RTOS user guide. But when I get to the end and run the gmake instruction, it tells me there is no rule for board_lib. Examining the makefile I see that there is indeed no rule for board_lib. What's going on?

  • Please share the full build log and what steps you have completed based on User's Guide.

  • Thanks for your help, As stated, I have followed all the steps (10 of them) in section 3.1.3.6.1, and the 'full build log', if you can call it that, is:

    C:\ti\pdk_am57xx_1_0_17\packages>pdksetupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
        SDK_INSTALL_PATH        : C:/ti
        PDK_INSTALL_PATH        : C:/ti/pdk_am57xx_1_0_17/packages
        GMAKE_INSTALL_PATH      : C:/ti/xdctools_3_55_02_22_core
        PDK_SOC                 : am57xx
        PDK_VERSION             : 1_0_17
        RULES_MAKE              : C:/ti/pdk_am57xx_1_0_17/packages/ti/build/Rules.make
    ***************************************************
    C:\ti\pdk_am57xx_1_0_17\packages>gmake board_lib LIMIT_SOCS=am572x LIMIT_BOARDS=phytecRdk
    gmake: *** No rule to make target 'board_lib'.  Stop.
     

    Is that what you mean? Thing is, it never gets as far as building anything (so therefore no log!) because, as stated, there is no rule for board_lib.

     
  • Going thru the makefile, it looks like "board_lib" is not supported anymore.

    If you type "gmake help", it will list the supported build target. You can try "all_libs" instead of "board_lib".

  • Thanks for your help, but that is not quite the answer. I suspect what you say will work but it will attempt to build the whole PDK, not just the board libraries. The answer is hinted at elsewhere in the user guide. Section 2.3.4 to be specific:

    2.3.4. Building of libraries of individual PDK components

    Migration: Building individual drivers’ librabries/apps of PDK from PDK’s top level makefile is not supported

    Impact Scope: Applicable for PDK top level makefile

    Additional Details: Prior to this release, libraries/applications of drivers included in pdk (pdk_xx/packages/ti) could be built from the top level makefile (pdk_xx/packages/makefile) using commands like “make uart_lib/uart_apps”. This is no longer supported. Instead, the libraries and applications could either be built using “make all” from the top level makefile or issuing “make libs/apps” from within the module’s directory.

    It is a great pity the other part of the guide has not been updated to reflect this.

    SO: I need to cd to packages/ti/board and then run 'make all' with the relevant LIMIT_SOCS, LIMIT_BOARDS and LIMIT_CORES settings.

    BUT: this still doesn't work: it does not find anything to make. It turns out there is a missing step in section 3.1.3.6: the custom board name needs to be added to the BOARD_LIST_am572x setting in the packages/ti/build/soc_info.mk file, like this:

    BOARD_LIST_am572x = evmAM572x idkAM572x myCustomBoard

    Then the new library will build.

    Is the user guide available as a PDF? The online version is all very well, but what happens when I lose my internet connection? And I would also like to keep a copy of the guide I am using as reference, I do not trust TI to keep this version available when it has been updated.

    Cheers,

    John.

  • Hi John,

    Thanks for the update.

    The documentation can be downloaded from http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/Documentation_Tarball.html

    Regards,
    Stanley

  • Hi Stanley,

    That's excellent, thank you.

    Cheers,

    John.