s5pc110: p1: modify onenand write address JB11_20100217
authorjinmo.sung <jm0302.sun@samsung.com>
Tue, 16 Feb 2010 12:05:13 +0000 (21:05 +0900)
committerjinmo.sung <jm0302.sung@samsung.com>
Tue, 16 Feb 2010 12:05:13 +0000 (21:05 +0900)
Signed-off-by: jinmo.sung <jm0302.sung@samsung.com>
include/configs/s5pc1xx_p1p2.h

index 89e070c..e91c13e 100644 (file)
 
 #define CONFIG_BOOTCOMMAND     "run ubifsboot"
 
+#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
+
 #define CONFIG_RAMDISK_BOOT    "root=/dev/ram0 rw rootfstype=ext2" \
-               " console=ttySAC2,115200n8" \
-               " ${meminfo}"
+               " ${console} ${meminfo}"
 
-#define CONFIG_COMMON_BOOT     "console=ttySAC2,115200n8" \
-               " ${meminfo}" \
-               " ${mtdparts}"
+#define CONFIG_COMMON_BOOT     "${console} ${meminfo} ${mtdparts}"
 
-#define CONFIG_BOOTARGS        "root=/dev/mtdblock8 ubi.mtd=7 ubi.mtd=5" \
+#define CONFIG_BOOTARGS        "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=7 ubi.mtd=3" \
                " rootfstype=cramfs " CONFIG_COMMON_BOOT
 
 #define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
                        " onenand write 0x32008000 0x0 0x40000\0"
 
-#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=5"
+#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=7 ubi.mtd=3"
 
+#define CONFIG_UBIFS_OPTION    "rootflags=bulk_read,no_chk_data_crc"
 
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        CONFIG_UPDATEB \
-       "updatek=onenand erase 0x80000 0x300000;" \
-       " onenand write 0x31008000 0x80000 0x300000\0" \
+       "updatek=onenand erase 0xc00000 0x600000;" \
+       " onenand write 0x31008000 0xc00000 0x600000\0" \
        "updateu=onenand erase 0x01560000 0x1eaa0000;" \
        " onenand write 0x32000000 0x1260000 0x8C0000\0" \
-       "bootk=onenand read 0x30007FC0 0x80000 0x300000;" \
+       "bootk=onenand read 0x30007FC0 0xc00000 0x600000;" \
        " bootm 0x30007FC0\0" \
        "flashboot=set bootargs root=/dev/mtdblock${bootblock}" \
         " rootfstype=${rootfstype}" \
         CONFIG_UBI_MTD " ${opts} ${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
-       "ubifsboot=set bootargs root=ubi0!rootfs rootfstype=ubifs" \
-        CONFIG_UBI_MTD " ${opts} ${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
+       "ubifsboot=set bootargs root=ubi0!rootfs rootfstype=ubifs " \
+        CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
+        CONFIG_COMMON_BOOT "; run bootk\0" \
        "boottrace=setenv opts initcall_debug; run bootcmd\0" \
        "android=set bootargs root=ubi0!ramdisk " CONFIG_UBI_MTD \
         " rootfstype=ubifs init=/init.sh " CONFIG_COMMON_BOOT "; run bootk\0" \
         CONFIG_UBI_MTD " ${opts} ${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
        "verify=n\0" \
        "rootfstype=cramfs\0" \
+       "console=" CONFIG_DEFAULT_CONSOLE \
        "mtdparts=" MTDPARTS_DEFAULT \
        "meminfo=mem=80M mem=128M@0x40000000\0" \
        "nfsroot=/nfsroot/arm\0" \
        "mmcblk=/dev/mmcblk1p1\0" \
-       "bootblock=8\0" \
+       "bootblock=9\0" \
        "ubiblock=8\0" \
        "ubi=enabled"
 
 
 /* Insert bmp animation compressed */
 #define CONFIG_VIDEO_BMP_GZIP
-#define CONFIG_CMD_BMP
 #ifndef CONFIG_SYS_VIDEO_LOGO_MAX_SIZE
-#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE  (250*250*4)
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (250*250*4)
 #endif
 
 #endif /* __CONFIG_H */