env: sata: Fix saveenv issue
Wrong env buffer was passed into sata write function, cause the saveenv
not work.
Signed-off-by: Ye Li <ye.li@nxp.com>
diff --git a/env/sata.c b/env/sata.c
index 59aedf4..a2ff5c6 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -65,7 +65,7 @@
return 1;
printf("Writing to SATA(%d)...", env_sata);
- if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) {
+ if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) {
puts("failed\n");
return 1;
}