i.MX6 Linux usage of OCRAM

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

i.MX6 Linux usage of OCRAM

跳至解决方案
4,318 次查看
vsiles
Senior Contributor I

Hi !

We are running a secure OS alongside Linux on some different flavors of i.MX6 boards, and we need to use the OCRAM from the Secure Side. I want to protect the code/data we put on the OCRAM using the provided OCRAM_TZASC. But I am not 100% sure about some behavior of Linux:

* Is Linux using the OCRAM at all ? (maybe for some low power/ suspend features ?)

* If Linux is using the OCRAM, where can I find this in the code, so I can survey how much memory is needed, and I can put our secure information in a different location, so we don't fight over memory

* Is the total amount of OCRAM is 256 Kb ? I'm not sure about the "OCRAM aliased" entry in the memory table.

For your information, we are using 2 flavors of Linux:

* one from NXP: git://git.freescale.com/imx/linux-2.6-imx.git

* one from Boundary Devices (for our sabre lite boards): git://github.com/boundarydevices/linux-imx6.git

Best,

V.

标签 (3)
标记 (3)
1 解答
3,304 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vincent

for memory usage please refer to Chapter 3 Machine Specific Layer (MSL)

attached Linux Manual. Yes Linux uses the OCRAM, i.MX6Q OCRAM is 256 KB,

"alias" means the same memory mapped on other address.

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
3,305 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vincent

for memory usage please refer to Chapter 3 Machine Specific Layer (MSL)

attached Linux Manual. Yes Linux uses the OCRAM, i.MX6Q OCRAM is 256 KB,

"alias" means the same memory mapped on other address.

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

0 项奖励
回复
3,304 次查看
vsiles
Senior Contributor I

Hi !

Thank you for the document, it gave me hints on which file to parse. I'll try to see how much OCRAM linux is using, so I can reserve some for secure usage.

0 项奖励
回复