MA-15019-1 Support Manufacture Protection public key generation
authorJi Luo <ji.luo@nxp.com>
Mon, 15 Jul 2019 09:26:30 +0000 (17:26 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commit7320c7c0efacfb7706e85bfe82d11ac6c2e5b61f
tree11917e8a41de2628f301e166574db874cd43a1e9
parent9d2675b8f347df1f75b8839db0b3397267ad6ffb
MA-15019-1 Support Manufacture Protection public key generation

Add new keymaster commands to get Manufacure Production key (mppubk).
Since the mppubk can only be generated in OEM CLOSED imx8q board, so
we can only use this command when the board is HAB/AHAB closed.

Commands to extract the mppubk:
        * $fastboot oem get-mppubk
        * $fastboot get_staged mppubk.bin

Test: Generate and dump the mppubk.bin

Change-Id: Idc59e78ca6345497e744162664b8293f50d1eda4
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 52300d644a275dfa4fe73ecb51601a8efaff8ab7)
arch/arm/mach-imx/imx8m/soc.c
drivers/fastboot/fb_fsl/fb_fsl_command.c
include/fb_fsl.h
include/fsl_avb.h
include/interface/keymaster/keymaster.h
include/trusty/keymaster.h
lib/avb/fsl/fsl_avbkey.c
lib/trusty/ql-tipc/keymaster.c