From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Li Date: Mon, 7 Jan 2019 09:22:35 +0000 Subject: [U-Boot] [PATCH] env: sata: Fix saveenv issue Message-ID: <1546852938-24209-1-git-send-email-ye.li@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wrong env buffer was passed into sata write function, cause the saveenv not work. Signed-off-by: Ye Li --- env/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ static int env_sata_save(void) 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; } -- 2.7.4