From 27f9cf85de123505ffddb8da403441868aa39c2e Mon Sep 17 00:00:00 2001 From: Roman Okhrimenko Date: Tue, 15 Oct 2019 16:07:56 +0300 Subject: [PATCH] Added specific policy file for 2M device to expand slot sizes --- .../secure_image_parameters.json | 2 +- .../policy/policy_single_stage_CM4_2m.json | 113 ++++++++++++++++++ 2 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 targets/TARGET_Cypress/TARGET_PSOC6/sb-tools/policy/policy_single_stage_CM4_2m.json diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064S2_4343W/secure_image_parameters.json b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064S2_4343W/secure_image_parameters.json index b66402fccc..bae6642e49 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064S2_4343W/secure_image_parameters.json +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064S2_4343W/secure_image_parameters.json @@ -13,5 +13,5 @@ "priv_key_file": "keys/USERAPP_CM4_KEY_PRIV.pem", "aes_key_file": "keys/image-aes-128.key", "dev_pub_key_file": "keys/dev_pub_key.pem", - "policy_file": "policy/policy_single_stage_CM4.json" + "policy_file": "policy/policy_single_stage_CM4_2m.json" } diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/sb-tools/policy/policy_single_stage_CM4_2m.json b/targets/TARGET_Cypress/TARGET_PSOC6/sb-tools/policy/policy_single_stage_CM4_2m.json new file mode 100644 index 0000000000..b2ec1c87d5 --- /dev/null +++ b/targets/TARGET_Cypress/TARGET_PSOC6/sb-tools/policy/policy_single_stage_CM4_2m.json @@ -0,0 +1,113 @@ +{ + "debug" : + { + "m0p" : { + "permission" : "disabled", + "control" : "firmware", + "key" : 5 + }, + "m4" : { + "permission" : "allowed", + "control" : "firmware", + "key" : 5 + }, + "system" : { + "permission" : "enabled", + "control" : "firmware", + "key" : 5, + "syscall": true, + "mmio": true, + "flash": true, + "workflash": true, + "sflash": true, + "sram": true + }, + "rma" : { + "permission" : "allowed", + "destroy_fuses" : [ + { + "start" : 888, + "size" : 136 + }, + { + "start" : 648, + "size" : 104 + } + ], + "destroy_flash" : [ + { + "start" : 268435456, + "size" : 851968 + }, + { + "start" : 269483520, + "size" : 16 + } + ], + "key" : 5 + } + }, + "wounding" : + { + }, + "boot_upgrade" : + { + "title": "upgrade_policy", + "firmware": [ + { + "boot_auth": [ + 3 + ], + "id": 0, + "launch": 4, + "smif_id": 0, + "upgrade": false, + "upgrade_auth": [ + 3 + ], + "resources": [ + { + "type": "FLASH_PC1_SPM", + "address": 269287424, + "size": 65536 + }, + { + "type": "SRAM_SPM_PRIV", + "address": 134348800, + "size": 65536 + }, + { + "type": "SRAM_DAP", + "address": 134397952, + "size": 16384 + } + ] + }, + { + "boot_auth": [ + 8 + ], + "id": 4, + "monotonic": 0, + "smif_id": 0, + "upgrade": true, + "upgrade_auth": [ + 8 + ], + + "resources": [ + { + "type": "BOOT", + "address": 268435456, + "size": 655360 + }, + { + "type": "UPGRADE", + "address": 269090816, + "size": 655360 + } + ] + } + ] + } +} \ No newline at end of file