We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 
Visitor gvi
Registered: ‎02-19-2014

Device tree modification to access to BRAM in PL

Hello all,


Do I need to modify the device tree (DTB) to access from Linux to two different BRAMs programmed in the PL? I'm using Zynq, an the access is done through M_AXI_GPx.


I have implemented a ping-pong buffering method in the PL in order to read frames from a camera, but when I try to access to these BRAMs, Linux crashes and I don't know the reason. I use mmap in linux to access to these BRAMs.

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
Registered: ‎09-10-2008

Re: Device tree modification to access to BRAM in PL

Have you tried to verify the h/w is working before running the Linux app?  I would run something in standalone mode first to verify that the h/w design up and running and working.  Or from Linux command line you could use devmem to try to read/write the memory.


The device tree is up to you as it depends on what you're doing.  A device driver typically reads the values from the device tree and then would ioremap the address so that it can access the memory.  It sounds like right now you may just be using an app to get to the memory.



0 Kudos
Registered: ‎07-26-2019

Re: Device tree modification to access to BRAM in PL

Iam using dev/mem for accessing BRAM through Linux. I want to read and write to Bram. I created block diagram in vivado and also generated the boot files accordingly. While compiling the memory map c++ program on zcu102 I did not get any errors. Object file got generated. But while executing that object file not giving me any out on gtk terminal. Instead it is sticking there. Btw, I did not changed anything in my .dtb file . Is it mandatory to change anything? If not can you give the solution for this!!
0 Kudos