bl33: env size error after update_env_part [1/1]
PD#SWPL-132861
Problem:
env part size error
Solution:
update_env_part calculation
Verify:
s4_ap222
Change-Id: I871a89899f53ec5535f94d14c2fbd9b6ce8a708b
Signed-off-by: Meng yu <meng.yu@amlogic.com>
diff --git a/cmd/amlogic/defenv_without.c b/cmd/amlogic/defenv_without.c
index fb13864..0b005d5 100644
--- a/cmd/amlogic/defenv_without.c
+++ b/cmd/amlogic/defenv_without.c
@@ -359,7 +359,7 @@
//copy flash env to new buf, and skip env need modify/delete
const char *current_kv = (char *)pdata;//env1=val\0
const char *kvsep = "=";
- char *new_kv = new_env_buf;
+ char *new_kv = new_env_buf + 4; //skip crc
unsigned int new_env_len = 0;
int env_need_update = 0;