Hello Li Yan,
In the file meta-freescale/conf/machine/p4080ds.conf of SDK 2.0, secure boot option has already been included in UBOOT_CONFIG, when you run "bitbake u-boot", the secure u-boot should been deployed in build_p4080ds/tmp/deploy/images/p4080ds/ folder.
The target board configuration to support secure boot, program the ITS fuse or use RCW with SB_EN=1.
For protyping phase, please don't blow the ITS fuse, and use RCW with SB_EN=1.
For images deployment, please refer to QorIQ SDK 2.0 Document->Boot Loaders->U-Boot->Secure Boot->PBL Based Platforms->Address Map used for demo.
Here are some steps for running a basic secure boot test.
1. Generate a public/private RSA key pair.
2. Sign the image to be validated (U-Boot) using the private key.
3. Create a header containing information regarding the image, keys, signature etc.
4. Deploy the U-Boot and header image on to the target memory.
5. Configure PBL(RCW) with SB_EN=1, BOOT_HO = 1 and location of header programmed in DCFG SCRATCHRW1 register via PBI commands. For PBI commands, please refer to the section QorIQ SDK 2.0 Document->Boot Loaders->U-Boot->Secure Boot->PBL Based Platforms->Pre-Boot Phase.
6. Use CCS to connect to the target, to write OTPMK and SFP_SRKRH to shadow registers.
7. Write the register to get the core out of boot hold off. Boot ROM will read the SCRATCH REGISTER for location of the HEADER and then perform the validation.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------