Commit dbb414245b73f29666622f8c07da48ac797eb848
1 parent
6220bb6fb4
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
5 other branches
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)
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
env/sata.c
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 | return 1; |
69 | 69 | |
70 | 70 | printf("Writing to SATA(%d)...", env_sata); |
71 | - if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { | |
71 | + if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) { | |
72 | 72 | puts("failed\n"); |
73 | 73 | return 1; |
74 | 74 | } |