public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon
@ 2008-02-18  5:35 Kyungmin Park
  2008-02-22 11:14 ` Wolfgang Denk
  2008-02-29 23:34 ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Woodruff, Richard
  0 siblings, 2 replies; 5+ messages in thread
From: Kyungmin Park @ 2008-02-18  5:35 UTC (permalink / raw)
  To: u-boot

It disables the current map first

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/board/apollon/mem.c b/board/apollon/mem.c
index c0edca5..0211c6a 100644
--- a/board/apollon/mem.c
+++ b/board/apollon/mem.c
@@ -198,6 +198,8 @@ void gpmc_init(void)
 	sdelay(2000);
 
 	/* setup cs2 */
+	__raw_writel(0x0, GPMC_CONFIG7_2);	/* disable current map */
+	sdelay(1000);
 	__raw_writel(APOLLON_24XX_GPMC_CONFIG1_0 | mux | mtype | mwidth,
 		     GPMC_CONFIG1_2);
 	/* It's same as cs 0 */

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

* [U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon
  2008-02-18  5:35 [U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon Kyungmin Park
@ 2008-02-22 11:14 ` Wolfgang Denk
  2008-02-29 23:34 ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Woodruff, Richard
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2008-02-22 11:14 UTC (permalink / raw)
  To: u-boot

In message <20080218053543.GA28278@party> you wrote:
> It disables the current map first
> 
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God may be subtle, but He isn't plain mean.         - Albert Einstein

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

* [U-Boot-Users]  [PATCH] Fix alignment error on ARM for modules
  2008-02-18  5:35 [U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon Kyungmin Park
  2008-02-22 11:14 ` Wolfgang Denk
@ 2008-02-29 23:34 ` Woodruff, Richard
  2008-03-01  1:20   ` [U-Boot-Users] Quick OMAP2420 update for anyone interested Woodruff, Richard
  2008-03-02 21:48   ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Wolfgang Denk
  1 sibling, 2 replies; 5+ messages in thread
From: Woodruff, Richard @ 2008-02-29 23:34 UTC (permalink / raw)
  To: u-boot

Fix alignment fault on ARM when running modules.  With out an explicit
linker file gcc4.2.1 will half word align __bss_start's value.  The word
dereference will crash hello_world. 

signed-off-by Richard Woodruff <r-woodruff2@ti.com>

diff --git a/examples/Makefile b/examples/Makefile
index d63fa70..60a6f5e 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -30,8 +30,12 @@ LOAD_ADDR = 0x40000
 endif
 
 ifeq ($(ARCH),arm)
+ifeq ($(BOARD),omap2420h4)
+LOAD_ADDR = 0x80300000
+else
 LOAD_ADDR = 0xc100000
 endif
+endif
 
 ifeq ($(ARCH),mips)
 LOAD_ADDR = 0x80200000 -T mips.lds
diff --git a/examples/stubs.c b/examples/stubs.c
index 9b3cadd..b9dbcf9 100644
--- a/examples/stubs.c
+++ b/examples/stubs.c
@@ -190,10 +190,10 @@ extern unsigned long __bss_start, _end;
 
 void app_startup(char **argv)
 {
-	unsigned long * cp = &__bss_start;
+	unsigned char * cp = (unsigned char *) &__bss_start;
 
 	/* Zero out BSS */
-	while (cp < &_end) {
+	while (cp < (unsigned char *)&_end) {
 		*cp++ = 0;
 	}

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

* [U-Boot-Users]   Quick OMAP2420 update for anyone interested.
  2008-02-29 23:34 ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Woodruff, Richard
@ 2008-03-01  1:20   ` Woodruff, Richard
  2008-03-02 21:48   ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Woodruff, Richard @ 2008-03-01  1:20 UTC (permalink / raw)
  To: u-boot

Hi,

I'll attach a zip of a quick update for h4-2420 which I did against git
just now.  It needs more work to merge but at least works.  Its probably
on the edge for size.  A 2430 merge and more of a fix up could come
later.

Regards,
Richard W.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h4_uboot_1p3p2_update.diff.bz2
Type: application/octet-stream
Size: 20496 bytes
Desc: h4_uboot_1p3p2_update.diff.bz2
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080229/b62e613a/attachment.obj 

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

* [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules
  2008-02-29 23:34 ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Woodruff, Richard
  2008-03-01  1:20   ` [U-Boot-Users] Quick OMAP2420 update for anyone interested Woodruff, Richard
@ 2008-03-02 21:48   ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2008-03-02 21:48 UTC (permalink / raw)
  To: u-boot

In message <3B6D69C3A9EBCA4BA5DA60D91302742903A11818@dlee13.ent.ti.com> you wrote:
> Fix alignment fault on ARM when running modules.  With out an explicit
> linker file gcc4.2.1 will half word align __bss_start's value.  The word
> dereference will crash hello_world. 
> 
> signed-off-by Richard Woodruff <r-woodruff2@ti.com>

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
EMACS belongs in <sys/errno.h>: Editor too big!

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

end of thread, other threads:[~2008-03-02 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18  5:35 [U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon Kyungmin Park
2008-02-22 11:14 ` Wolfgang Denk
2008-02-29 23:34 ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Woodruff, Richard
2008-03-01  1:20   ` [U-Boot-Users] Quick OMAP2420 update for anyone interested Woodruff, Richard
2008-03-02 21:48   ` [U-Boot-Users] [PATCH] Fix alignment error on ARM for modules Wolfgang Denk

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