From: Gary Mussar <>

When doing a u-boot saveenv with the environment in FAT we see the
following warning:

ZynqMP> saveenv
Saving Environment to FAT...
writing uboot.env
FAT: Misaligned buffer address (000000007deb9b60)

This can be eliminated by aligning the environment to an appropriate

Signed-off-by: Gary Mussar <>
Signed-off-by: Vipul Kumar <>
 include/environment.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/environment.h b/include/environment.h
index 50c62c5..d6c530d 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -150,7 +150,11 @@ typedef struct environment_s {
        unsigned char   flags;          /* active/obsolete flags        */
        unsigned char   data[ENV_SIZE]; /* Environment data             */
-} env_t;
+} env_t

 extern env_t environment;

This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.
U-Boot mailing list

Reply via email to