Enable CAAM accelerating in OP-TEE on i.MX8QXP/QM platform(L4.14.98 GA)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable CAAM accelerating in OP-TEE on i.MX8QXP/QM platform(L4.14.98 GA)

Enable CAAM accelerating in OP-TEE on i.MX8QXP/QM platform(L4.14.98 GA)

Most i.MX8QXP/QM customers already work on L4.14.98 GA for their Auto product, like C-V2X TBOX, Car infortainment system. Some customers also want to adopt OP-TEE in their security design, but OP-TEE on i.MX8QXP/QM platform don't support HW cryptography accelerating which base on CAAM module. So I worked on the issue last week and fixed it.

The package meta-optee-add-on_4.14.98_2.0.0_ga.tgz is Yocto layer which includes all patches for fixing the issue.

Software environments as the belows:

Linux kernel: imx_4.14.98_2.0.0_ga

HW platform:  i.MX8QM/QXP MEK.

How to build:

1, decompress meta-optee-add-on_4.14.98_2.0.0_ga.tgz and copy meta-optee-add-on to folder (Yocto 4.14.98_2.0.0_ga dir)/sources/

2, Run DISTRO=fsl-imx-wayland MACHINE=imx8qxpmek source fsl-setup-release.sh -b build-optee and add BBLAYERS += " ${BSPDIR}/sources/meta-optee-add-on " into (Yocto 4.14.98_2.0.0_ga dir)/build-optee/conf/bblayers.conf 

3, Run bitbake fsl-image-validation-imx.

4, You can run xtest or xtest -l 1 4007 on your MEK board to test optee crypto feature after completing build image. You can find it only take about one second comparing no CAAM accelerating when test "regression_4007.11 Generate RSA-2048 key".

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1102600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEnable%20CAAM%20accelerating%20in%20OP-TEE%20on%20i.MX8QXP%2FQM%20platform(L4.14.98%20GA)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMost%20i.MX8QXP%2FQM%20customers%20already%20work%20on%26nbsp%3BL4.14.98%20GA%20for%20their%20Auto%20product%2C%20like%20C-V2X%20TBOX%2C%20Car%20infortainment%20system.%20Some%20customers%20also%20want%20to%26nbsp%3Badopt%20OP-TEE%20in%20their%20security%20design%2C%20but%26nbsp%3BOP-TEE%20on%20i.MX8QXP%2FQM%20platform%20don't%20support%20HW%20cryptography%20accelerating%20which%20base%20on%20CAAM%20module.%20So%20I%20worked%20on%20the%20issue%20last%20week%20and%20fixed%20it.%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%22%3EThe%20package%20meta-optee-add-on_4.14.98_2.0.0_ga.tgz%20is%20Yocto%20layer%3CSPAN%3E%26nbsp%3Bwhich%20includes%20all%20patches%20for%20fixing%20the%20issue.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3ESoftware%20environments%20as%20the%20belows%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3ELinux%20kernel%3A%20imx_4.14.98_2.0.0_ga%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3EHW%20platform%3A%26nbsp%3B%20i.MX8QM%2FQXP%20MEK.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20text-decoration%3A%20underline%3B%22%3EHow%20to%20build%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E1%2C%20decompress%26nbsp%3B%3CSPAN%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20color%3A%20%23ff0000%3B%20font-weight%3A%20bold%3B%22%3E%3CSTRONG%3Emeta-optee-add-on_4.14.98_2.0.0_ga.tgz%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20copy%20meta-%3CSPAN%20style%3D%22color%3A%20%2351626f%3B%22%3Eoptee-add-on%3C%2FSPAN%3E%20to%20folder%20(%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%3EYocto%204.14.98_2.0.0_ga%20dir%3C%2FEM%3E%3C%2FSPAN%3E)%2Fsources%2F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E2%2C%20Run%26nbsp%3B%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%20style%3D%22border%3A%200px%3B%20font-weight%3A%20bold%3B%20%22%3E%3CSTRONG%3EDISTRO%3Dfsl-imx-wayland%20MACHINE%3Dimx8qxpmek%20source%20fsl-setup-release.sh%20-b%26nbsp%3Bbuild-optee%26nbsp%3B%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FSPAN%3Eand%20add%26nbsp%3B%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%20style%3D%22border%3A%200px%3B%20font-weight%3A%20bold%3B%20%22%3E%3CSTRONG%3EBBLAYERS%20%2B%3D%20%22%20%24%7BBSPDIR%7D%2Fsources%2Fmeta-optee-add-on%20%22%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Einto%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E(%3C%2FSPAN%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%3EYocto%204.14.98_2.0.0_ga%20dir%3C%2FEM%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E)%3C%2FSPAN%3E%2Fbuild-optee%2Fconf%2Fbblayers.conf%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E3%2C%20Run%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%20style%3D%22border%3A%200px%3B%20font-weight%3A%20bold%3B%20%22%3E%3CSTRONG%3Ebitbake%20fsl-image-validation-imx%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3E4%2C%20You%20can%20run%20%3CEM%3E%3CSTRONG%3Extest%3C%2FSTRONG%3E%3C%2FEM%3E%20or%26nbsp%3B%3CEM%3E%3CSTRONG%3Extest%20-l%201%204007%3C%2FSTRONG%3E%3C%2FEM%3E%26nbsp%3Bon%20your%20MEK%20board%20to%20test%20optee%20crypto%20feature%20after%20completing%20build%20image.%20You%20can%20find%20it%20only%20take%20about%20one%20second%20comparing%20no%20CAAM%20accelerating%20when%20test%20%22%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eregression_4007.11%20Generate%20RSA-2048%20key%3C%2FSPAN%3E%22.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1102600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎10-28-2019 07:16 PM
Updated by: