MLK-14828 env_sata: Fix SATA saveenv issue
Wrong env buffer was passed into sata write function, so the saveenv can't work. Fix this issue. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0fe7573cffcb50d6bcb401f644cc37f5af28b388)
This commit is contained in:
parent
6220bb6fb4
commit
dbb414245b
|
|
@ -68,7 +68,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue