Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 1 | From 001e5bea183bc78352ac3ba6283d9d7912bb6ea5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Emekcan Aras <Emekcan.Aras@arm.com> |
| 3 | Date: Wed, 21 Feb 2024 07:44:25 +0000 |
| 4 | Subject: [PATCH] Platform: Corstone1000: skip the first nv counter |
| 5 | |
| 6 | It skips doing a sanity check the BL2 nv counter after the capsule |
| 7 | update since the tfm bl1 does not sync metadata and nv counters in OTP during |
| 8 | the boot anymore. |
| 9 | |
| 10 | Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> |
| 11 | Upstream-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 | |
| 17 | diff --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 |
| 18 | index 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 | -- |
| 31 | 2.25.1 |
| 32 | |
| 33 | |