public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] integratorap: disable dcache
@ 2011-07-13 23:04 Linus Walleij
  2011-07-14 11:39 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Linus Walleij @ 2011-07-13 23:04 UTC (permalink / raw)
  To: u-boot

The Integrator AP with CM920T (ARM920T) does not boot without
D-cache disabled throughout, the actual problem comes at "bootm",
at this point U-Boot tries to disable D-cache which doesn't work
on this machine for some reason. The result is usually an
illegal instruction trap or similar as the PC goes astray in
memory and crash something like this:

 undefined instruction
 pc : [<01ff1c44>]          lr : [<01fd8430>]
 sp : 01fa7e08  ip : 01fa7dc0     fp : 00000000
 r10: 01fef318  r9 : 00000015     r8 : 01fa7f70
 r7 : 00000015  r6 : 00008000     r5 : 01fa7fe8  r4 : 00000000
 r3 : 01fef380  r2 : 01fef8b0     r1 : ffffffff  r0 : fffffffe
 Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
 Resetting CPU ...

Disabling D-cache brings the board support to a working state that
can boot the Linux kernel.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 include/configs/integratorap.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/integratorap.h b/include/configs/integratorap.h
index 26eac8b..acdb37c 100644
--- a/include/configs/integratorap.h
+++ b/include/configs/integratorap.h
@@ -48,6 +48,7 @@
 #define CONFIG_CM_INIT		1
 #define CONFIG_CM_REMAP		1
 #undef CONFIG_CM_SPD_DETECT
+#define CONFIG_SYS_DCACHE_OFF
 
 /*
  * Size of malloc() pool
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-15  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 23:04 [U-Boot] [PATCH 1/2] integratorap: disable dcache Linus Walleij
2011-07-14 11:39 ` Wolfgang Denk
2011-07-14 17:57   ` Linus Walleij
2011-07-15  7:42     ` Heiko Schocher
2011-07-15  8:54       ` Laurence Withers
2011-07-15  9:31         ` Stefan Roese
2011-07-15  9:36       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox