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.
Thanks Igor, I reserved it using linux,usable-memory property and used mmap into userspace.
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!
-----------------------------------------------------------------------------------------------------------------------