Added policy file and removed old secure tools config file.

pull/12787/head
Dustin Crossman 2020-02-05 10:54:38 -08:00 committed by Roman Okhrimenko
parent f8c1c446f1
commit e873669b04
2 changed files with 134 additions and 17 deletions

View File

@ -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": []
}
}

View File

@ -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"
}