| #
7b701d1b |
| 09-Apr-2021 |
Volodymyr Babchuk <volodymyr_babchuk@epam.com> |
core/link.mk, plat-rcar: introduce SRECFLAGS variable
.srec files are used to flash OPTEE on Rcar Gen3 using serial mode. Serial mode downloader in Rcar does not recognize S2 records in .srec files
core/link.mk, plat-rcar: introduce SRECFLAGS variable
.srec files are used to flash OPTEE on Rcar Gen3 using serial mode. Serial mode downloader in Rcar does not recognize S2 records in .srec files that objcopy generates by default. It allows only S3 records. Also, it requires correct load address present in .srec files.
So, we need to provide additional flags to objcopy during tee.srec file generation. This change introduces makefile variable SRECFLAGS that can be used exactly for this task. Also it provides the correct flags for rcar platform.
Note: at the begging tee.srec file was generated directly from tee.elf and had correct load addresses. As the load address is wider than 24 bits, objcopy automatically used S3 records. But, later tee-raw.bin were introduced and I changed source for tee.srec, so now it is generated from tee-raw.bin. As tee-raw.bin have no load address information this leads to incorrect tee.srec file.
Strictly speaking, only --adjust-vma option is required. As current load address is wider than 24 bits, objcopy will switch to S3 records automatically. But I prefer to have --srec-forceS3 option anyways: for that unlikely chance that CFG_TZDRAM_START would be changed to something much lower.
Fixes: e66c2639b6b ("plat: rcar: generate .srec file using gen_tee_bin")
Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
show more ...
|
| #
5ae0290f |
| 10-Dec-2020 |
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> |
core: kernel: link.mk: Move rules to generate tee-raw.bin and tee.srec from rcar platform
Move the rules to generate tee-raw.bin and tee.srec from rcar platform to core/arch/arm/kernel/link.mk so th
core: kernel: link.mk: Move rules to generate tee-raw.bin and tee.srec from rcar platform
Move the rules to generate tee-raw.bin and tee.srec from rcar platform to core/arch/arm/kernel/link.mk so that similar platforms can re-use it.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| #
44f48dac |
| 16-Nov-2019 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Print SREC when generating the SREC file
Print SREC when generating the SREC file instead of GEN, which is likely copied from neighboring entry in the same Makefile.
Signed-off-by: Mare
plat: rcar: Print SREC when generating the SREC file
Print SREC when generating the SREC file instead of GEN, which is likely copied from neighboring entry in the same Makefile.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| #
e66c2639 |
| 22-Jan-2020 |
Volodymyr Babchuk <volodymyr_babchuk@epam.com> |
plat: rcar: generate .srec file using gen_tee_bin
After recent changes, we are not able to use raw binary generated from the elf file. Instead we need to use gen_tee_bin script to generate the heade
plat: rcar: generate .srec file using gen_tee_bin
After recent changes, we are not able to use raw binary generated from the elf file. Instead we need to use gen_tee_bin script to generate the header-less binary with the correct layout.
This change also generates tee-raw.bin as byproduct. This file is usable also, because it allows to flash OP-TEE using JTAG.
Fixes: 5dd1570ac5b ("core: add embedded data region") Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| #
a4f26dfb |
| 22-Aug-2016 |
Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> |
Add RCAR H3 platform support
Added support for Renesas RCAR devices. Initially RCAR H3 is supported.
Signed-off-by: Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> Reviewed-by: Jens Wiklander
Add RCAR H3 platform support
Added support for Renesas RCAR devices. Initially RCAR H3 is supported.
Signed-off-by: Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|