This guide goes through the process of adding support for a Zmod hierarchical block to a Petalinux environment, so that a user may use a custom hardware design with Petalinux.
Section Requirements:
petalinux-config --get-hw-description=<path to .hdf folder>
&AXI_ZmodADC1410_1 { compatible = "generic-uio"; }; &amba_pl { axidma_chrdev: axidma_chrdev@0 { compatible = "xlnx,axidma-chrdev"; dmas = <&axi_dma_0 0>; dma-names = "rx_channel"; }; };
Important: Confirm that the name of each IP listed, in this case the axi_dma_0 and AXI_ZmodADC1410, match names in the Vivado project. If the IP is contained in a hierarchy, the name of the hierarchy should be prepended to the IP name (example: ZmodADC_0_AXI_ZmodADC1410).
petalinux-config
navigating the menu into Image Packaging configuration → Root filesystem type and selecting SD card.
petalinux-build
Note that this process may take anywhere from 15 to 60 minutes, depending on the computer used.
This process produces a FIT image called image.ub that contains the kernel, device tree and the root filesystem.
petalinux-package --boot --force --fsbl images/linux/zynqmp_fsbl.elf --fpga images/linux/system.bit --u-boot
and can be found in the ./images/linux folder.
See Zmod Base Library User Guide for instructions on setting up software examples for the chosen Zmod/s.
See the Eclypse Z7 Resource Center for more information on the Eclypse Platform.