This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6422: How to customize UBOOT and Linux Build Script or Process to Integrate Secure Boot with Encryption Using SMEK or BMEK

Part Number: AM6422

Tool/software:

Hi,

  I am building firmware for TI AM64 EVM and SK. Besides UBOOT, I basically have a FIT image that includes the Linux Kernel and ROOT Files System (in CPIO InitramFs) Format. I saw in the AM64X Linux SDK 10 under  UBOOT Source Code directory arch/arm/mach-k3 there is a directory namely "keys" that has private key and public certificate that one can replace with their own SMPK or BMPK, so essentially secure boot with authentication is supported out of box in the SDK.  

Now my question is, in order to also support encryption in secure boot, presumably encrypting tiboot.bin, tispl.bin, u-boot.img, and cust-fw.fit (Linux, DTB, and ROOTFS), how should one modify the UBOOT and Linux Build Process, what are the proper command systax to use SMEK or BMEK to encrypt these files and under what kind of binman specifications, and for the cust-fw.fit, maybe one has to modify the UBOOT to decrypt his cust-fw.fit image right. (This image can first loaded by TFTP, but later on will be in a OSPI flash partition).