aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-bsp/optee
AgeCommit message (Collapse)AuthorFilesLines
2019-12-16[Community] Fix the optee-user-app-template recipeicefish_8.99.5icefish_8.99.4icefish/8.99.5icefish/8.99.48.99.58.99.4sandbox/GrEzZaBzH/dev-opteeAymeric Aillet1-3/+3
Change the commit targeted by the recipe to a fix tag. BUG-AGL: SPEC-3030 Change-Id: Ib770f3a988d4f4ba47a0cf4c9d2d21f972c32968 Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2019-12-10[Community] Add optee packages recipesicefish_8.99.3icefish/8.99.38.99.3Aymeric Aillet5-0/+215
Allow us to use the xtest suite and examples in order to test the functionning of optee. More information on the optee official website. Add a user-app example. Allow us to build a custom app working in both optee side. Fix optee examples recipe. Allow us to to access functions from examples TA's from other apps. BUG-AGL: SPEC-3030 Change-Id: I28f2c117dfa7a66ef2ebc0ede2ec32d7b218b549 Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2019-10-02[Community] Optee_os recipe modificationAymeric Aillet1-2/+7
In order to build trusted applications from the official optee sources we need files that weren't built with the current version of the recipe. This modification allow us to build trusted applications in the AGL environment. BUG-AGL: SPEC-2848 Change-Id: Ic34121428abbaf316656519f71d876abfc1f95d5 Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2019-07-31rcar-gen3: optee-client: Apply patch to use MMC_IOC_MULTI_CMD for RPMB accessDuy Dang2-0/+209
This patch changes RPMB ioctl from MMC_IOC_CMD into MMC_IOC_MULTI_CMD and changes ioctl parameters according to mmc utils to fix the failure when using MMC_IOC_CMD as RPMB ioctl. (cherry picked from commit 10a80f4f034923bc8e405e67f770189ea3317178) Change-Id: I80274e7f2c3f11d2b67edc349e4f430c5388d3fc Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-07-31rcar-gen3: optee-os: Another fix for git configuration in do_configureKhang Nguyen2-179/+2
This reverts commit 55c33ce0a852710bf68e515f992f954b2b8c171b and adds '-n' flag to cherry-pick command to avoid the git configuration issue in do_configure, it is simpler and easier than applying patch solution. Change-Id: I62e4d3c262bebb57e1e5f3d792c911aa520be675 Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-07-31rcar-gen3: optee-os: Update SRCREV to version 2.0.4Duy Dang1-2/+2
This commit updates optee-os to v2.0.4 for the following changes: - Ebisu-4D (E3 Ver.1.1) SanDisk eMMC: RPMB area access error. - core: Change error code of HW-Engine provider layer. - plat-rcar: Add mask processing of interrupt distribution CPU. - core: Fix the return value from HW-Engine provider different from expected value. (cherry picked from commit 8f18cf4dd8ea53d74586a88d4cb9005297aa7d78) Change-Id: I50ccbfb62193f6d1b49370828a1204e0808df30c Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-05-23rcar-gen3: optee-os: Fix GCC 8.x compilation warningsThuy Tran2-1/+77
This commit adds a fix patch from optee-os upstream [1] to fix GCC 8.x compilation warnings with -Wcast-function-type. [1] OPTEE-OS rev: f6d17e33e7b95c90a2521cfd37cd5cb511909fc4 Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-05-23rcar-gen3: optee-os: Apply a patch instead of cherry-pickingduythaidang2-3/+180
This commit modifies to apply a patch instead of cherry-picking. This avoids the error of git config if git is not configured for the current user. Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> (cherry picked from commit 0fd211f94a24125dc554055877ff910085e07fe2)
2019-05-23rcar-gen3: optee-os: Update SRCREV to Rev.2.0.2Duy Dang1-1/+1
This commit updates SRCREV of optee-os to Rev.2.0.2 for the following changes: - Support HWmanual RPC errata - Delete the modification used by enabling CFG_WITH_PAGER Change-Id: I6cc14ec22556ecdaf1b59e72e4c63b6dc78083e0 Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> (cherry picked from commit a1715e53ac2b3d6ac30e2524afdd3cdf88e9faf9)
2019-04-19rcar-gen3: Add support M3NULCB boardYusuke Goda2-2/+2
M3NULCB board specifications: - R-Car M3-N Ver.1.1 - DDR 2GiB - eMMC 8GB(KLM8G1GESD-B04P) Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-02-28rcar-gen3: optee-client: Remove SECURITY_CFLAGS option to avoid compile issuesThuy Tran1-0/+3
Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com>
2019-02-28rcar-gen3: optee-client: WORKAROUND to build with GCC 8.1Thuy Tran2-0/+29
This commit applies a W/A patch from optee upstream to fix GCC 8 format-truncation errors. [1] https://github.com/OP-TEE/optee_client/issues/126 Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-02-28rcar-gen3: optee-os: WORKAROUND to build with GCC 8.1Thuy Tran1-1/+1
This commit adds NOWERROR=1 to ignore GCC 8 cast-function-type build errors for SYSCALL_ENTRY() [1]. | core/arch/arm/tee/arch_svc.c:47:36: error: cast between incompatible function types from 'void (*)(long unsigned in| t)' to 'TEE_Result (*)(void)' {aka 'unsigned int (*)(void)'} [-Werror=cast-function-type] | #define SYSCALL_ENTRY(_fn) { .fn = (syscall_t)_fn } ^ | core/arch/arm/tee/arch_svc.c:54:2: note: in expansion of macro 'SYSCALL_ENTRY' | SYSCALL_ENTRY(syscall_sys_return), | ^~~~~~~~~~~~~ | core/arch/arm/tee/arch_svc.c:47:36: error: cast between incompatible function types from 'void (*)(const void *, si| ze_t)' {aka 'void (*)(const void *, long unsigned int)'} to 'TEE_Result (*)(void)' {aka 'unsigned int (*)(void)'} [| -Werror=cast-function-type] | #define SYSCALL_ENTRY(_fn) { .fn = (syscall_t)_fn } ^ | core/arch/arm/tee/arch_svc.c:55:2: note: in expansion of macro 'SYSCALL_ENTRY' | SYSCALL_ENTRY(syscall_log), | ^~~~~~~~~~~~~ [1] https://github.com/OP-TEE/optee_os/issues/2393 Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-12-20rcar-gen3: optee-os: Update SRCREV to follow the latest versionDuy Dang1-1/+1
This commit updates SRCREV of optee-os recipe for these changes: - Fix the MMU configuration of shared memory. - Merge the following pull request. https://github.com/renesas-rcar/optee_os/pull/2 - Change a cipher method of AES-CTR from a block cipher to a stream cipher. - Fix exclusive controls of asymmetric encryption. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-29rcar-gen3: IPL: Upgrade IPL version according to BSP v3.8.0Khang Nguyen5-231/+1
This commit updates IPL and Secure Monitor to Rev1.0.23 rev2 for the following changes: [IPL] - plat: rcar: BL2: Correct MMU configuration. - plat: rcar: Fix suspicious line in platform.mk. - Change the definition value of BL2_LIMIT to end of System RAM. - Update IPL boot message. - Version up the base version to v1.5 of arm-trusted-firmware. - Update DDR setting (rev.0.34). - Modify the alignment of l2_tzram_layout to CACHE_WRITEBACK_GRANULE. - Update H3 Ver.3.0 QoS setting rev.0.08. - Update M3N Ver.1.1 QoS setting rev.0.07. - Update E3 Ver.1.0 QoS setting rev.0.03. - Fix the system WDT detection log is not output when D-Cache is enabled. - Change the timer counter of micro_wait to the Generic Timer. - Fix to log the timestamp at beginning of line. - Change the timer counter for processing time measurement to the Generic Timer. - Modify the DDR log output of IPL boot message. [Secure Monitor] - Version up the base version of arm-trusted-firmware. https://github.com/ARM-software/arm-trusted-firmware Commit ID ed8112606c54d85781fc8429160883d6310ece32 [Tag: v1.5] - Backport the workaround for CVE-2018-3639. Update optee_os Rev1.0.16 rev2 - Fix a contxt size allocated by OP-TEE OS with HW engine. - Fix to exclusive control in ECDSA operation used by HW engine. - Fix to set the initial value for a parameter in TEE_AEInit. - Fix to clear the read cache of standalone_fs_create. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-26rcar-gen3: OP-TEE: Drop python-wand and imagemagickThuy Tran2-5/+2
From optee 2.6.0 release [1], they do not use python-wand anymore. It also adds inherit pythonnative to optee-client to follow upstream version. [1] meta-linaro rev: 837fb7d048a30baa6356d3ceb493ec20074b8785 Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-26rcar-gen3: OP-TEE: Apply fix patch for MMU configurationDuy Dang2-0/+47
This commit applies a patch to fix an issue in MMU configuration in which Linux or OP-TEE may overwrite to the illegal memory area. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-19rcar-gen3: OP-TEE: Apply fix patchDuy Dang2-0/+43
This commit applies a patch to fix the following issues: - Fix to set the initial value for a parameter in TEE_AEInit - Fix to clear the read cache of standalone_fs_create. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-19rcar-gen3: IPL: Update IPL to the latest versionKhang Nguyen3-2/+144
This commit updates IPL/Secure Monitor for the following changes: Update IPL and Secure Monitor Rev1.0.22 [IPL] - Update CPG setting. - Add support Ebisu-4D board. - Change the timing to invalidate of instruction cache. - Fixed a bug in the exception handler. - Update DDR setting for E3. [Secure Monitor] - Add the wait processing that is placed in the system RAM area for Suspend To RAM. Update optee_os Rev1.0.15 - Fix the polling process of the HyperFlash driver waiting for HW completion. - Fix incorrect memory access in RSA processing using a provider for a HW engine driver. - Fix a conditional branch in a mutex_destroy function. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-06-18rcar-gen3: IPL: Upgrade IPL version according to BSP v3.7.0Khang Nguyen3-46/+6
This commit changes the following contents: - Upgrade IPL and Secure Monitor Rev1.0.21 rev2. - Upgrade optee_os Rev1.0.14 rev2. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-04-21rcar-gen3: IPL: Update SRCREV to follow the latest versionKhang Nguyen1-1/+1
This commit updates IPL and Secure Monitor to Rev1.0.20 rev2 for following changes: [IPL] - [H/W Restriction No.100] Disable TLB function on IPMMU-PV1 cache on H3 Ver.2.0. - Update H3 Ver.3.0 QoS setting rev.0.06. - Fix the IPL cannot load images to 40-bit address space with eMMC when D-Cache enables. - Add processing to read MSTP status into BL2. - Delete unnecessary register setting. - Add the SWTCNT setting of E3. - Change the unit of transfer size to 256 bytes for RPC, and improved DMA transfer processing. - Add DDR Memory Config log. [Secure Monitor] - Add processing to read MSTP status into BL31. For optee_os, it updates reversion to Rev1.0.13 for following change: - Add processing to read MSTP status into MFIS. It deletes the option which enables Lossy area for E3. It also supports build option for H3: - For R-Car H3 SiP DDR 8GiB (2GiB x 4ch), specify "RCAR_DRAM_SPLIT=1" - For R-Car H3 SiP DDR 4GiB (2GiB X 2ch), specify "RCAR_DRAM_SPLIT=2 RCAR_DRAM_CHANNEL=5" - For R-Car H3 SiP DDR 4GiB (1GiB x 4ch), specify "RCAR_DRAM_SPLIT=1 RCAR_DRAM_LPDDR4_MEMCONF=0" Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: IPL: Update IPL according to BSP v3.6.1 and add support E3Khang Nguyen2-3/+3
This commit changes following contents: - Update IPL and Secure Monitor Rev1.0.19. - Update optee_os Rev1.0.12. It also updates recipes to add support E3 board. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: IPL: Update IPL version according to BSP v3.6.0Thuy Tran4-9/+45
This commit changes following contents: - Update IPL and Secure Monitor Rev1.0.18 rev2 - Update optee_os Rev1.0.11 rev2 Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-11-24rcar-gen3: IPL: Update SRCREV to follow the latest versionThuy Tran1-1/+1
This commit updates IPL components versions as below: - Update IPL and Secure Monitor Rev1.0.17 rev2. - Update optee_os Rev1.0.10. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-08-25rcar-gen3: IPL: Update SRCREV to follow the latest versionThao Nguyen1-1/+1
This commit updates IPL components versions as below: - Update IPL and Secure Monitor Rev1.0.16 rev4. - Update optee_os to Rev1.0.9 rev2. - Update optee_linuxdriver to Rev1.0.7 rev2. Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-04-19rcar-gen3: IPL: Update IPL according to BSP v3.5.3Thao Nguyen1-1/+1
This commit changes following contents: - Update IPL and Secure Monitor Rev1.0.14 rev2. - Update optee_os Rev1.0.8. Change-Id: Ibc16e31545b762451eb3704f817cd0d53fc1a50d Signed-off-by: Thao Nguyen <thao.nguyen.yb@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-03-23rcar-gen3: IPL: Update IPL version according to BSP v3.5.2Thao Nguyen1-1/+1
This commit changes following contents: - Update IPL and Secure Monitor Rev1.0.13 rev2. - Update optee_os Rev1.0.7 rev2. Change-Id: I0feeaad39dc13c79b7a2f2b8faaac4955413dcff Signed-off-by: Thao Nguyen <thao.nguyen.yb@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-01-27First commit.Renesas-Yocto-v2.16.0Takamitsu Honda3-0/+136
Renesas BSP v3.5.1 (kernel v4.9 stable) [Environment] poky: yocto-2.1.2 (cca8dd15c8096626052f6d8d25ff1e9a606104a3) meta-openembedded: 55c8a76da5dc099a7bc3838495c672140cedb78e meta-linaro: 2f51d38048599d9878f149d6d15539fb97603f8f [Information] - U-boot: Changed load address from H'49000000 to H'50000000 - XDG_RUNTIME_DIR has been changed from "/run/user/root" to "/run/user/0" - Change location of include directory, which stores common user header files, to $(INCSHARED) - In BSP Only, core-image-weston is not supported even though local-wayland.conf is provided. - Please set Salvator-x SW7 Pin-1. In after Yocto BSP v2.12.0, it is  necessary to enable BKUP_TRG signal for Suspend to RAM. - The dtb filename was changed in R-Car H3. Only "Image-r8a7795-es1-salvator-x.dtb" is supported in this version. Please use "Image-r8a7795-es1-salvator-x.dtb" It supports R-Car H3 WS1.0 and WS1.1. - Please update your local.conf and bblayers.conf corresponding to Yocto v2.16.0 package. You can refer to meta-rcargen3/docs/sample/conf/ for updated contents. - You have to re-compile out-of-recipe software like user application by v2.16.0 SDK toolchains. - In some boards, the resuming from System Suspend to RAM may cause unstable operation or failed to resume. Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>