Jump to content
  • 0

Zybo, Petalinux, Devicetree, reserved-memory


Unbekannt

Question

Hi Everyone,

im working on project in which i need to write measurement values from the PL's domain into the PS' memory, for which I have implemented logic to handle the communication with one of the AXI-HP ports. Sofar it is it working out in Simulation, but when it comes to implentations in petalinux, configured with respective xsa file, in runtime nothing seems to get through.

I've read that it is neccessary to modify the device-tree of the dedicated project in order reserve some region in the memory, that can be used by the PL. But when i try to peek at it in the runtime of petalinux, it seems to be occupied by complete different data.

My modification of the device-tree is the following:

reserved-memory 
{  
  #address-cells = <2>;
  #size-cells = <2>; 	
  ranges;
  reserved: buffer@0 {
    no-map;
    reg = <0x0 0x10000000 0x0 0x10000000>;
  };
};

reserved-driver@0 
{
  compatible = "xlnx,reserved-memory";
  memory-region = <&reserved>;
};

If you ran into something similar, or might suspect what error i made?

Best Regards, and looking forward to possible answers.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

20 hours ago, Unbekannt said:

But when i try to peek at it in the runtime of petalinux, it seems to be occupied by complete different data.

Did you recognized the data or you were expecting to be filled with zeros instead of random data?

If there is still a issue check this <for 32-bit Cortex-A9 Zynq>:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841683/Linux+Reserved+Memory

Also you can try to reserve a different section of memory.

Link to comment
Share on other sites

  • 0
41 minutes ago, Ionel said:

Did you recognized the data or you were expecting to be filled with zeros instead of random data?

The area was expected to be filled with a predetermined sequence of value.

Thank you, i'll have a look at the link you've provided.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...