
Refer to the following useful CCS commands for secure boot:
#Connect to CCS and configure Config Chain
delete all
config cc cwtap:<ip address of cwtap> show cc
ccs::config_server 0 10000
ccs::config_chain {ls1020a dap sap2} display ccs::get_config_chain
#Check Initial SNVS State and Value in SCRATCH Registers
ccs::display_mem <dap chain pos> 0x1e90014 4 0 4
ccs::display_mem <dap chain pos> 0x1ee0200 4 0 4
#Write the SRK Hash Value in Mirror Registers
ccs::write_mem <dap chain pos> 0x1e80254 4 0 <SRKH1>
ccs::write_mem <dap chain pos> 0x1e80258 4 0 <SRKH2>
ccs::write_mem <dap chain pos> 0x1e8025c 4 0 <SRKH3>
ccs::write_mem <dap chain pos> 0x1e80260 4 0 <SRKH4>
ccs::write_mem <dap chain pos> 0x1e80264 4 0 <SRKH5>
ccs::write_mem <dap chain pos> 0x1e80268 4 0 <SRKH6>
ccs::write_mem <dap chain pos> 0x1e8026c 4 0 <SRKH7>
ccs::write_mem vdap chain pos> 0x1e80270 4 0 <SRKH8>
#Get the Core Out of Boot Hold-Off
ccs::write_mem <dap chain pos> 0x1ee00e4 4 0 0x00000001
If the image verification passes, the board boot up starts in the secure mode.
4.6.5.2 Executing Op-tee Daemon
Run OPTee client daemon using the command below:
tee-supplicant /dev/teepriv0 &
4.6.5.3 Executing OP-Tee test cases
OP-Tee test cases can be run using the steps listed below.
1. Run xtest binary in Linux console:
xtest
2. Then you should get a log similar to the following as a test result:
Run test suite with level=0
TEE test application started with device [(null)]
######################################################
#
# regression
#
######################################################
…
24003 subtests of which 0 failed
76 test cases of which 0 failed
0 test case was skipped
TEE test application done!
NXP Semiconductors
Industrial features
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
58 / 199