From e873669b0450e0f28de5a60136f3f687b6bc0b0b Mon Sep 17 00:00:00 2001 From: Dustin Crossman Date: Wed, 5 Feb 2020 10:54:38 -0800 Subject: [PATCH] Added policy file and removed old secure tools config file. --- .../policy_single_stage_CM4.json | 134 ++++++++++++++++++ .../secure_image_parameters.json | 17 --- 2 files changed, 134 insertions(+), 17 deletions(-) create mode 100644 targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy_single_stage_CM4.json delete mode 100644 targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/secure_image_parameters.json diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy_single_stage_CM4.json b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy_single_stage_CM4.json new file mode 100644 index 0000000000..b3aec42e23 --- /dev/null +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy_single_stage_CM4.json @@ -0,0 +1,134 @@ +{ + "debug" : + { + "m0p" : { + "permission" : "enabled", + "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, + "monotonic": 0, + "smif_id": 0, + "upgrade": false, + "upgrade_auth": [ + 3 + ], + "resources": [ + { + "type": "FLASH_PC1_SPM", + "address": 270336000, + "size": 65536 + }, + { + "type": "SRAM_SPM_PRIV", + "address": 135004160, + "size": 262144 + }, + { + "type": "SRAM_DAP", + "address": 135184384, + "size": 16384 + } + ] + }, + { + "boot_auth": [ + 8 + ], + "boot_keys": [ + { "kid": 8, "key": "../keys/USERAPP_CM4_KEY.json" } + ], + "id": 4, + "monotonic": 0, + "smif_id": 0, + "upgrade": true, + "version": "0.1", + "rollback_counter": 0, + "encrypt": false, + "encrypt_key": "../keys/image-aes-128.key", + "encrypt_key_id": 1, + "encrypt_peer": "../keys/dev_pub_key.pem", + "upgrade_auth": [ + 8 + ], + "upgrade_keys": [ + { "kid": 8, "key": "../keys/USERAPP_CM4_KEY.json" } + ], + "resources": [ + { + "type": "BOOT", + "address": 268435456, + "size": 327680 + }, + { + "type": "UPGRADE", + "address": 268763136, + "size": 327680 + } + ] + } + ] + }, + "cy_bootloader": + { + "mode": "debug" + }, + "provisioning": + { + "packet_dir": "../packet", + "chain_of_trust": [] + } +} \ No newline at end of file diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/secure_image_parameters.json b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/secure_image_parameters.json deleted file mode 100644 index b66402fccc..0000000000 --- a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/secure_image_parameters.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "boot0" : { - "VERSION" : "0.1", - "ROLLBACK_COUNTER" : "0" - }, - - "boot1" : { - "VERSION" : "0.1", - "ROLLBACK_COUNTER" : "0" - }, - - "sdk_path" : "targets/TARGET_Cypress/TARGET_PSOC6/sb-tools/", - "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" -}