common: image.c: Fix CACHE: Misaligned operation output
PATCH 1/1 common: image.c: Fix CACHE: Misaligned operation output
When booting a itb file with a Ramdisk on a imx6 based board, U-Boot drops the warning:
Loading Kernel Image ... OK
Loading Ramdisk to 4ecf1000, end 4ef8b11f ... \
CACHE: Misaligned operation at range [4ecf1000, 4ef8b11f]
Fix it!
Signed-off-by Heiko Schocher <[email protected]>
Tested-by Ayoub Zaki <[email protected]>
---
Tested on travis:
https://travis-ci.org/hsdenx/u-boot-i2c/builds/316257686
common/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
common/image.c +2 -1
@@ -1186,7 +1186,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,* AMP boot scenarios in which we might not be * HW cache coherent */ -flush_cache ((unsigned long )*initrd_start, rd_len); +flush_cache ((unsigned long )*initrd_start, +ALIGN (rd_len,ARCH_DMA_MINALIGN ));#endif puts ("OK\n" ); }
Signature · 1 line
2.13.6
Quoted 11 lines · Heiko Schocher
When booting a itb file with a Ramdisk on a imx6 based board, U-Boot drops the warning:
Loading Kernel Image ... OK
Loading Ramdisk to4ecf1000, end4ef8b11f... \
CACHE: Misaligned operation at range [4ecf1000,4ef8b11f]Fix it!
Signed-off-by Heiko Schocher <[email protected]>Tested-by Ayoub Zaki <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171218/7e36109c/attachment.sig>