]> git.sur5r.net Git - u-boot/commitdiff
tricorder: Load kernel from ubifs
authorBernhard Walle <walle@corscience.de>
Tue, 3 Apr 2012 00:37:04 +0000 (00:37 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:47:58 +0000 (14:47 +0200)
Signed-off-by: Bernhard Walle <walle@corscience.de>
include/configs/tricorder.h

index d826e19bd75a6c686e7488052199022fa925735d..801a24fd889da79a40f89e7358159af617eae1d3 100644 (file)
                "setenv bootargs ${bootargs} " \
                "omapfb.mode=lcd:${lcdmode} " \
                "omapdss.def_disp=${defaultdisplay} " \
-               "root=ubi0:rootfs " \
+               "root=ubi0:root " \
+               "ubi.mtd=4 " \
                "rootfstype=ubifs " \
                "${kernelopts}\0" \
        "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
        "mmcboot=echo Booting from mmc ...; " \
                "run mmcargs; " \
                "bootm ${loadaddr}\0" \
+       "loaduimage_ubi=mtd default; " \
+               "ubi part fs; " \
+               "ubifsmount root; " \
+               "ubifsload ${loadaddr} /boot/uImage\0" \
        "nandboot=echo Booting from nand ...; " \
                "run nandargs; " \
-               "nand read ${loadaddr} 280000 400000; " \
+               "run loaduimage_ubi; " \
                "bootm ${loadaddr}\0" \
        "autoboot=if mmc rescan ${mmcdev}; then " \
                        "if run loadbootscript; then " \