[U-Boot-Users] [PATCH] Fix GPMC CS2 memory setup at apollon

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 */

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

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; }

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.

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
participants (3)
-
Kyungmin Park
-
Wolfgang Denk
-
Woodruff, Richard