]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
PXA: Fix vpac270 OneNAND booter
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 16 Oct 2010 19:32:11 +0000 (21:32 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 19 Oct 2010 21:05:12 +0000 (23:05 +0200)
NOTE: The modification in Makefile will be superseded by a pending patch!

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Makefile
include/configs/vpac270.h
onenand_ipl/board/vpac270/Makefile

index d18a973a244f1cc86b4236b58ecaa15253946608..25e8fc83e09db0cad1eec2d059a54ecf0949be54 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1025,6 +1025,8 @@ vpac270_onenand_config    : unconfig
        @if [ "$(findstring onenand,$@)" ] ; then \
                echo "#define CONFIG_ONENAND_U_BOOT" \
                        >>$(obj)include/config.h ; \
+               echo "#define CONFIG_256M_U_BOOT" \
+                       >>$(obj)include/config.h ; \
        fi;
        @if [ "$(findstring 256M,$@)" ] ; then \
                echo "#define CONFIG_256M_U_BOOT" \
index 1923a177a11adaf4765fad3a20e88c6d51ff8208..fc680fcd83c21525709a977af3acfd7f7b591960 100644 (file)
 #define        CONFIG_SYS_MEMTEST_START        0xa0400000      /* memtest works on */
 #define        CONFIG_SYS_MEMTEST_END          0xa0800000      /* 4 ... 8 MB in DRAM */
 
-#define        CONFIG_SYS_LOAD_ADDR            (0x5c000000)
+#define        CONFIG_SYS_LOAD_ADDR            PHYS_SDRAM_1
+#define        CONFIG_SYS_IPL_LOAD_ADDR        (0x5c000000)
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
 #define        CONFIG_SYS_INIT_SP_ADDR         \
        (PHYS_SDRAM_1 + CONFIG_SYS_GBL_DATA_SIZE + 2048)
index ac7a8f05e6ce27551ab0e1334d66a7a9b279cfc7..a86bc00864c870c9490193f806f556c68d01be85 100644 (file)
@@ -1,5 +1,6 @@
-IPL    =onenand_ipl
+
 include $(TOPDIR)/config.mk
+include $(TOPDIR)/board/$(BOARDDIR)/config.mk
 
 LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds
 LDFLAGS        = -Bstatic -T $(onenandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(PLATFORM_LDFLAGS)
@@ -25,7 +26,7 @@ ALL   = $(onenandobj)onenand-ipl $(onenandobj)onenand-ipl.bin $(onenandobj)onenand
 all:   $(obj).depend $(ALL)
 
 $(onenandobj)onenand-ipl-2k.bin:       $(onenandobj)onenand-ipl
-       $(OBJCOPY) ${OBJCFLAGS} --pad-to=0x5c040400 -O binary $< $@
+       $(OBJCOPY) ${OBJCFLAGS} --pad-to=0x0800 -O binary $< $@
 
 $(onenandobj)onenand-ipl.bin:  $(onenandobj)onenand-ipl
        $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@