From: Heiko Schocher Date: Thu, 14 Dec 2017 11:19:22 +0100 Subject: [U-Boot] [PATCH] common: image.c: Fix CACHE: Misaligned operation output Message-ID: <20171214101922.1567-1-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Tested-by: Ayoub Zaki --- Tested on travis: https://travis-ci.org/hsdenx/u-boot-i2c/builds/316257686 common/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c index 4bcf6b3128..d52d95a7a5 100644 --- a/common/image.c +++ b/common/image.c @@ -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"); } -- 2.13.6