How to apply for large memory in user layer

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

How to apply for large memory in user layer

ソリューションへジャンプ
974件の閲覧回数
半醒的狐狸
Contributor I

How do I request more than 400M memory at the user layer?

I tried malloc and mmap, malloc failed to return, mmap application was successful, but the kernel crashed during initialization。

my board is MCIMX7SABRE

thanks!!

0 件の賞賛
返信
1 解決策
909件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi 益 李

one can try "reserved-memory" parameter

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 

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

元の投稿で解決策を見る

2 返答(返信)
910件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi 益 李

one can try "reserved-memory" parameter

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 

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

909件の閲覧回数
半醒的狐狸
Contributor I

it's usefull ,i malloc 512M memory successfully,thanks。

0 件の賞賛
返信