add IPL
This commit is contained in:
289
IPL/Customer/Mobis/Gen4_ICUMX_Loader/tools/dummy_create/s4/sa9.c
Normal file
289
IPL/Customer/Mobis/Gen4_ICUMX_Loader/tools/dummy_create/s4/sa9.c
Normal file
@@ -0,0 +1,289 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000)
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define FLASH_BOOT (0U)
|
||||
#define EMMC_BOOT (1U)
|
||||
#define CA_IPL (0U)
|
||||
#define BL31 (1U)
|
||||
|
||||
/* CA program load num */
|
||||
#define CA_IMAGE_NUM (0x00000003U)
|
||||
/* Source address on flash for Secure FW */
|
||||
#define SECURE_FW_SRC_ADDRESS (0x00280000U)
|
||||
/* Source address on flash for RTOS */
|
||||
#define RTOS_SRC_ADDRESS (0x00500000U)
|
||||
/* Source address on flash for ICUMH program */
|
||||
#define ICUMH_PROG_SRC_ADDRESS (0x00380000U)
|
||||
/* Source address on flash for G4MH program (1st) */
|
||||
#define G4MH_PROG_SRC_ADDRESS (0x00900000U)
|
||||
/* Source address on flash for G4MH program (2nd) */
|
||||
#define G4MH_PROG_02_SRC_ADDRESS (0x00A00000U)
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Source address on flash for CX IPL */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00480000U)
|
||||
#else
|
||||
/* Reserved */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00000000U)
|
||||
#endif
|
||||
/* ----------- customized ----------- */
|
||||
/* Source address on flash for BL31 */
|
||||
#define CA_PROG_01_SRC_ADDRESS (0x00E00000U)
|
||||
/* Source address on flash for OP-TEE */
|
||||
#define CA_PROG_02_SRC_ADDRESS (0x00E80000U)
|
||||
/* Source address on flash for U-Boot */
|
||||
#define CA_PROG_03_SRC_ADDRESS (0x00F80000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_04_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_05_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_SRC_ADDRESS (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
#if (RCAR_SA9_TYPE == FLASH_BOOT)
|
||||
#define SECURE_FW_PARTITION (0x00000000U)
|
||||
#define RTOS_PARTITION (0x00000000U)
|
||||
#define ICUMH_PROG_PARTITION (0x00000000U)
|
||||
#define G4MH_PROG_PARTITION (0x00000000U)
|
||||
#define G4MH_PROG_02_PARTITION (0x00000000U)
|
||||
#define CX_IPL_PARTITION (0x00000000U)
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#else /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#define CA_PROG_01_PARTITION (0x00000000U)
|
||||
#define CA_PROG_02_PARTITION (0x00000000U)
|
||||
#define CA_PROG_03_PARTITION (0x00000000U)
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#else /* #if (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
#define SECURE_FW_PARTITION (0x00000001U)
|
||||
#define RTOS_PARTITION (0x00000001U)
|
||||
#define ICUMH_PROG_PARTITION (0x00000001U)
|
||||
#define G4MH_PROG_PARTITION (0x00000001U)
|
||||
#define G4MH_PROG_02_PARTITION (0x00000001U)
|
||||
#define CX_IPL_PARTITION (0x00000001U)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif /* #if (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
|
||||
#if (RCAR_SA9_TYPE != EMMC_BOOT)
|
||||
/* Test data for QSPI DDR mode */
|
||||
#define QSPI_TESTDATA (0x5A5AA5A5U)
|
||||
#else
|
||||
#define QSPI_TESTDATA (0x00000000U)
|
||||
#endif /* (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
|
||||
/* Destination address for Secure FW */
|
||||
#define SECURE_FW_ADDRESS (0xEB240000U)
|
||||
#define SECURE_FW_ADDRESSH (0x00000000U)
|
||||
/* Destination size for Secure FW */
|
||||
#define SECURE_FW_DST_SIZE (0x00028000U) /* 640KiB / 4 */
|
||||
/* Destination address for RTOS */
|
||||
#define RTOS_ADDRESS (0xE2100000U)
|
||||
#define RTOS_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS */
|
||||
#define RTOS_DST_SIZE (0x00100000U) /* 4MiB / 4 */
|
||||
/* Destination address for ICUMH program */
|
||||
#define ICUMH_PROG_ADDRESS (0x10500000U)
|
||||
#define ICUMH_PROG_ADDRESSH (0x00000000U)
|
||||
/* Destination size for ICUMH program */
|
||||
#define ICUMH_PROG_DST_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
/* Destination address for G4MH program (1st) */
|
||||
#define G4MH_PROG_ADDRESS (0x10000000U)
|
||||
#define G4MH_PROG_ADDRESSH (0x00000000U)
|
||||
/* Destination size for G4MH program (1st) */
|
||||
#define G4MH_PROG_DST_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
/* Destination address for G4MH program (2nd) */
|
||||
#define G4MH_PROG_02_ADDRESS (0x10100000U)
|
||||
#define G4MH_PROG_02_ADDRESSH (0x00000000U)
|
||||
/* Destination size for G4MH program (2nd) */
|
||||
#define G4MH_PROG_02_DST_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Destination address for CA Loader */
|
||||
#define CX_IPL_ADDRESS (0xE6300000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
/* Destination size for CA Loader */
|
||||
#define CX_IPL_SIZE (0x0000C000U) /* 192KiB / 4 */
|
||||
#else /* (CA_LOAD_TYPE == CA_IPL) */
|
||||
/* CX IPL Reserved */
|
||||
#define CX_IPL_ADDRESS (0x00000000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
#define CX_IPL_SIZE (0x00000000U)
|
||||
#endif /* (CA_LOAD_TYPE == CA_IPL) */
|
||||
/* ----------- customized ----------- */
|
||||
/* Destination address for BL31 */
|
||||
#define CA_PROG_01_ADDRESS (0x46400000U)
|
||||
#define CA_PROG_01_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_01_SIZE (0x00008800U) /* 136KiB / 4 */
|
||||
/* Destination address for OP-TEE */
|
||||
#define CA_PROG_02_ADDRESS (0x44100000U)
|
||||
#define CA_PROG_02_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_02_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
/* Destination address for U-Boot */
|
||||
#define CA_PROG_03_ADDRESS (0x50000000U)
|
||||
#define CA_PROG_03_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_03_SIZE (0x00080000U) /* 2MiB / 4 */
|
||||
/* Reserved */
|
||||
#define CA_PROG_04_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_04_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_04_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_05_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_05_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_05_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_06_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_06_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_07_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_07_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_08_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_08_SIZE (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
/* sa9 */
|
||||
__attribute__ ((section (".sa9_top"))) const uint32_t top_cert[1024 / 4] = {
|
||||
[0x0000 / 4] = CA_IMAGE_NUM,
|
||||
[0x0008 / 4] = SECURE_FW_SRC_ADDRESS,
|
||||
[0x0010 / 4] = SECURE_FW_PARTITION,
|
||||
[0x0018 / 4] = RTOS_SRC_ADDRESS,
|
||||
[0x0020 / 4] = RTOS_PARTITION,
|
||||
[0x0028 / 4] = CX_IPL_SRC_ADDRESS,
|
||||
[0x0030 / 4] = CX_IPL_PARTITION,
|
||||
[0x0038 / 4] = ICUMH_PROG_SRC_ADDRESS,
|
||||
[0x0040 / 4] = ICUMH_PROG_PARTITION,
|
||||
[0x0048 / 4] = G4MH_PROG_SRC_ADDRESS,
|
||||
[0x0050 / 4] = G4MH_PROG_PARTITION,
|
||||
[0x0058 / 4] = G4MH_PROG_02_SRC_ADDRESS,
|
||||
[0x0060 / 4] = G4MH_PROG_02_PARTITION,
|
||||
[0x0068 / 4] = CA_PROG_01_SRC_ADDRESS,
|
||||
[0x0070 / 4] = CA_PROG_01_PARTITION,
|
||||
[0x0078 / 4] = CA_PROG_02_SRC_ADDRESS,
|
||||
[0x0080 / 4] = CA_PROG_02_PARTITION,
|
||||
[0x0088 / 4] = CA_PROG_03_SRC_ADDRESS,
|
||||
[0x0090 / 4] = CA_PROG_03_PARTITION,
|
||||
[0x0098 / 4] = CA_PROG_04_SRC_ADDRESS,
|
||||
[0x00A0 / 4] = CA_PROG_04_PARTITION,
|
||||
[0x00A8 / 4] = CA_PROG_05_SRC_ADDRESS,
|
||||
[0x00B0 / 4] = CA_PROG_05_PARTITION,
|
||||
[0x00B8 / 4] = CA_PROG_06_SRC_ADDRESS,
|
||||
[0x00C0 / 4] = CA_PROG_06_PARTITION,
|
||||
[0x00C8 / 4] = CA_PROG_07_SRC_ADDRESS,
|
||||
[0x00D0 / 4] = CA_PROG_07_PARTITION,
|
||||
[0x00D8 / 4] = CA_PROG_08_SRC_ADDRESS,
|
||||
[0x00E0 / 4] = CA_PROG_08_PARTITION,
|
||||
};
|
||||
__attribute__ ((section (".qspi_test_data"))) const uint32_t test_data[1] = {
|
||||
QSPI_TESTDATA
|
||||
};
|
||||
__attribute__ ((section (".sa9_firm"))) const uint32_t firm_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = SECURE_FW_ADDRESS,
|
||||
[0x0264 / 4] = SECURE_FW_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_rtos"))) const uint32_t rtos_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS_ADDRESS,
|
||||
[0x0264 / 4] = RTOS_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_cx_ipl"))) const uint32_t cx_ipl_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CX_IPL_ADDRESS,
|
||||
[0x0264 / 4] = CX_IPL_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_01"))) const uint32_t ca_01_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_01_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_01_SIZE,
|
||||
};
|
||||
|
||||
__attribute__ ((section (".sa9_ca_02"))) const uint32_t ca_02_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_02_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_02_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_03"))) const uint32_t ca_03_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_03_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_03_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_04"))) const uint32_t ca_04_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_04_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_04_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_05"))) const uint32_t ca_05_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_05_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_05_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_06"))) const uint32_t ca_06_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_06_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_06_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_07"))) const uint32_t ca_07_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_07_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_07_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_08"))) const uint32_t ca_08_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_08_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_08_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_icumh"))) const uint32_t icumh_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = ICUMH_PROG_ADDRESS,
|
||||
[0x0264 / 4] = ICUMH_PROG_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_g4mh"))) const uint32_t g4mh_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = G4MH_PROG_ADDRESS,
|
||||
[0x0264 / 4] = G4MH_PROG_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_g4mh_02"))) const uint32_t g4mh_02_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = G4MH_PROG_02_ADDRESS,
|
||||
[0x0264 / 4] = G4MH_PROG_02_DST_SIZE,
|
||||
};
|
||||
|
||||
/* TFMV key(8KB) + NTFMV key(8KB) + minimum version table(4KB) */
|
||||
__attribute__ ((section (".reserved"))) const uint32_t reserved[20480 / 4] = {0};
|
||||
@@ -0,0 +1,66 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000) linker directive
|
||||
******************************************************************************/
|
||||
DEFAULTS {
|
||||
dummy_addr = 0xEB230000
|
||||
|
||||
dummy_size = 64K
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
rt_sram : ORIGIN = dummy_addr, LENGTH = dummy_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// Dummy Certificate
|
||||
//
|
||||
_start = dummy_addr;
|
||||
.sa9_top ALIGN(1024) : > rt_sram /* Offset 0x00240000 */
|
||||
.qspi_test_data ALIGN(1024) : > . /* Offset 0x00240400 */
|
||||
.reserved ALIGN(4096) : > .
|
||||
.sa9_firm ALIGN(1024) : > . /* Offset 0x00246000 */
|
||||
.sa9_rtos ALIGN(1024) : > . /* Offset 0x00246800 */
|
||||
.sa9_cx_ipl ALIGN(1024) : > . /* Offset 0x00247000 */
|
||||
.sa9_icumh ALIGN(1024) : > . /* Offset 0x00247800 */
|
||||
.sa9_g4mh ALIGN(1024) : > . /* Offset 0x00248000 */
|
||||
.sa9_g4mh_02 ALIGN(1024) : > . /* Offset 0x00248800 */
|
||||
.sa9_ca_01 ALIGN(1024) : > . /* Offset 0x00249000 */
|
||||
.sa9_ca_02 ALIGN(1024) : > . /* Offset 0x00249800 */
|
||||
.sa9_ca_03 ALIGN(1024) : > . /* Offset 0x0024A000 */
|
||||
.sa9_ca_04 ALIGN(1024) : > . /* Offset 0x0024A800 */
|
||||
.sa9_ca_05 ALIGN(1024) : > . /* Offset 0x0024B000 */
|
||||
.sa9_ca_06 ALIGN(1024) : > . /* Offset 0x0024B800 */
|
||||
.sa9_ca_07 ALIGN(1024) : > . /* Offset 0x0024C000 */
|
||||
.sa9_ca_08 ALIGN(1024) : > . /* Offset 0x0024C800 */
|
||||
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 0(0x00000)
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define BOOT_PARAM (0x00000000U)
|
||||
#define SFLASH_CLKSELR (0x00000005U) /* H'05 = B'0000_0101 = 80MHz Quad I/O */
|
||||
#define SFLASH_DMCYC (0xFFFFFFFFU)
|
||||
// #define SFLASH_DMCYC (0x00000007U) /* H'07 = B'0_0111 = 8 Dummy Cycles */
|
||||
/* Actually setting the dummy cycles to 0x7 causes a boot error,
|
||||
but setting 0xFFFFFFFF will let it go to default value of 0x7 - that works. */
|
||||
/* Botting QSPI wiht CLKSELR+DMCYC works
|
||||
with MODEMR[1:0]: 0x0 0x820509ac - Wont work with 0x820109AC */
|
||||
#define CERT_MAGIC (0xE291F358U)
|
||||
#define LOADER_ADDR (0xEB210000U)
|
||||
#define LOADER_SIZE (128U * 1024U / 4U)
|
||||
|
||||
/* SA0 */
|
||||
/* boot parameter */
|
||||
__attribute__ ((section(".sa0_boot"))) const uint32_t boot[] = {
|
||||
[0] = BOOT_PARAM,
|
||||
#if 0
|
||||
[1] = SFLASH_CLKSELR,
|
||||
[2] = SFLASH_DMCYC,
|
||||
[3] = 0xFFFFFFFFU,
|
||||
#else
|
||||
[1] = 0xFFFFFF02U, /* for 133MHz Quad read output */
|
||||
#endif
|
||||
// [1] = 0xFFFFFF00U, /* for 80MHz Quad read output or Single Fast Read */
|
||||
};
|
||||
|
||||
|
||||
/* A-side contents Key (0x3000) */
|
||||
__attribute__ ((section(".sa0_content_a"))) const uint32_t content_a[872 / 4] = {
|
||||
// [0x000 / 4] = CERT_MAGIC, /* magic */
|
||||
[0x00C / 4] = 0x00000000U, /* magic */
|
||||
[0x154 / 4] = LOADER_ADDR, /* address */
|
||||
[0x264 / 4] = LOADER_SIZE, /* size */
|
||||
};
|
||||
@@ -0,0 +1,53 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 0(0x00000) linker directive
|
||||
******************************************************************************/
|
||||
DEFAULTS {
|
||||
dummy_addr = 0xEB200000
|
||||
dummy_size = 2M
|
||||
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
dram : ORIGIN = dummy_addr, LENGTH = dummy_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// Dummy Certificate
|
||||
//
|
||||
.sa0 ALIGN(16) : {
|
||||
_start=0;
|
||||
*(.sa0_boot) _boot=0;
|
||||
.=0x3000;
|
||||
*(.sa0_content_a) _content_a=.;
|
||||
} > dram
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2025 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000)
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <image_load.h>
|
||||
|
||||
#define FLASH_BOOT (0U)
|
||||
#define EMMC_BOOT (1U)
|
||||
#define CA_IPL (0U)
|
||||
#define BL31 (1U)
|
||||
|
||||
#define RTOS_LOAD_NUM_1 (1U)
|
||||
#define RTOS_LOAD_NUM_3 (3U)
|
||||
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
#error "OPTEE_LOAD_ENABLE==1 should be for RCAR_V4H"
|
||||
#endif
|
||||
#if (BL2_LOAD_ENABLE == 0)
|
||||
#error "BL2_LOAD_ENABLE==1 should be for RCAR_V4H"
|
||||
#endif
|
||||
#if (QNX_OS_LOAD_ENABLE == 0)
|
||||
#error "QNX_OS_LOAD_ENABLE==1 should be for RCAR_V4H"
|
||||
#endif
|
||||
|
||||
/* CA program load num */
|
||||
#define CA_IMAGE_NUM (0x00000005U)
|
||||
/* Source address on flash for Secure FW */
|
||||
#define SECURE_FW_SRC_ADDRESS (0x00280000U)
|
||||
/* Source address on flash for RTOS#0 */
|
||||
#define RTOS_SRC_ADDRESS (0x00500000U)
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
/* Source address on eMMC for RTOS#1 */
|
||||
#define RTOS1_SRC_ADDRESS (0x01000000U)
|
||||
/* Source address on eMMC for RTOS#2 */
|
||||
#define RTOS2_SRC_ADDRESS (0x01200000U)
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Source address on flash for CX IPL */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00480000U)
|
||||
#else
|
||||
/* Reserved */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00000000U)
|
||||
#endif
|
||||
/* ----------- customized ----------- */
|
||||
/* Source address on flash for BL31 */
|
||||
#define CA_PROG_01_SRC_ADDRESS (0x00D00000U)
|
||||
/* Source address on flash for U-Boot */
|
||||
#define CA_PROG_02_SRC_ADDRESS (0x00E00000U)
|
||||
/* Source address on flash for TEE-OS */
|
||||
#define CA_PROG_03_SRC_ADDRESS (0x00C00000U)
|
||||
/* Source address of CA76-Loader */
|
||||
#define CA_PROG_04_SRC_ADDRESS (0x004C0000U)
|
||||
/* Source address of QNX-OS */
|
||||
#define CA_PROG_05_SRC_ADDRESS (0x01000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_SRC_ADDRESS (0x01000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_SRC_ADDRESS (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
#if (RCAR_SA9_TYPE == FLASH_BOOT)
|
||||
#define SECURE_FW_PARTITION (0x00000000U)
|
||||
#define CX_IPL_PARTITION (0x00000000U)
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
#define RTOS_PARTITION (0x00000001U)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#define CA_PROG_04_PARTITION (0x00000001U)
|
||||
#define CA_PROG_05_PARTITION (0x00000001U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
#define RTOS1_PARTITION (0x00000001U)
|
||||
#define RTOS2_PARTITION (0x00000001U)
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
#else /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#define RTOS_PARTITION (0x00000000U)
|
||||
#define CA_PROG_01_PARTITION (0x00000000U)
|
||||
#define CA_PROG_02_PARTITION (0x00000000U)
|
||||
#define CA_PROG_03_PARTITION (0x00000000U)
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#else /* #if (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
#define SECURE_FW_PARTITION (0x00000001U)
|
||||
#define RTOS_PARTITION (0x00000001U)
|
||||
#define CX_IPL_PARTITION (0x00000001U)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#define CA_PROG_04_PARTITION (0x00000001U)
|
||||
#define CA_PROG_05_PARTITION (0x00000001U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif
|
||||
|
||||
#if (RCAR_SA9_TYPE != EMMC_BOOT)
|
||||
/* Test data for QSPI DDR mode */
|
||||
#define QSPI_TESTDATA (0x5A5AA5A5U)
|
||||
#else
|
||||
#define QSPI_TESTDATA (0x00000000U)
|
||||
#endif /* (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
|
||||
/* Destination address for Secure FW */
|
||||
#define SECURE_FW_ADDRESS (0xEB240000U)
|
||||
#define SECURE_FW_ADDRESSH (0x00000000U)
|
||||
/* Destination size for Secure FW */
|
||||
#define SECURE_FW_DST_SIZE (0x00028000U) /* 640KiB / 4 */
|
||||
/* Destination address for RTOS#0 */
|
||||
#define RTOS_ADDRESS (0xE2100000U)
|
||||
#define RTOS_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#0 */
|
||||
#define RTOS_DST_SIZE (0x001C0000U) /* 7MiB / 4 */
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
/* Destination address for RTOS#1 */
|
||||
#define RTOS1_ADDRESS (0xE3100000U)
|
||||
#define RTOS1_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#1 */
|
||||
#define RTOS1_DST_SIZE (0x00080000U) /* 2MiB / 4 */
|
||||
/* Destination address for RTOS#2 */
|
||||
#define RTOS2_ADDRESS (0xE2000000U)
|
||||
#define RTOS2_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#2 */
|
||||
#define RTOS2_DST_SIZE (0x00004000U) /* 64KiB / 4 */
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Destination address for CA Loader */
|
||||
#define CX_IPL_ADDRESS (0xE6300000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
/* Destination size for CA Loader */
|
||||
#define CX_IPL_SIZE (0x0000C000U) /* 192KiB / 4 */
|
||||
#else
|
||||
/* CX IPL Reserved */
|
||||
#define CX_IPL_ADDRESS (0x00000000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
#define CX_IPL_SIZE (0x00000000U)
|
||||
#endif
|
||||
/* ----------- customized ----------- */
|
||||
/* Destination address for BL31 */
|
||||
#define CA_PROG_01_ADDRESS (0x46400000U)
|
||||
#define CA_PROG_01_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_01_SIZE (0x00008800U) /* 136KiB / 4 */
|
||||
/* Destination address for U-Boot */
|
||||
#define CA_PROG_02_ADDRESS (0x50000000U)
|
||||
#define CA_PROG_02_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_02_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
/* Destination address for tee-OS */
|
||||
#define CA_PROG_03_ADDRESS (0x44100000U)
|
||||
#define CA_PROG_03_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_03_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
/* Destination address for CA76-Loader */
|
||||
#define CA_PROG_04_ADDRESS (0x41D00000U)
|
||||
#define CA_PROG_04_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_04_SIZE (0x00008000U) /* 128KiB / 4 */
|
||||
/* Destination address of QNX-OS */
|
||||
#define CA_PROG_05_ADDRESS (0x50100000U)
|
||||
#define CA_PROG_05_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_05_SIZE (0x00200000U) /* 8MiB / 4 */
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_06_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_06_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_07_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_07_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_08_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_08_SIZE (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
/* sa9 */
|
||||
__attribute__ ((section (".sa9_top"))) const uint32_t top_cert[1024 / 4] = {
|
||||
[0x0000 / 4] = CA_IMAGE_NUM,
|
||||
[0x0008 / 4] = SECURE_FW_SRC_ADDRESS,
|
||||
[0x0010 / 4] = SECURE_FW_PARTITION,
|
||||
[0x0018 / 4] = RTOS_SRC_ADDRESS,
|
||||
[0x0020 / 4] = RTOS_PARTITION,
|
||||
[0x0028 / 4] = CX_IPL_SRC_ADDRESS,
|
||||
[0x0030 / 4] = CX_IPL_PARTITION,
|
||||
[0x0068 / 4] = CA_PROG_01_SRC_ADDRESS,
|
||||
[0x0070 / 4] = CA_PROG_01_PARTITION,
|
||||
[0x0078 / 4] = CA_PROG_02_SRC_ADDRESS,
|
||||
[0x0080 / 4] = CA_PROG_02_PARTITION,
|
||||
[0x0088 / 4] = CA_PROG_03_SRC_ADDRESS,
|
||||
[0x0090 / 4] = CA_PROG_03_PARTITION,
|
||||
[0x0098 / 4] = CA_PROG_04_SRC_ADDRESS,
|
||||
[0x00A0 / 4] = CA_PROG_04_PARTITION,
|
||||
[0x00A8 / 4] = CA_PROG_05_SRC_ADDRESS,
|
||||
[0x00B0 / 4] = CA_PROG_05_PARTITION,
|
||||
[0x00B8 / 4] = CA_PROG_06_SRC_ADDRESS,
|
||||
[0x00C0 / 4] = CA_PROG_06_PARTITION,
|
||||
[0x00C8 / 4] = CA_PROG_07_SRC_ADDRESS,
|
||||
[0x00D0 / 4] = CA_PROG_07_PARTITION,
|
||||
[0x00D8 / 4] = CA_PROG_08_SRC_ADDRESS,
|
||||
[0x00E0 / 4] = CA_PROG_08_PARTITION,
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
[0x0108 / 4] = RTOS1_SRC_ADDRESS,
|
||||
[0x0110 / 4] = RTOS1_PARTITION,
|
||||
[0x0118 / 4] = RTOS2_SRC_ADDRESS,
|
||||
[0x0120 / 4] = RTOS2_PARTITION,
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
};
|
||||
__attribute__ ((section (".qspi_test_data"))) const uint32_t test_data[1] = {
|
||||
QSPI_TESTDATA
|
||||
};
|
||||
__attribute__ ((section (".sa9_firm"))) const uint32_t firm_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = SECURE_FW_ADDRESS,
|
||||
[0x0264 / 4] = SECURE_FW_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_rtos"))) const uint32_t rtos_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS_ADDRESS,
|
||||
[0x0264 / 4] = RTOS_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_cx_ipl"))) const uint32_t cx_ipl_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CX_IPL_ADDRESS,
|
||||
[0x0264 / 4] = CX_IPL_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_01"))) const uint32_t ca_01_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_01_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_01_SIZE,
|
||||
};
|
||||
|
||||
__attribute__ ((section (".sa9_ca_02"))) const uint32_t ca_02_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_02_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_02_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_03"))) const uint32_t ca_03_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_03_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_03_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_04"))) const uint32_t ca_04_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_04_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_04_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_05"))) const uint32_t ca_05_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_05_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_05_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_06"))) const uint32_t ca_06_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_06_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_06_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_07"))) const uint32_t ca_07_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_07_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_07_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_08"))) const uint32_t ca_08_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_08_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_08_SIZE,
|
||||
};
|
||||
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
__attribute__ ((section (".sa9_rtos_01"))) const uint32_t rtos1_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS1_ADDRESS,
|
||||
[0x0264 / 4] = RTOS1_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_rtos_02"))) const uint32_t rtos2_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS2_ADDRESS,
|
||||
[0x0264 / 4] = RTOS2_DST_SIZE,
|
||||
};
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
/* TFMV key(8KB) + NTFMV key(8KB) + minimum version table(4KB) */
|
||||
__attribute__ ((section (".reserved"))) const uint32_t reserved[20480 / 4] = {0};
|
||||
/* G4MH cert * 2 + ICUMH Cert */
|
||||
__attribute__ ((section (".reserved2"))) const uint32_t reserved2[6144 / 4] = {0};
|
||||
@@ -0,0 +1,67 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2021-2024 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000) linker directive
|
||||
******************************************************************************/
|
||||
DEFAULTS {
|
||||
dummy_addr = 0xEB230000
|
||||
|
||||
dummy_size = 64K
|
||||
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
rt_sram : ORIGIN = dummy_addr, LENGTH = dummy_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// Dummy Certificate
|
||||
//
|
||||
_start = dummy_addr;
|
||||
.sa9_top ALIGN(1024) : > rt_sram /* Offset 0x00240000 */
|
||||
.qspi_test_data ALIGN(1024) : > . /* Offset 0x00240400 */
|
||||
.reserved ALIGN(4096) : > .
|
||||
.sa9_firm ALIGN(1024) : > . /* Offset 0x00246000 */
|
||||
.sa9_rtos ALIGN(1024) : > . /* Offset 0x00246800 */
|
||||
.sa9_cx_ipl ALIGN(1024) : > . /* Offset 0x00247000 */
|
||||
.reserved2 ALIGN(1024) : > .
|
||||
.sa9_ca_01 ALIGN(1024) : > . /* Offset 0x00249000 */
|
||||
.sa9_ca_02 ALIGN(1024) : > . /* Offset 0x00249800 */
|
||||
.sa9_ca_03 ALIGN(1024) : > . /* Offset 0x0024A000 */
|
||||
.sa9_ca_04 ALIGN(1024) : > . /* Offset 0x0024A800 */
|
||||
.sa9_ca_05 ALIGN(1024) : > . /* Offset 0x0024B000 */
|
||||
.sa9_ca_06 ALIGN(1024) : > . /* Offset 0x0024B800 */
|
||||
.sa9_ca_07 ALIGN(1024) : > . /* Offset 0x0024C000 */
|
||||
.sa9_ca_08 ALIGN(1024) : > . /* Offset 0x0024C800 */
|
||||
/* 0x0024D000 - 0x0024DFFF is area for TFMV/NTFMV minimum version table certificate */
|
||||
.sa9_rtos_01 ALIGN(1024) PAD(4096) : > . /* Offset 0x0024E000 */
|
||||
.sa9_rtos_02 ALIGN(1024) : > . /* Offset 0x0024E800 */
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
@@ -0,0 +1,316 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2023-2025 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000)
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <image_load.h>
|
||||
|
||||
#define FLASH_BOOT (0U)
|
||||
#define EMMC_BOOT (1U)
|
||||
#define CA_IPL (0U)
|
||||
#define BL31 (1U)
|
||||
|
||||
#define RTOS_LOAD_NUM_1 (1U)
|
||||
#define RTOS_LOAD_NUM_3 (3U)
|
||||
|
||||
/* CA program load num */
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
#define CA_IMAGE_NUM (0x00000002U)
|
||||
#else
|
||||
#define CA_IMAGE_NUM (0x00000003U)
|
||||
#endif /* OPTEE_LOAD_ENABLE == OPTEE_DISABLE */
|
||||
/* Source address on flash for Secure FW */
|
||||
#define SECURE_FW_SRC_ADDRESS (0x00280000U)
|
||||
/* Source address on flash for RTOS#0 */
|
||||
#define RTOS_SRC_ADDRESS (0x00000000U)
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
/* Source address on eMMC for RTOS#1 */
|
||||
#define RTOS1_SRC_ADDRESS (0x01000000U)
|
||||
/* Source address on eMMC for RTOS#2 */
|
||||
#define RTOS2_SRC_ADDRESS (0x01200000U)
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Source address on flash for CX IPL */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00480000U)
|
||||
#else
|
||||
/* Reserved */
|
||||
#define CX_IPL_SRC_ADDRESS (0x00000000U)
|
||||
#endif
|
||||
/* ----------- customized ----------- */
|
||||
/* Source address on flash for BL31 */
|
||||
#define CA_PROG_01_SRC_ADDRESS (0x01400000U)
|
||||
/* Source address on flash for U-Boot */
|
||||
#define CA_PROG_02_SRC_ADDRESS (0x01580000U)
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
/* Reserved */
|
||||
#define CA_PROG_03_SRC_ADDRESS (0x00000000U)
|
||||
#else
|
||||
/* Source address on flash for OP-TEE */
|
||||
#define CA_PROG_03_SRC_ADDRESS (0x01480000U)
|
||||
#endif /* OPTEE_LOAD_ENABLE == OPTEE_DISABLE */
|
||||
/* Reserved */
|
||||
#define CA_PROG_04_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_05_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_SRC_ADDRESS (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_SRC_ADDRESS (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
#if (RCAR_SA9_TYPE == FLASH_BOOT)
|
||||
#define SECURE_FW_PARTITION (0x00000000U)
|
||||
#define CX_IPL_PARTITION (0x00000000U)
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
#define RTOS_PARTITION (0x00000001U)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
#define CA_PROG_03_PARTITION (0x00000000U)
|
||||
#else
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#endif /* OPTEE_LOAD_ENABLE == OPTEE_DISABLE */
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
#define RTOS1_PARTITION (0x00000001U)
|
||||
#define RTOS2_PARTITION (0x00000001U)
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
#else /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#define RTOS_PARTITION (0x00000000U)
|
||||
#define CA_PROG_01_PARTITION (0x00000000U)
|
||||
#define CA_PROG_02_PARTITION (0x00000000U)
|
||||
#define CA_PROG_03_PARTITION (0x00000000U)
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif /* #if (CA_LOAD_TYPE == CA_IPL) */
|
||||
#else /* #if (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
#define SECURE_FW_PARTITION (0x00000001U)
|
||||
#define RTOS_PARTITION (0x00000001U)
|
||||
#define CX_IPL_PARTITION (0x00000001U)
|
||||
#define CA_PROG_01_PARTITION (0x00000001U)
|
||||
#define CA_PROG_02_PARTITION (0x00000001U)
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
#define CA_PROG_03_PARTITION (0x00000000U)
|
||||
#else
|
||||
#define CA_PROG_03_PARTITION (0x00000001U)
|
||||
#endif /* OPTEE_LOAD_ENABLE == OPTEE_DISABLE */
|
||||
#define CA_PROG_04_PARTITION (0x00000000U)
|
||||
#define CA_PROG_05_PARTITION (0x00000000U)
|
||||
#define CA_PROG_06_PARTITION (0x00000000U)
|
||||
#define CA_PROG_07_PARTITION (0x00000000U)
|
||||
#define CA_PROG_08_PARTITION (0x00000000U)
|
||||
#endif
|
||||
|
||||
#if (RCAR_SA9_TYPE != EMMC_BOOT)
|
||||
/* Test data for QSPI DDR mode */
|
||||
#define QSPI_TESTDATA (0x5A5AA5A5U)
|
||||
#else
|
||||
#define QSPI_TESTDATA (0x00000000U)
|
||||
#endif /* (RCAR_SA9_TYPE == FLASH_BOOT) */
|
||||
|
||||
/* Destination address for Secure FW */
|
||||
#define SECURE_FW_ADDRESS (0xEB240000U)
|
||||
#define SECURE_FW_ADDRESSH (0x00000000U)
|
||||
/* Destination size for Secure FW */
|
||||
#define SECURE_FW_DST_SIZE (0x00028000U) /* 640KiB / 4 */
|
||||
/* Destination address for RTOS#0 */
|
||||
#define RTOS_ADDRESS (0xE2100000U)
|
||||
#define RTOS_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#0 */
|
||||
#define RTOS_DST_SIZE (0x00400000U) /* 16MiB / 4 */
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
/* Destination address for RTOS#1 */
|
||||
#define RTOS1_ADDRESS (0xE3100000U)
|
||||
#define RTOS1_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#1 */
|
||||
#define RTOS1_DST_SIZE (0x00080000U) /* 2MiB / 4 */
|
||||
/* Destination address for RTOS#2 */
|
||||
#define RTOS2_ADDRESS (0xE2000000U)
|
||||
#define RTOS2_ADDRESSH (0x00000000U)
|
||||
/* Destination size for RTOS#2 */
|
||||
#define RTOS2_DST_SIZE (0x00004000U) /* 64KiB / 4 */
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Destination address for CA Loader */
|
||||
#define CX_IPL_ADDRESS (0xE6300000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
/* Destination size for CA Loader */
|
||||
#define CX_IPL_SIZE (0x0000C000U) /* 192KiB / 4 */
|
||||
#else
|
||||
/* CX IPL Reserved */
|
||||
#define CX_IPL_ADDRESS (0x00000000U)
|
||||
#define CX_UPL_ADDRESSH (0x00000000U)
|
||||
#define CX_IPL_SIZE (0x00000000U)
|
||||
#endif
|
||||
/* ----------- customized ----------- */
|
||||
/* Destination address for BL31 */
|
||||
#define CA_PROG_01_ADDRESS (0x46400000U)
|
||||
#define CA_PROG_01_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_01_SIZE (0x00008800U) /* 136KiB / 4 */
|
||||
/* Destination address for U-Boot */
|
||||
#define CA_PROG_02_ADDRESS (0x50000000U)
|
||||
#define CA_PROG_02_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_02_SIZE (0x00080000U) /* 2MiB / 4 */
|
||||
#if (OPTEE_LOAD_ENABLE == OPTEE_DISABLE)
|
||||
/* Reserved */
|
||||
#define CA_PROG_03_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_03_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_03_SIZE (0x00000000U)
|
||||
#else
|
||||
/* Destination address for OP-TEE */
|
||||
#define CA_PROG_03_ADDRESS (0x44100000U)
|
||||
#define CA_PROG_03_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_03_SIZE (0x00040000U) /* 1MiB / 4 */
|
||||
#endif /* OPTEE_LOAD_ENABLE == OPTEE_DISABLE */
|
||||
/* Reserved */
|
||||
#define CA_PROG_04_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_04_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_04_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_05_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_05_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_05_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_06_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_06_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_07_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_07_SIZE (0x00000000U)
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_ADDRESS (0x00000000U)
|
||||
#define CA_PROG_08_ADDRESSH (0x00000000U)
|
||||
#define CA_PROG_08_SIZE (0x00000000U)
|
||||
/* ----------- customized ----------- */
|
||||
|
||||
/* sa9 */
|
||||
__attribute__ ((section (".sa9_top"))) const uint32_t top_cert[1024 / 4] = {
|
||||
[0x0000 / 4] = CA_IMAGE_NUM,
|
||||
[0x0008 / 4] = SECURE_FW_SRC_ADDRESS,
|
||||
[0x0010 / 4] = SECURE_FW_PARTITION,
|
||||
[0x0018 / 4] = RTOS_SRC_ADDRESS,
|
||||
[0x0020 / 4] = RTOS_PARTITION,
|
||||
[0x0028 / 4] = CX_IPL_SRC_ADDRESS,
|
||||
[0x0030 / 4] = CX_IPL_PARTITION,
|
||||
[0x0068 / 4] = CA_PROG_01_SRC_ADDRESS,
|
||||
[0x0070 / 4] = CA_PROG_01_PARTITION,
|
||||
[0x0078 / 4] = CA_PROG_02_SRC_ADDRESS,
|
||||
[0x0080 / 4] = CA_PROG_02_PARTITION,
|
||||
[0x0088 / 4] = CA_PROG_03_SRC_ADDRESS,
|
||||
[0x0090 / 4] = CA_PROG_03_PARTITION,
|
||||
[0x0098 / 4] = CA_PROG_04_SRC_ADDRESS,
|
||||
[0x00A0 / 4] = CA_PROG_04_PARTITION,
|
||||
[0x00A8 / 4] = CA_PROG_05_SRC_ADDRESS,
|
||||
[0x00B0 / 4] = CA_PROG_05_PARTITION,
|
||||
[0x00B8 / 4] = CA_PROG_06_SRC_ADDRESS,
|
||||
[0x00C0 / 4] = CA_PROG_06_PARTITION,
|
||||
[0x00C8 / 4] = CA_PROG_07_SRC_ADDRESS,
|
||||
[0x00D0 / 4] = CA_PROG_07_PARTITION,
|
||||
[0x00D8 / 4] = CA_PROG_08_SRC_ADDRESS,
|
||||
[0x00E0 / 4] = CA_PROG_08_PARTITION,
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
[0x0108 / 4] = RTOS1_SRC_ADDRESS,
|
||||
[0x0110 / 4] = RTOS1_PARTITION,
|
||||
[0x0118 / 4] = RTOS2_SRC_ADDRESS,
|
||||
[0x0120 / 4] = RTOS2_PARTITION,
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
};
|
||||
__attribute__ ((section (".qspi_test_data"))) const uint32_t test_data[1] = {
|
||||
QSPI_TESTDATA
|
||||
};
|
||||
__attribute__ ((section (".sa9_firm"))) const uint32_t firm_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = SECURE_FW_ADDRESS,
|
||||
[0x0264 / 4] = SECURE_FW_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_rtos"))) const uint32_t rtos_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS_ADDRESS,
|
||||
[0x0264 / 4] = RTOS_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_cx_ipl"))) const uint32_t cx_ipl_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CX_IPL_ADDRESS,
|
||||
[0x0264 / 4] = CX_IPL_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_01"))) const uint32_t ca_01_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_01_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_01_SIZE,
|
||||
};
|
||||
|
||||
__attribute__ ((section (".sa9_ca_02"))) const uint32_t ca_02_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_02_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_02_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_03"))) const uint32_t ca_03_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_03_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_03_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_04"))) const uint32_t ca_04_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_04_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_04_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_05"))) const uint32_t ca_05_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_05_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_05_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_06"))) const uint32_t ca_06_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_06_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_06_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_07"))) const uint32_t ca_07_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_07_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_07_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_ca_08"))) const uint32_t ca_08_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = CA_PROG_08_ADDRESS,
|
||||
[0x0264 / 4] = CA_PROG_08_SIZE,
|
||||
};
|
||||
|
||||
#if (RTOS_LOAD_NUM == RTOS_LOAD_NUM_3)
|
||||
__attribute__ ((section (".sa9_rtos_01"))) const uint32_t rtos1_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS1_ADDRESS,
|
||||
[0x0264 / 4] = RTOS1_DST_SIZE,
|
||||
};
|
||||
__attribute__ ((section (".sa9_rtos_02"))) const uint32_t rtos2_cert[2048 / 4] = {
|
||||
[0x0154 / 4] = RTOS2_ADDRESS,
|
||||
[0x0264 / 4] = RTOS2_DST_SIZE,
|
||||
};
|
||||
#endif /* RTOS_LOAD_NUM == RTOS_LOAD_NUM_3 */
|
||||
|
||||
/* TFMV key(8KB) + NTFMV key(8KB) + minimum version table(4KB) */
|
||||
__attribute__ ((section (".reserved"))) const uint32_t reserved[20480 / 4] = {0};
|
||||
/* G4MH cert * 2 + ICUMH Cert */
|
||||
__attribute__ ((section (".reserved2"))) const uint32_t reserved2[6144 / 4] = {0};
|
||||
@@ -0,0 +1,68 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2023-2024 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : dummy flash data for sector 9(0x240000) linker directive
|
||||
******************************************************************************/
|
||||
DEFAULTS {
|
||||
dummy_addr = 0xEB230000
|
||||
|
||||
dummy_size = 64K
|
||||
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
rt_sram : ORIGIN = dummy_addr, LENGTH = dummy_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// Dummy Certificate
|
||||
//
|
||||
_start = dummy_addr;
|
||||
.sa9_top ALIGN(1024) : > rt_sram /* Offset 0x00240000 */
|
||||
.qspi_test_data ALIGN(1024) : > . /* Offset 0x00240400 */
|
||||
.reserved ALIGN(4096) : > .
|
||||
.sa9_firm ALIGN(1024) : > . /* Offset 0x00246000 */
|
||||
.sa9_rtos ALIGN(1024) : > . /* Offset 0x00246800 */
|
||||
.sa9_cx_ipl ALIGN(1024) : > . /* Offset 0x00247000 */
|
||||
.reserved2 ALIGN(1024) : > .
|
||||
.sa9_ca_01 ALIGN(1024) : > . /* Offset 0x00249000 */
|
||||
.sa9_ca_02 ALIGN(1024) : > . /* Offset 0x00249800 */
|
||||
.sa9_ca_03 ALIGN(1024) : > . /* Offset 0x0024A000 */
|
||||
.sa9_ca_04 ALIGN(1024) : > . /* Offset 0x0024A800 */
|
||||
.sa9_ca_05 ALIGN(1024) : > . /* Offset 0x0024B000 */
|
||||
.sa9_ca_06 ALIGN(1024) : > . /* Offset 0x0024B800 */
|
||||
.sa9_ca_07 ALIGN(1024) : > . /* Offset 0x0024C000 */
|
||||
.sa9_ca_08 ALIGN(1024) : > . /* Offset 0x0024C800 */
|
||||
/* 0x0024D000 - 0x0024DFFF is area for TFMV/NTFMV minimum version table certificate */
|
||||
.sa9_rtos_01 ALIGN(1024) PAD(4096) : > . /* Offset 0x0024E000 */
|
||||
.sa9_rtos_02 ALIGN(1024) : > . /* Offset 0x0024E800 */
|
||||
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2022-2023 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : NTFMV Software minimum version table
|
||||
******************************************************************************/
|
||||
/******************************************************************************
|
||||
* @file ntfmv_ver_tbl.c
|
||||
* - Version : 0.02
|
||||
* @brief NTFMV Software minimum version table.
|
||||
* This is sample source code.
|
||||
* .
|
||||
*****************************************************************************/
|
||||
/******************************************************************************
|
||||
* History : DD.MM.YYYY Version Description
|
||||
* : 05.08.2022 0.01 First Release
|
||||
* : 21.08.2023 0.02 Add support for V4M.
|
||||
*****************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M))
|
||||
/* Minimum software version of U-Boot(V4H) */
|
||||
#define CA_PROG_02_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_02_VER_OFFSET (0x00000000U)
|
||||
#else /* ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M)) */
|
||||
/* Reserved */
|
||||
#define CA_PROG_02_CHECK_FLAG (0x00000000U)
|
||||
#define CA_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_02_VER_OFFSET (0x00000000U)
|
||||
#endif /* ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M)) */
|
||||
|
||||
/* Minimum software version of U-Boot(S4) */
|
||||
#define CA_PROG_03_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_03_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_03_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Reserved */
|
||||
#define CA_PROG_04_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_04_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_04_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Reserved */
|
||||
#define CA_PROG_05_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_05_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_05_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Reserved */
|
||||
#define CA_PROG_06_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_06_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_06_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Reserved */
|
||||
#define CA_PROG_07_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_07_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_07_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Reserved */
|
||||
#define CA_PROG_08_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_08_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_08_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* For 16-byte boundary */
|
||||
#define RESERVED_FOR_PADDING (0x00000000U)
|
||||
|
||||
__attribute__ ((section (".ntfmv_tbl_top"))) const uint32_t ntfmv_ver_tbl[] = {
|
||||
[0x0000 / 4] = CA_PROG_02_CHECK_FLAG,
|
||||
[0x0004 / 4] = CA_PROG_02_SW_VERSION,
|
||||
[0x0008 / 4] = CA_PROG_02_VER_OFFSET,
|
||||
[0x0010 / 4] = CA_PROG_03_CHECK_FLAG,
|
||||
[0x0014 / 4] = CA_PROG_03_SW_VERSION,
|
||||
[0x0018 / 4] = CA_PROG_03_VER_OFFSET,
|
||||
[0x0020 / 4] = CA_PROG_04_CHECK_FLAG,
|
||||
[0x0024 / 4] = CA_PROG_04_SW_VERSION,
|
||||
[0x0028 / 4] = CA_PROG_04_VER_OFFSET,
|
||||
[0x0030 / 4] = CA_PROG_05_CHECK_FLAG,
|
||||
[0x0034 / 4] = CA_PROG_05_SW_VERSION,
|
||||
[0x0038 / 4] = CA_PROG_05_VER_OFFSET,
|
||||
[0x0040 / 4] = CA_PROG_06_CHECK_FLAG,
|
||||
[0x0044 / 4] = CA_PROG_06_SW_VERSION,
|
||||
[0x0048 / 4] = CA_PROG_06_VER_OFFSET,
|
||||
[0x0050 / 4] = CA_PROG_07_CHECK_FLAG,
|
||||
[0x0054 / 4] = CA_PROG_07_SW_VERSION,
|
||||
[0x0058 / 4] = CA_PROG_07_VER_OFFSET,
|
||||
[0x0060 / 4] = CA_PROG_08_CHECK_FLAG,
|
||||
[0x0064 / 4] = CA_PROG_08_SW_VERSION,
|
||||
[0x0068 / 4] = CA_PROG_08_VER_OFFSET,
|
||||
[0x006C / 4] = RESERVED_FOR_PADDING, /* Adjust to 16-byte boundary */
|
||||
};
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : linker directive for NTFMV Software minimum version table
|
||||
******************************************************************************/
|
||||
/******************************************************************************
|
||||
* @file ntfmv_ver_tbl.ld
|
||||
* - Version : 0.01
|
||||
* @brief linker directive for NTFMV Software minimum version table.
|
||||
* .
|
||||
*****************************************************************************/
|
||||
/******************************************************************************
|
||||
* History : DD.MM.YYYY Version Description
|
||||
* : 05.08.2022 0.01 First Release
|
||||
*****************************************************************************/
|
||||
|
||||
DEFAULTS {
|
||||
tbl_base_addr = 0xEB235800
|
||||
|
||||
tbl_size = 2K
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
rt_sram : ORIGIN = tbl_base_addr, LENGTH = tbl_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// NTFMV Software minimum version table
|
||||
//
|
||||
_start = tbl_base_addr;
|
||||
.ntfmv_tbl_top ALIGN(1024) : > rt_sram
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : TFMV Software minimum version table
|
||||
******************************************************************************/
|
||||
/******************************************************************************
|
||||
* @file tfmv_ver_tbl.c
|
||||
* - Version : 0.01
|
||||
* @brief TFMV Software minimum version table.
|
||||
* This is sample source code.
|
||||
* .
|
||||
*****************************************************************************/
|
||||
/******************************************************************************
|
||||
* History : DD.MM.YYYY Version Description
|
||||
* : 05.08.2022 0.01 First Release
|
||||
*****************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define CA_IPL (0U)
|
||||
|
||||
/* Minimum software version of Secure FW */
|
||||
#define SECURE_FW_CHECK_FLAG (0x00000001U) /* 0:disable other:enable */
|
||||
#define SECURE_FW_SW_VERSION (0x00000001U)
|
||||
#define SECURE_FW_VER_OFFSET (0x00000400U)
|
||||
|
||||
/* Minimum software version of RTOS */
|
||||
#define RTOS_SW_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define RTOS_SW_SW_VERSION (0x00000000U)
|
||||
#define RTOS_SW_VER_OFFSET (0x00000000U)
|
||||
|
||||
#if (CA_LOAD_TYPE == CA_IPL)
|
||||
/* Minimum software version of CX 2nd IPL */
|
||||
#define CX_2ND_IPL_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CX_2ND_IPL_SW_VERSION (0x00000000U)
|
||||
#define CX_2ND_IPL_VER_OFFSET (0x00000000U)
|
||||
#else /* (CA_LOAD_TYPE == CA_IPL) */
|
||||
/* Reserved */
|
||||
#define CX_2ND_IPL_CHECK_FLAG (0x00000000U)
|
||||
#define CX_2ND_IPL_SW_VERSION (0x00000000U)
|
||||
#define CX_2ND_IPL_VER_OFFSET (0x00000000U)
|
||||
#endif /* (CA_LOAD_TYPE == CA_IPL) */
|
||||
|
||||
#if (RCAR_LSI == RCAR_S4)
|
||||
/* Minimum software version of ICUMH program */
|
||||
#define ICUMH_PROG_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define ICUMH_PROG_SW_VERSION (0x00000000U)
|
||||
#define ICUMH_PROG_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Minimum software version of G4MH program(1st) */
|
||||
#define G4MH_PROG_01_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define G4MH_PROG_01_SW_VERSION (0x00000000U)
|
||||
#define G4MH_PROG_01_VER_OFFSET (0x00000000U)
|
||||
|
||||
/* Minimum software version of G4MH program(2nd) */
|
||||
#define G4MH_PROG_02_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define G4MH_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define G4MH_PROG_02_VER_OFFSET (0x00000000U)
|
||||
|
||||
#else /* (RCAR_LSI == RCAR_S4) */
|
||||
/* Reserved */
|
||||
#define ICUMH_PROG_CHECK_FLAG (0x00000000U)
|
||||
#define ICUMH_PROG_SW_VERSION (0x00000000U)
|
||||
#define ICUMH_PROG_VER_OFFSET (0x00000000U)
|
||||
#define G4MH_PROG_01_CHECK_FLAG (0x00000000U)
|
||||
#define G4MH_PROG_01_SW_VERSION (0x00000000U)
|
||||
#define G4MH_PROG_01_VER_OFFSET (0x00000000U)
|
||||
#define G4MH_PROG_02_CHECK_FLAG (0x00000000U)
|
||||
#define G4MH_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define G4MH_PROG_02_VER_OFFSET (0x00000000U)
|
||||
#endif /* (RCAR_LSI == RCAR_S4) */
|
||||
|
||||
/* Minimum software version of BL31 */
|
||||
#define CA_PROG_01_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_01_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_01_VER_OFFSET (0x00000000U)
|
||||
|
||||
#if (RCAR_LSI == RCAR_S4)
|
||||
/* Minimum software version of OP-TEE */
|
||||
#define CA_PROG_02_CHECK_FLAG (0x00000000U) /* 0:disable other:enable */
|
||||
#define CA_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_02_VER_OFFSET (0x00000000U)
|
||||
#else /* (RCAR_LSI == RCAR_S4) */
|
||||
/* Reserved */
|
||||
#define CA_PROG_02_CHECK_FLAG (0x00000000U)
|
||||
#define CA_PROG_02_SW_VERSION (0x00000000U)
|
||||
#define CA_PROG_02_VER_OFFSET (0x00000000U)
|
||||
#endif /* (RCAR_LSI == RCAR_S4) */
|
||||
|
||||
/* For 16-byte boundary */
|
||||
#define RESERVED_FOR_PADDING (0x00000000U)
|
||||
|
||||
__attribute__ ((section (".tfmv_tbl_top"))) const uint32_t tfmv_ver_tbl[] = {
|
||||
[0x0000 / 4] = SECURE_FW_CHECK_FLAG,
|
||||
[0x0004 / 4] = SECURE_FW_SW_VERSION,
|
||||
[0x0008 / 4] = SECURE_FW_VER_OFFSET,
|
||||
[0x0010 / 4] = RTOS_SW_CHECK_FLAG,
|
||||
[0x0014 / 4] = RTOS_SW_SW_VERSION,
|
||||
[0x0018 / 4] = RTOS_SW_VER_OFFSET,
|
||||
[0x0020 / 4] = CX_2ND_IPL_CHECK_FLAG,
|
||||
[0x0024 / 4] = CX_2ND_IPL_SW_VERSION,
|
||||
[0x0028 / 4] = CX_2ND_IPL_VER_OFFSET,
|
||||
[0x0030 / 4] = ICUMH_PROG_CHECK_FLAG,
|
||||
[0x0034 / 4] = ICUMH_PROG_SW_VERSION,
|
||||
[0x0038 / 4] = ICUMH_PROG_VER_OFFSET,
|
||||
[0x0040 / 4] = G4MH_PROG_01_CHECK_FLAG,
|
||||
[0x0044 / 4] = G4MH_PROG_01_SW_VERSION,
|
||||
[0x0048 / 4] = G4MH_PROG_01_VER_OFFSET,
|
||||
[0x0050 / 4] = G4MH_PROG_02_CHECK_FLAG,
|
||||
[0x0054 / 4] = G4MH_PROG_02_SW_VERSION,
|
||||
[0x0058 / 4] = G4MH_PROG_02_VER_OFFSET,
|
||||
[0x0060 / 4] = CA_PROG_01_CHECK_FLAG,
|
||||
[0x0064 / 4] = CA_PROG_01_SW_VERSION,
|
||||
[0x0068 / 4] = CA_PROG_01_VER_OFFSET,
|
||||
[0x0070 / 4] = CA_PROG_02_CHECK_FLAG,
|
||||
[0x0074 / 4] = CA_PROG_02_SW_VERSION,
|
||||
[0x0078 / 4] = CA_PROG_02_VER_OFFSET,
|
||||
[0x007C / 4] = RESERVED_FOR_PADDING, /* Adjust to 16-byte boundary */
|
||||
};
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*******************************************************************************
|
||||
* DISCLAIMER
|
||||
* This software is supplied by Renesas Electronics Corporation and is only
|
||||
* intended for use with Renesas products. No other uses are authorized. This
|
||||
* software is owned by Renesas Electronics Corporation and is protected under
|
||||
* all applicable laws, including copyright laws.
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
|
||||
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
|
||||
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
|
||||
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
|
||||
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
|
||||
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
|
||||
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
* Renesas reserves the right, without notice, to make changes to this software
|
||||
* and to discontinue the availability of this software. By using this software,
|
||||
* you agree to the additional terms and conditions found by accessing the
|
||||
* following link:
|
||||
* http://www.renesas.com/disclaimer
|
||||
* Copyright 2022 Renesas Electronics Corporation All rights reserved.
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* DESCRIPTION : linker directive for TFMV Software minimum version table
|
||||
******************************************************************************/
|
||||
/******************************************************************************
|
||||
* @file tfmv_ver_tbl.ld
|
||||
* - Version : 0.01
|
||||
* @brief linker directive for TFMV Software minimum version table.
|
||||
* .
|
||||
*****************************************************************************/
|
||||
/******************************************************************************
|
||||
* History : DD.MM.YYYY Version Description
|
||||
* : 05.08.2022 0.01 First Release
|
||||
*****************************************************************************/
|
||||
|
||||
DEFAULTS {
|
||||
tbl_base_addr = 0xEB235000
|
||||
|
||||
tbl_size = 2K
|
||||
}
|
||||
MEMORY
|
||||
{
|
||||
rt_sram : ORIGIN = tbl_base_addr, LENGTH = tbl_size
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
//
|
||||
// TFMV Software minimum version table
|
||||
//
|
||||
_start = tbl_base_addr;
|
||||
.tfmv_tbl_top ALIGN(1024) : > rt_sram
|
||||
|
||||
.sdata : > .
|
||||
.tdata : > .
|
||||
.rosdata ALIGN(4) : > .
|
||||
.sdabase ALIGN(4) : > .
|
||||
.secinfo ALIGN(4) : > .
|
||||
}
|
||||
Reference in New Issue
Block a user