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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,360件の閲覧回数
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.

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

2,124件の閲覧回数
vijaykumar_prat
Contributor II

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

0 件の賞賛
返信

2,231件の閲覧回数
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 件の賞賛
返信