Hi Yiping,
Currently we only have SB_EN bit set as this is the first time we are trying to enable secure boot on one of our products. The Sec Mon is in the check state (0x9), and I generated all my needed values and files using the latest SDK1.9 off the freescale git. Here were my steps:
Get latest code signing tool from freescale git, then run make to generate the binaries needs to run the Code Signing Tool.
Copy in the u-boot binary into the top level directory fsl-sdk-v making sure U-Boot was compiled with proper Secure_boot defines
generate a key pair for use in the code signing "./gen_keys 1024 -k pub_key -p priv_key"
Obtain hash string of the key pair generated to be programmed in SFP and create CSF header for u-boot image ./uni_sign input_files/uni_sign/p3_p4_p5/input_uboot_secure (Which I modified the input file to suit our board)
Added to the RCW some PBL commands to set up SCRATCHRW1 with the address of the place we put the CSF header, and a law to make sure we can access that part of memory.
----
From our debug tools, I am able to see that scratchrw1 is set up right, the CSF header is where I expect it and visible, and U-Boot is where I expect it and visible. so I am not sure where in these steps I may have gone wrong