I am using PetaLinux and Vivado to compile PS/PL projects for a Zybo z7-20 board. I would like to extend these projects to DMA between PS and PL. To this end, I'm trying to create a device tree entry under PetaLinux for the xilinx dma-proxy kernel driver by following this example:
I have succeeded in configuring PetaLinux to compile the kernel module dma-proxy.ko and to compile the user-space test program dma-proxy-test. These are bundled via petalinux-package, transmitted to the board via SD card, and are available when the board boots into linux.
My difficulty arises in the device tree. As I understand from the online documentation at the first link above, modification of the device tree is required to utilize the driver. Specifically, the section on the proxy device tree
3) under DTG-settings enter full path to an extra dts/dtsi file, save and exit
4) create the dts/dtsi file based on guidance in the first link above. The file I tried to use is called dma-proxy.dts and its entire contents appear below. The file may be improperly formatted: I have difficulty finding examples of Yocto dts/dtsi syntax online.
Question
mbritton
Hello:
I am using PetaLinux and Vivado to compile PS/PL projects for a Zybo z7-20 board. I would like to extend these projects to DMA between PS and PL. To this end, I'm trying to create a device tree entry under PetaLinux for the xilinx dma-proxy kernel driver by following this example:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1027702787/Linux+DMA+From+User+Space+2.0
based on the software available here:
https://github.com/Xilinx-Wiki-Projects/software-prototypes/tree/master/linux-user-space-dma
I have succeeded in configuring PetaLinux to compile the kernel module dma-proxy.ko and to compile the user-space test program dma-proxy-test. These are bundled via petalinux-package, transmitted to the board via SD card, and are available when the board boots into linux.
My difficulty arises in the device tree. As I understand from the online documentation at the first link above, modification of the device tree is required to utilize the driver. Specifically, the section on the proxy device tree
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1027702787/Linux+DMA+From+User+Space+2.0?_ga=2.122547469.780816548.1679153960-1996714108.1676942251&_gac=1.16575362.1678039293.EAIaIQobChMIsL2du6_F_QIVYgetBh0UfAbkEAAYASAAEgL7BfD_BwE#Proxy-Device-Tree
Following this series of steps:
1) petalinux-create --type project --name zyboZ7 --source Zybo-Z7-20-Petalinux-2022-1.bsp
2) petalinux-config -p PetaLinux/zyboZ7/
3) under DTG-settings enter full path to an extra dts/dtsi file, save and exit
4) create the dts/dtsi file based on guidance in the first link above. The file I tried to use is called dma-proxy.dts and its entire contents appear below. The file may be improperly formatted: I have difficulty finding examples of Yocto dts/dtsi syntax online.
5) petalinux-build -c kernel --project PetaLinux/zyboZ7
This command yields the error report below.
Can you pls advise?
Many thanks
Matthew
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now