projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd0829f
)
common: image.c: Fix CACHE: Misaligned operation output
author
Heiko Schocher
<
[email protected]
>
Thu, 14 Dec 2017 10:19:22 +0000
(11:19 +0100)
committer
Tom Rini
<
[email protected]
>
Mon, 18 Dec 2017 18:06:30 +0000
(13:06 -0500)
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]
>
common/image.c
patch
|
blob
|
history
diff --git
a/common/image.c
b/common/image.c
index 96c5f58e4c60a415abff9efe44cfdb09e3eaa565..e9609cd4f7ffad6fb443d42f81e96db27a62f3ac 100644
(file)
--- 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");
}