]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
OMAP3: overo: eliminate hard-coded partition offsets
authorAsh Charles <ashcharles@gmail.com>
Wed, 21 May 2014 21:04:50 +0000 (14:04 -0700)
committerTom Rini <trini@ti.com>
Fri, 23 May 2014 20:12:02 +0000 (16:12 -0400)
The linux kernel is at nand0,3 using the current layout, but is best
accessed through the partition label "linux".  Since CONFIG_CMD_MTDPARTS is
defined the CONFIG_JFFS2 settings are unreferenced; use "setenv partition
rootfs" to set the default mtd partition for jffs2.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Tested-by: Ash Charles <ash@gumstix.com>
include/configs/omap3_overo.h

index 321e110f4a81c36ba7d9bc92baf7cfa06ea3d15e..706c8cc2c4a5cc3f456fe6f96acaf96edbd254e9 100644 (file)
                                                        /* at CS0 */
 #define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND */
                                                /* devices */
-#define CONFIG_JFFS2_NAND
-/* nand device jffs2 lives on */
-#define CONFIG_JFFS2_DEV               "nand0"
-/* start of jffs2 partition */
-#define CONFIG_JFFS2_PART_OFFSET       0x680000
-#define CONFIG_JFFS2_PART_SIZE         0xf980000       /* size of jffs2 */
-                                                       /* partition */
-
 /* Environment information */
 #define CONFIG_BOOTDELAY               5
 
                "bootm ${loadaddr}\0" \
        "nandboot=echo Booting from nand ...; " \
                "run nandargs; " \
-               "nand read ${loadaddr} 280000 400000; " \
+               "nand read ${loadaddr} linux; " \
                "bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \