]> git.sur5r.net Git - u-boot/commit
mxs: mxsboot: fix endianess for sd boot images
authorMichael Heimpold <mhei@heimpold.de>
Tue, 1 Sep 2015 21:58:44 +0000 (23:58 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Sep 2015 08:19:40 +0000 (10:19 +0200)
commitb5e7586a73d4eb7b0aa9c597f293a584a2a1800a
treeaea5c2ee7d7770ad882457478623112ba08c39c9
parent1a8150d4b16fbafa6f1d207ddb85eda7dc399e2d
mxs: mxsboot: fix endianess for sd boot images

Running mxsboot on a big-endian system produces a sd image which
cannot be started by the i.MX28 ROM. It complains on the debug
uart as following:
0x8020a009
          0x80502008
0x8020a009
          0x80502008
...

Enforcing all fields within the BCB to little-endian make
the image bootable again.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
tools/mxsboot.c