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, 25 Jul 2019 09:05:51 +0000 (17:05 +0800)
commit52300d644a275dfa4fe73ecb51601a8efaff8ab7
treebbb7f4ff44e2cd684a4423eff90ade9287b7193b
parentc5151ab339c9a37a6c95cabebe328aeba88636f9
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>
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