How to add reserved-memory in dts on imx7?

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

How to add reserved-memory in dts on imx7?

跳至解决方案
2,366 次查看
ZhijianYe
Contributor II

Hi,

I want to add reserved-memory in dts on imx7. Would you show me?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,345 次查看
joanxie
NXP TechSupport
NXP TechSupport

yes, if you need to change the memory for gpu, you can add "gpumem=xxx" in your uboot command, for more detailed information, pls refer to the document as below:

"https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Memory-Management-on-i-MX6-Android/ta-p/..."

在原帖中查看解决方案

9 回复数
2,329 次查看
ZhijianYe
Contributor II

I mean I will write data in the memory by coding during uboot working, not command.Will the data be clean when uboot quit?

0 项奖励
回复
2,364 次查看
ZhijianYe
Contributor II

logo_mem@0xbe000000{
compatible = "logo_mem";
device_type = "memory";
reusable;
reg = <0xbe000000 0x02000000>;
status = "okay";
};

 

Is it right? How to make it right and work?

0 项奖励
回复
2,359 次查看
joanxie
NXP TechSupport
NXP TechSupport

you need add reserved-memory for what? vpu or gpu?

2,350 次查看
ZhijianYe
Contributor II

For saving a memory that is transmited from uboot to kernel. Will it work?

0 项奖励
回复
2,346 次查看
joanxie
NXP TechSupport
NXP TechSupport

yes, if you need to change the memory for gpu, you can add "gpumem=xxx" in your uboot command, for more detailed information, pls refer to the document as below:

"https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Memory-Management-on-i-MX6-Android/ta-p/..."

2,339 次查看
ZhijianYe
Contributor II

Thanks a lot.

And will the reserved-memory be initialized? I need it to keep the date that is written on uboot.

0 项奖励
回复
2,335 次查看
joanxie
NXP TechSupport
NXP TechSupport

I don't know what you mean, uboot command just set the memory size

0 项奖励
回复
2,331 次查看
ZhijianYe
Contributor II

I mean I will write data in the memory by coding during uboot working, not command.Will the data be clean when uboot quit?

I think it will be clean. Is there any other way to save the data?

0 项奖励
回复
2,333 次查看
ZhijianYe
Contributor II

I mean I will write data in the memory by coding, not command.Will the data be clean when uboot quit?

0 项奖励
回复