How to apply for large memory in user layer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to apply for large memory in user layer

跳至解决方案
1,432 次查看
半醒的狐狸
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 解答
1,367 次查看
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 回复数
1,368 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

1,367 次查看
半醒的狐狸
Contributor I

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

0 项奖励
回复