blob: 4c486e69f2e7e02d95d2898bf00b47730b8f6d48 [file] [log] [blame]
Patrick Williams03514f12024-04-05 07:04:11 -05001From 001e5bea183bc78352ac3ba6283d9d7912bb6ea5 Mon Sep 17 00:00:00 2001
2From: Emekcan Aras <Emekcan.Aras@arm.com>
3Date: Wed, 21 Feb 2024 07:44:25 +0000
4Subject: [PATCH] Platform: Corstone1000: skip the first nv counter
5
6It skips doing a sanity check the BL2 nv counter after the capsule
7update since the tfm bl1 does not sync metadata and nv counters in OTP during
8the boot anymore.
9
10Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
11Upstream-Status: Pending
12
13---
14 .../ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
18index 2e6de255b..2e6cf8047 100644
19--- a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
20+++ b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
21@@ -1125,7 +1125,7 @@ static enum fwu_agent_error_t update_nv_counters(
22
23 FWU_LOG_MSG("%s: enter\n\r", __func__);
24
25- for (int i = 0; i <= FWU_MAX_NV_COUNTER_INDEX; i++) {
26+ for (int i = 1; i <= FWU_MAX_NV_COUNTER_INDEX; i++) {
27
28 switch (i) {
29 case FWU_BL2_NV_COUNTER:
30--
312.25.1
32
33