renesas-rcar / arm-trusted-firmware

arm-trusted-firmware
Other
25 stars 39 forks source link

How to build TF-A for Rcar V3H condor board #15

Open crocodiletongue opened 3 years ago

crocodiletongue commented 3 years ago

I am trying to build ATF for Rcar V3H condor board referring to below.

https://trustedfirmware-a.readthedocs.io/en/latest/plat/rcar-gen3.html#tf-a-build-procedure

But it describes only Rcar H3 build options does not describe V3H condor's one. Could you tell me V3H options I have to set.

25.3. How to build
The TF-A build options depend on the target board so you will have to refer to those specific instructions. What follows is customized to the H3 SiP Salvator-X development system used in this port.

25.3.1. Build Tested:
RCAR_OPT=”LSI=H3 RCAR_DRAM_SPLIT=1 RCAR_LOSSY_ENABLE=1” MBEDTLS_DIR=$mbedtls_src

$ MBEDTLS_DIR=$mbedtls_src_tree make clean bl2 bl31 rcar_layout_tool PLAT=rcar ${RCAR_OPT} SPD=opteed
lvxian-git commented 3 years ago

I execute "MBEDTLS_DIR=$mbedtls_src_tree make clean bl2 bl31 rcar_layout_tool PLAT=rcar ${RCAR_OPT} SPD=opteed", but get the errors below: plat/renesas/rcar/bl2_plat_setup.c:48:38: error: initializer element is not constant static const uint64_t BL2_RO_BASE = BL_CODE_BASE; ^~~~ plat/renesas/rcar/bl2_plat_setup.c:49:39: error: initializer element is not constant static const uint64_t BL2_RO_LIMIT = BL_CODE_END; ^~~ plat/renesas/rcar/bl2_plat_setup.c:52:47: error: initializer element is not constant static const uint64_t BL2_COHERENT_RAM_BASE = BL_COHERENT_RAM_BASE; ^~~~~~~~ plat/renesas/rcar/bl2_plat_setup.c:53:48: error: initializer element is not constant static const uint64_t BL2_COHERENT_RAM_LIMIT = BL_COHERENT_RAM_END; ^~~~~~~ Can you help ? Thanks.

jeffnkim commented 11 months ago

I also have the same issue. Could you share the solution if it was solved already? I want to generate .srec files. What compile option does it need? Thanks.