diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2019-10-23 12:16:17 +0100 |
---|---|---|
committer | Rui Miguel Silva <rui.silva@linaro.org> | 2019-10-23 12:16:17 +0100 |
commit | 5a6e425cc46360815940509d2fb0414abe379520 (patch) | |
tree | 106fead21da99c27c2af0fd462f7890c387ab53e | |
parent | 7c6df29d232961df2577ab9ab84b8ae504c24179 (diff) |
corstone700: bootfirmware: reduce memory usageruntime_less_3mb
Add patch from Tushar which reduces meory usage.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r-- | meta-corstone700/recipes-bsp/boot-firmware/boot-firmware.bb | 1 | ||||
-rw-r--r-- | meta-corstone700/recipes-bsp/boot-firmware/boot-firmware/0001-reduce-memory-usage.patch | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware.bb b/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware.bb index e4eb074..3aac549 100644 --- a/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware.bb +++ b/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware.bb @@ -18,6 +18,7 @@ SRC_URI = " \ gitsm://${USER}@git.linaro.org/landing-teams/working/arm/boot-firmware.git;protocol=https;branch=master \ file://0001-do-not-abort-on-failed-ram-rootfs.patch \ file://0002-allow-secure-and-non-secure-access-to-host-flash.patch \ + file://0001-reduce-memory-usage.patch \ " SRCREV = "CORSTONE-700-2019.09.23" diff --git a/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware/0001-reduce-memory-usage.patch b/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware/0001-reduce-memory-usage.patch new file mode 100644 index 0000000..15edb03 --- /dev/null +++ b/meta-corstone700/recipes-bsp/boot-firmware/boot-firmware/0001-reduce-memory-usage.patch @@ -0,0 +1,59 @@ +From ff07cb1c784c768b5c4d6d82170fb2d706000382 Mon Sep 17 00:00:00 2001 +From: Tushar Khandelwal <tushar.khandelwal@arm.com> +Date: Fri, 18 Oct 2019 14:39:27 +0100 +Subject: [PATCH] reduce memory usage + +Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com> +--- + module/firewall/src/mod_firewall.c | 6 ++++-- + module/host_boot/src/mod_host_boot.c | 2 +- + product/corstone-700/include/se_system_mmap.h | 2 +- + 3 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/module/firewall/src/mod_firewall.c b/module/firewall/src/mod_firewall.c +index facef0f..851ef05 100755 +--- a/module/firewall/src/mod_firewall.c ++++ b/module/firewall/src/mod_firewall.c +@@ -125,9 +125,11 @@ static int host_firewall_setup(void) + fc_disable_regions(); + fc_prog_rgn(RGN_SIZE_1MB, HOST_SHARED_RAM_BASE); + // Enable All secure accesses from any masters +- fc_enable_mpl(RGN_MPE0, (enum rgn_mpl_t)0x1FC0); ++ //fc_enable_mpl(RGN_MPE0, (enum rgn_mpl_t)0x1FC0); + // Disable All non-secure accesses +- fc_disable_mpl(RGN_MPE0, (enum rgn_mpl_t)0x3F); ++ //fc_disable_mpl(RGN_MPE0, (enum rgn_mpl_t)0x3F); ++ // Enable All accesses (secure and non-secure) from any masters ++ fc_enable_mpl(RGN_MPE0, (enum rgn_mpl_t)0x1FFF); + fc_enable_mpe(RGN_MPE0); + fc_enable_regions(); + fc_rgn_lock(); +diff --git a/module/host_boot/src/mod_host_boot.c b/module/host_boot/src/mod_host_boot.c +index d1195b6..e1b1efd 100755 +--- a/module/host_boot/src/mod_host_boot.c ++++ b/module/host_boot/src/mod_host_boot.c +@@ -50,7 +50,7 @@ static void program_bir(void) + */ + bir_base[0] = 0xE51F1000; + bir_base[1] = 0xE12fff11; +- bir_base[2] = 0x02002000; ++ bir_base[2] = 0x03002000; + } + static void bring_host_out_of_reset(void) + { +diff --git a/product/corstone-700/include/se_system_mmap.h b/product/corstone-700/include/se_system_mmap.h +index cf94218..3a35467 100755 +--- a/product/corstone-700/include/se_system_mmap.h ++++ b/product/corstone-700/include/se_system_mmap.h +@@ -35,7 +35,7 @@ + #define ROOTFS_FLASH_BASE (SE_FLASH_BASE + 0x100000) + #define ROOTFS_HOST_FLASH_BASE (HOST_FLASH_BASE + 0x100000) + #define XIP_HOST_FLASH_BASE (HOST_FLASH_BASE + 0x500000) +-#define HOST_BL32_BASE (SE_SHARED_RAM_ACCESS + 0x2000) ++#define HOST_BL32_BASE (SE_SHARED_RAM_ACCESS + 0x1002000) + #define HOST_DTB_BASE (SE_SHARED_RAM_ACCESS + 0x800000) + #define ROOTFS_SRAM_BASE (SE_SHARED_RAM_ACCESS + 0xa00000) + +-- +2.17.1 + |