uenv: Fix the problem of reading A1 uboot env crc error [1/2]
PD#SWPL-129168
Problem:
Currently reading A1 env and verifying crc will report an error.
Solution:
Specify A1 uboot env size.
Verify:
A1-A113L-AD403
Change-Id: I3ebe51cf377bd8182e2ab11209959fa6fb67651b
Signed-off-by: shu.wang <shu.wang@amlogic.com>
diff --git a/ubootenv/ubootenv.c b/ubootenv/ubootenv.c
index 2c8a9bb..c413df4 100644
--- a/ubootenv/ubootenv.c
+++ b/ubootenv/ubootenv.c
@@ -495,6 +495,8 @@
#if defined(MESON8_ENVSIZE) || defined(GXBABY_ENVSIZE) || \
defined(GXTVBB_ENVSIZE) || defined(GXL_ENVSIZE)
gs_env_partition_size = 0x10000;
+#elif defined(A1_ENVSIZE)
+ gs_env_partition_size = 0x2000;
#endif
gs_env_data_size = gs_env_partition_size - sizeof(uint32_t);
INFO("[ubootenv] using /dev/nand_env with size(%d)(%d)\n",