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
Solved! Go to Solution.
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
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