UPGRADE YOUR BROWSER

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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
201 Views
Registered: ‎05-31-2018

Accessing BRAM in Linux Kernel hang

Hi everyone,

I was trying to get the example working here with petalinux: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842412/Accessing+BRAM+In+Linux

I'm using petalinux 2019.1 for this. Basically, when I add the device tree modifications to my system-user.dtsi file: 

/include/ "system-conf.dtsi"
/ {
   #address-cells = <2>;
   #size-cells = <2>;
   memory {
       device_type = "memory";
       reg = <0x0 0x0 0x0 0x80000000>, <0x0 0xA0000000 0x0 0x8000>, <0x00000008 0x00000000 0x0 0x80000000>;
   };
   reserved-memory {
       ranges;
       reserved {
           reg = <0x0 0xa0000000 0x0 0x8000>;
       };
   };
};
&&axi_bram_ctrl_0 {
    status = "disabled";
};

I get a petalinux-build error. When I take out the &&axi_bram_ctrl_0 portion, I do not get a build error, but my kernel hangs upon starting the boot out of u-boot. Is anyone able to try this example and get it working with the simple bram controller in the wiki?

0 Kudos
1 Reply
Contributor
Contributor
46 Views
Registered: ‎05-31-2018

Re: Accessing BRAM in Linux Kernel hang

I have also tried using a single ampersand, as in:

&axi_bram_ctrl_0 {
status = "disabled";
};

Anyone have a chance to look at this?
 

0 Kudos