Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • petalinux-create -t project --template zynqMP -n linux_images
  • cd linux_images
  • petalinux-config --get-hw-description=<path to HDF>
    • DTG Settings → (zcu102-rev1.0) MACHINE_NAME
  • petalinux-config -c kernel
    • For Petalinux  < 2019.1:
    • Device Drivers -> Userspace I/O drivers
      • <*> Userspace I/O platform driver with generic IRQ handling
      • <*> Userspace platform driver with generic irq and dynamic memory
    • For Petalinux 2019.1:
    • Device Drivers -> Userspace I/O drivers
      • <*> Userspace I/O platform driver with generic IRQ handling
      • <*> Userspace platform driver with generic irq and dynamic memory
      • <*> Xilinx AI Engine driver
  • Open the system-user.dtsi in linux-images\project-spec\meta-user\recipes-bsp\device-tree\files and make the mods below:

...


Place the BOOT.BIN and the image.ub onto the SD card and boot the kernel.

Test the Interrupt

To test, make sure that the UIO is probed:

...


You should see this registered as below:

To generate an interrupt, we can write to the ISR in the AXI GPIO. Below is a snippet of the register space
from the AXI GPIO product guide

For example, we can use the devmem utility to write to this register from the linux console:


Then rerun, the cat /proc/interrupts and the interrupt count should be incremented for the gpio:


If users would like to debug a Linux application in SDK, then they can follow on from here with the wiki article here

Related Links