Skip to content
Snippets Groups Projects
Commit 1a1e7072 authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

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: default avatarHeiko Schocher <hs@denx.de>
Tested-by: default avatarAyoub Zaki <hs@denx.de>
parent dd0829f6
No related branches found
No related tags found
No related merge requests found
...@@ -1186,7 +1186,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len, ...@@ -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 * AMP boot scenarios in which we might not be
* HW cache coherent * HW cache coherent
*/ */
flush_cache((unsigned long)*initrd_start, rd_len); flush_cache((unsigned long)*initrd_start,
ALIGN(rd_len, ARCH_DMA_MINALIGN));
#endif #endif
puts("OK\n"); puts("OK\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment