How to apply for large memory in user layer

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

How to apply for large memory in user layer

Jump to solution
681 Views
半醒的狐狸
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 Kudos
1 Solution
616 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
617 Views
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!
-----------------------------------------------------------------------------------------------------------------------

616 Views
半醒的狐狸
Contributor I

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

0 Kudos