Hello, I am having problems trying to compile custom module exported from Vivado to petalinux on Zybo z7-10.
All tools are from 2022.1 build.
Steps I have performed so far:
1) Used Vivado to generate a custom IP and added it to the block design as per UG1165 Chapter 7.
2) Exported blink.h, blink.c, design.xsa and system.bit files from Vivado.
1) Made and SD card with 2 partitions as described in UG1144.
2) Created a template project with --get-hw-description.
3) Added template module via petalinux-create -t modules --name blink --enable
4) Changed project-spec/meta-user/recipes-modules/blink/blink.bb to include blink.h
5) Copied blink.h from vivado to /files/ and changed blink.c (autogenerated) by adding #include "blink.h"
6) Tried to modify makefile to compile but failed as when I do petalinux-build I either get : missing xil_types.h error during compilation OR it compiles with warning "modules.symvers not found" but the module doesn't show with "modprobe blink" when connected via terminal (nor shows in unpacked rootfs)
Note: when I compile a template project with a template module, and upload it onto the SDcard, then my board responds to "modprobe blink", however I would like to be able to use PL from vivado as a driver in linux.
I want to do a simple project where I can use linux driver to blink PL connected LEDs, please help.