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: 
Visitor mainvoid
Visitor
1,173 Views
Registered: ‎12-12-2013

Petalinux and device tree memory node problem

Hi all,

New to the Petalinux framework. Got the following issue.

HDF maps a region of PL DDR into the PS address space:

mmap.jpg

We want to be able to read this memory from the PS for debugging purposes.

 

The problem is, when using this HDF the petalinux build generates device tree where the mapped region is used as the main system memory window:

 

memory {
    device_type = "memory";
    reg = <0xa8000000 0x8000000>;
}

 

Which is not we want as u-boot and linux start using it.

My workaround so fas has been to override the memory node in

PROJECT_ROOT/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

 

The platform is UltraScale+ MPSoC. With 64-bit APU default memory node looks like this

memory {
   device_type = "memory";
   reg = <0x0 0x0 0x0 0x80000000 0x8 0x0 0x0 0x80000000>;
}

Can anyone suggest why Petalinux overrides it with the HDF region and how to avoid this?

 

Many thanks!

0 Kudos
2 Replies
Moderator
Moderator
1,162 Views
Registered: ‎06-27-2017

Re: Petalinux and device tree memory node problem

Currently there is no support to load/boot u-boot and Linux from High memory(64-bit). U-boot has to load from low memory(32-bit DDR address). 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Visitor mainvoid
Visitor
1,160 Views
Registered: ‎12-12-2013

Re: Petalinux and device tree memory node problem

Sorry, how is this related to the build framework overriding system memory layout?

0 Kudos