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.

AM6442: Custom board - uboot porting

Part Number: AM6442
Other Parts Discussed in Thread: TMDX654IDKEVM, SYSCONFIG

Hello,

i would like to ask, maybe it is too simple question, but I really struggle with this topic.

Is there any "tutorial" or some notes about porting uboot to a custom board? I cannot find anything useful in Linux SDK package for this chip. Am I looking wrong? Can you please show me the right way?

We have custom board, based on AM6442, it is similar to SK-AM64 but there are differences. We also have Linux based system that is currently running on TMDX654IDKEVM and it is based on Linux from scratch approach. This system is booted by uboot from sdcard.

I'm compiling uboot from source, and there is component called sysfw, generated by k3-image-gen. I also discovered sysconfig tool and found out I should load k3-respat-tool from AM64 Linux SDK into it. Now I'm able to generate some of sources required by sysfw. But for examle I'm missing board-cfg.c, instead I have board-config.c with simmilar content but requiring some header files like tisci_boardcfg_constraints.h which are part of rtos SDK not Linux one. To me, this isn't seems to be correct.

Another two files required in k3-image-gen are sec-cfg.c and pm-cfg.c, these are not generated by sysconfig tool, and I don't have any idea where to obtain them. Am I supposed to create them manually? If so, where I can find proper documentation for them?

And I'm still not started digging around DDR memories, this will ve also funny topic. But as far as I know, DDR configuration is happening in SPL part of u-boot, so I can postpone it little bit.

So, my questions are, how boot related files are created? What is necessary steps to prepare custom uboot binary for this SoC?