Skip to content

Commit ae0f8f7

Browse files
author
Charley Chu
committed
psoc64: Add 064B0S2 policy file.
Copy it to the directory where the application is built Signed-off-by: Charley Chu <[email protected]>
1 parent 3b44ac1 commit ae0f8f7

File tree

1 file changed

+219
-0
lines changed

1 file changed

+219
-0
lines changed
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
{
2+
"debug" :
3+
{
4+
"m0p" : {
5+
"permission" : "enabled",
6+
"control" : "firmware",
7+
"key" : 5
8+
},
9+
"m4" : {
10+
"permission" : "allowed",
11+
"control" : "firmware",
12+
"key" : 5
13+
},
14+
"system" : {
15+
"permission" : "enabled",
16+
"control" : "firmware",
17+
"key" : 5,
18+
"flashw": true,
19+
"flashr": true
20+
},
21+
"rma" : {
22+
"permission" : "allowed",
23+
"destroy_fuses" : [
24+
{
25+
"start" : 888,
26+
"size" : 136
27+
},
28+
{
29+
"start" : 648,
30+
"size" : 104
31+
}
32+
],
33+
"destroy_flash" : [
34+
{
35+
"start" : 270270464,
36+
"size" : 65536
37+
},
38+
{
39+
"start" : 268763136,
40+
"size" : 1179648
41+
}
42+
],
43+
"key" : 5
44+
}
45+
},
46+
"wounding" :
47+
{
48+
},
49+
"boot_upgrade" :
50+
{
51+
"title": "upgrade_policy",
52+
"firmware": [
53+
{
54+
"boot_auth": [
55+
5
56+
],
57+
"bootloader_keys": [
58+
{ "kid": 5, "key": "../keys/oem_state.json" }
59+
],
60+
"id": 0,
61+
"launch": 1,
62+
"acq_win": 100,
63+
"monotonic": 0,
64+
"smif_id": 0,
65+
"clock_flags": 578,
66+
"protect_flags": 1,
67+
"upgrade": false,
68+
"resources": [
69+
{
70+
"type": "FLASH_PC1_SPM",
71+
"address": 270336000,
72+
"size": 65536
73+
},
74+
{
75+
"type": "SRAM_SPM_PRIV",
76+
"address": 135135232,
77+
"size": 65536
78+
},
79+
{
80+
"type": "SRAM_DAP",
81+
"address": 135184384,
82+
"size": 16384
83+
}
84+
]
85+
},
86+
{
87+
"boot_auth": [
88+
6
89+
],
90+
"boot_keys": [
91+
{ "kid": 6, "key": "../keys/TFM_S_KEY.json" }
92+
],
93+
"id": 1,
94+
"monotonic": 0,
95+
"smif_id": 0,
96+
"acq_win": 100,
97+
"multi_image" : 1,
98+
"upgrade": true,
99+
"version": "0.1",
100+
"rollback_counter": 0,
101+
"encrypt": false,
102+
"encrypt_key": "../keys/image-aes-128.key",
103+
"encrypt_key_id": 1,
104+
"encrypt_peer": "../keys/dev_pub_key.pem",
105+
"upgrade_auth": [
106+
6
107+
],
108+
"upgrade_keys": [
109+
{ "kid": 6, "key": "../keys/TFM_S_KEY.json" }
110+
],
111+
"resources": [
112+
{
113+
"type": "BOOT",
114+
"address": 268435456,
115+
"size": 327680
116+
},
117+
{
118+
"type": "UPGRADE",
119+
"address": 269942784,
120+
"size": 327680
121+
}
122+
]
123+
},
124+
{
125+
"boot_auth": [
126+
8
127+
],
128+
"boot_keys": [
129+
{ "kid": 8, "key": "../keys/TFM_NS_KEY.json" }
130+
],
131+
"id": 16,
132+
"monotonic": 8,
133+
"smif_id": 1,
134+
"multi_image" : 2,
135+
"upgrade": true,
136+
"version": "0.1",
137+
"rollback_counter": 0,
138+
"encrypt": false,
139+
"encrypt_key": "../keys/image-aes-128.key",
140+
"encrypt_key_id": 1,
141+
"encrypt_peer": "../keys/dev_pub_key.pem",
142+
"upgrade_auth": [
143+
8
144+
],
145+
"upgrade_keys": [
146+
{ "kid": 8, "key": "../keys/TFM_NS_KEY.json" }
147+
],
148+
"resources": [
149+
{
150+
"type": "BOOT",
151+
"address": 268763136,
152+
"size": 1179648
153+
},
154+
{
155+
"type": "UPGRADE",
156+
"address": 402653184,
157+
"size": 1179648
158+
}
159+
]
160+
}
161+
],
162+
"reprogram": [
163+
{
164+
"start": 270336000,
165+
"size": 65536
166+
}
167+
],
168+
"reprovision": {
169+
"boot_loader": true,
170+
"keys_and_policies": true
171+
}
172+
},
173+
"cy_bootloader":
174+
{
175+
"mode": "debug"
176+
},
177+
"provisioning":
178+
{
179+
"packet_dir": "../packets",
180+
"chain_of_trust": []
181+
},
182+
"pre_build": {
183+
"oem_public_key": "../keys/oem_state.json",
184+
"oem_private_key": "../keys/oem_state.json",
185+
"hsm_public_key": "../keys/hsm_state.json",
186+
"hsm_private_key": "../keys/hsm_state.json",
187+
"provision_group_private_key": false,
188+
"group_private_key": "../keys/grp_priv_key.json",
189+
"provision_device_private_key": false,
190+
"device_private_key": "../keys/dev_priv_key.json",
191+
"cy_auth": "../packets/cy_auth_2m_s0_sample.jwt"
192+
},
193+
"custom_data_sections": ["tfm"],
194+
"tfm":
195+
{
196+
"attestation_data":
197+
{
198+
"verification_service_url": "www.trustedfirmware.org",
199+
"attestation_profile_definition": "PSA_IOT_PROFILE_1",
200+
"hw_version": "060456527282910010",
201+
"implementation_id": [170, 170, 170, 170, 170, 170, 170, 170, 187, 187, 187, 187, 187, 187, 187, 187,
202+
204, 204, 204, 204, 204, 204, 204, 204, 221, 221, 221, 221, 221, 221, 221, 221]
203+
},
204+
"its":
205+
{
206+
"offset": 1835008,
207+
"size": 16384,
208+
"num_assets": 10,
209+
"max_asset_size": 512
210+
},
211+
"sst":
212+
{
213+
"offset": 1851392,
214+
"size": 20480,
215+
"num_assets": 10,
216+
"max_asset_size": 2008
217+
}
218+
}
219+
}

0 commit comments

Comments
 (0)