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.

AM57x U-boot porting questions

I am looking for information to port the am57xx UBoot image to our custom hardware.  Can someone point me to a document or other info?

the only Wiki I find is: 

http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_UBoot_Board_Port

However this document is am335x  specific and talks about folders in the linux sdk that don't exist in the am57xx sdk.  For example: 'board-port-labs".

In addition, the document mentions finding a version of u-boot image with a 'git tag' of  "xxxx-template", which doesn't seem to exist either.

In conclusion, there doesn't seem to be much if anything in this document that is usable for the am57xx U-Boot port,  so I am looking for documents or info that would help me.

  • I will ask the software team to comment.
  • Hi,

    You are correct, the above link does not apply for AM57xx device.  I am not aware of a wiki that provides step-by-step guide for porting u-boot to a custom design... this is a very use case dependent task.

    Basically what you need to change is:

     pinmux settings need to match your hardware -> related file is board/ti/am57xx/mux.c

     board file to describe your custom board -> related file is board/ti/am57xx/board.c

     DDR settings -> related files: board/ti/am57xx/board.c, arch/arm/cpu/armv7/emif.c & arch/arm/cpu/armv7/sdram.c

     Change the u-boot config file, if needed -> related file is include/configs/am57xx_evm.h

    Hope this helps.

    Best Regards,

    Yordan

  • Thank you.

    It seems to me that the  emif.c & sdram.c files you mentioned (arch/arm/cpu/armv7/emif.c &  arch/arm/cpu/armv7/sdram.c) are actually in the arch/arm/cpu/armv7/omap5/   directory.  Can you please verify?

    In addition it would seem that any/multiple files in this same directory arch/arm/cpu/armv7/omap5  may be candidates for change in U-Boot porting to custom hardware.   Is this correct?

    Finally, it appears that TI provides an EMIF Tools: Register Configuration  tool (xls spreadsheet) that provides register data that is the source of at least some of the custom design data to be  inserted into some of the files mentioned above for the U-Boot port.

  • Hi,

    Yes, you're correct , I've missed the omap5 part of the path, sorry about that. Also don't forget the ddr part in board/ti/am57xx/board.c. 

    Tom Antles said:
    In addition it would seem that any/multiple files in this same directory arch/arm/cpu/armv7/omap5  may be candidates for change in U-Boot porting to custom hardware.   Is this correct?

    Besides the ddr settings, maybe only the hw_data.c, and that is only if you wish to change some prcm settings. 

    Tom Antles said:
    Finally, it appears that TI provides an EMIF Tools: Register Configuration  tool (xls spreadsheet) that provides register data that is the source of at least some of the custom design data to be  inserted into some of the files mentioned above for the U-Boot port.

    The available tools are located here: 
      http://www.ti.com/product/AM5728/toolssoftware 

    Look in the Development tools (5) section. For DDR initialization tips you could refer to AM57xx GEL files available with the CCS installation. 

    Another useful link is: http://processors.wiki.ti.com/index.php/Common_DDR_Issues 

    Hope this helps. 

    Best Regards, 
    Yordan