How to check SEC_MON status in Linux ?

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

How to check SEC_MON status in Linux ?

ソリューションへジャンプ
1,757件の閲覧回数
Jeffrey_Lai
Contributor II

Hi,

We want to check LX2160ARDB security monitor (SEC_MON) status in Linux. 

According to LX2160A reference manual, we try to read SecMon address (0x1E9_0000) by devmem2 command as below but get the same value (0x0) at secure and non-secure mode.

root@localhost:~# devmem2 0x01e90000
/dev/mem opened.
Memory mapped at address 0xffff8aba8000.
Value at address 0x1E90000 (0xffff8aba8000): 0x0

Is it correct?

How to check SEC_MON status in Linux ?

 

Thank you,

Jeffrey

0 件の賞賛
返信
1 解決策
1,744件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

The recent released LSDK comply with AT-F(ARM Trusted Firmware), so secure fuse is reading on EL3. Since Linux is running on EL2 and EL1, it does not have read access.

A option for you is to use JTAG(CCS+CodeWarrior TAP).

You could use the following CCS commands

% delete all

% config cc cwtap

% ccs::config_chain {lx2160a dap}

% display ccs::get_config_chain

% disp ccs::read_mem 86 0x1e90010 4 0 16                   

+0       +4       +8       +C 

[0x01E90010] 00000000 88002B00 80000000 00000000 

[0x01E90020] 00000000 00000000 00000000 00000000 

[0x01E90030] 00000000 00000000 00000000 00000000 

[0x01E90040] 00000000 00000000 00000000 00000008   

Note "86" above is chain position for SAP2 on my LX2160ARDB board

元の投稿で解決策を見る

1 返信
1,745件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

The recent released LSDK comply with AT-F(ARM Trusted Firmware), so secure fuse is reading on EL3. Since Linux is running on EL2 and EL1, it does not have read access.

A option for you is to use JTAG(CCS+CodeWarrior TAP).

You could use the following CCS commands

% delete all

% config cc cwtap

% ccs::config_chain {lx2160a dap}

% display ccs::get_config_chain

% disp ccs::read_mem 86 0x1e90010 4 0 16                   

+0       +4       +8       +C 

[0x01E90010] 00000000 88002B00 80000000 00000000 

[0x01E90020] 00000000 00000000 00000000 00000000 

[0x01E90030] 00000000 00000000 00000000 00000000 

[0x01E90040] 00000000 00000000 00000000 00000008   

Note "86" above is chain position for SAP2 on my LX2160ARDB board