How to reserve portion of RAM in IMX7D and map it to userspace ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to reserve portion of RAM in IMX7D and map it to userspace ?

1,594 Views
vijaykumar_prat
Contributor II

Hello all,

In IMX7D Sabre development board, there is 1GB ram available. How can I reserve some portion of ram((I need min 10Mb) and map it into userspace in linux ? I have seen that there is "linux,usable-memory"  property in dts to mention the memory used by linux. Using that may be I can reserve last 10mb, but how can I map and use it in userspace ? Can mmap works in this case also ?

Regards,

Vijay.

Labels (2)
0 Kudos
Reply
2 Replies

1,358 Views
vijaykumar_prat
Contributor II

Thanks Igor, I reserved it using linux,usable-memory property and used mmap into userspace.

0 Kudos
Reply

1,465 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vijay

one can try dts "reserved" property

imx7d.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt 

How can I reserve a block of memory from the Linux kernel? - Unix & Linux Stack Exchange 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply