[U-Boot] [U-Boot, v2, 8/9] fdt_support: fix an endian bug of fdt_initrd()
Tom Rini
trini at ti.com
Thu Jun 19 17:20:55 CEST 2014
On Fri, Apr 18, 2014 at 05:41:04PM +0900, Masahiro Yamada wrote:
> Data written to DTB must be converted to big endian order.
> It is usually done by using cpu_to_fdt32(), cpu_to_fdt64(), etc.
>
> fdt_initrd() invoked write_cell(), which always swaps byte order.
> It means the function only worked on little endian architectures.
> (On big endian architectures, the byte order should be kept as it is)
>
> This commit uses cpu_to_fdt32() and cpu_to_fdt64()
> and deletes write_cell().
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140619/983ff048/attachment.pgp>
More information about the U-Boot
mailing list