recovery: modify text base and load address JD06_20100409
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 9 Apr 2010 05:56:59 +0000 (14:56 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 9 Apr 2010 05:56:59 +0000 (14:56 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/s5pc1xx_universal.h
recovery/board/samsung/universal/Makefile
recovery/recovery.c

index 763b0e7..b94b211 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* memtest works on           */
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_BASE + 0x5000000)
 
-#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x4800000)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x4000000)
+#define CONFIG_SYS_BOOT_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x4800000)
 
 #define CONFIG_SYS_HZ                  1000
 
index 437f679..5894408 100644 (file)
@@ -15,9 +15,9 @@ include $(TOPDIR)/config.mk
 
 # Recovery block' size should be 1 block (256K)
 # Recovery block includes the onenand_ipl(16K), so actual size is 240K
-TEXT_BASE      = 0x34800000
+TEXT_BASE      = 0x34000000
 # 256K - 16K(IPL Size)
-TEXT_BASE_256K         = 0x3483C000
+TEXT_BASE_256K         = 0x3403C000
 
 LDSCRIPT= $(TOPDIR)/recovery/board/$(BOARDDIR)/recovery.lds
 LDFLAGS        = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
index 786ac62..b509805 100644 (file)
@@ -30,11 +30,11 @@ void start_recovery_boot(void)
 {
        uchar *buf;
 
-       buf = (uchar *)CONFIG_SYS_SDRAM_BASE;
+       buf = (uchar *)CONFIG_SYS_BOOT_ADDR;
 
        onenand_read_block(buf);
 
-       ((init_fnc_t *)CONFIG_SYS_SDRAM_BASE)();
+       ((init_fnc_t *)CONFIG_SYS_BOOT_ADDR)();
 
        /* should never come here */
 }