05-14-2019 07:27 AM - edited 05-14-2019 07:28 AM
I have a custom ZynqMP board (i.e., custom FPGA design and custom PCB) and want to boot Linux on it. To gain more flexibility and control over the software stack, I'm building FSBL, U-Boot, etc. myself (as described in the Wiki) instead of using PetaLinux.
I'm kind of stuck at configuring U-Boot. PetaLinux uses the ZCU102 as a one-size-fits-all configuration for U-Boot, but it also generates the platform-top.h and platform-auto.h header files from the *.hdf file. How can I do this without PetaLinux? Is there a tool in the SDK that creates an appropriate U-Boot configuration for my design?
Should I instead create a U-Boot configuration manually, based on the ZCU102 template? I guess I have to copy psu_init_gpl.c/.h to the appropriate folders in the U-Boot source tree, is that correct?
05-14-2019 07:45 PM
05-15-2019 09:04 AM - edited 05-15-2019 09:14 AM
Correct, the Petalinux does alot of config work for the user. In the case with the u-boot, it extracts the info from the HDF, and creates the platform-user.h.
If you are using the OSL flow, then you could create this manually. However, most of this is board level info that you would need to create manually anyway for a custom board.
For your custom u-boot, you would need to manually create the
Update the Makefile to add your DTS:
u-boot-xlnx\include\configs\<CUSTOM_BOARD>.h (this is referenced in the defconfig)
The OSL flow is covered here: