board: karo: add 'ftd resize' to 'fdtsave' command
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 30 Jun 2014 13:45:23 +0000 (15:45 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 30 Jun 2014 13:45:23 +0000 (15:45 +0200)
include/configs/tx28.h
include/configs/tx48.h
include/configs/tx51.h
include/configs/tx53.h
include/configs/tx6.h

index dd12b94..baadc73 100644 (file)
        " root=/dev/mtdblock3 rootfstype=jffs2\0"                       \
        "bootargs_nfs=run default_bootargs;set bootargs ${bootargs}"    \
        " root=/dev/nfs ip=dhcp nfsroot=${nfs_server}:${nfsroot},nolock\0" \
-       "bootcmd_mmc=set autostart no;run bootargs_mmc;"                \
-       "fatload mmc 0 ${loadaddr} uImage;run bootm_cmd\0"              \
-       "bootcmd_nand=set autostart no;run bootargs_nand;"              \
-       "nboot linux;run bootm_cmd\0"                                   \
-       "bootcmd_net=set autostart no;run bootargs_nfs;dhcp;"           \
-       "run bootm_cmd\0"                                               \
+       "bootcmd_mmc=set autostart no;run bootargs_mmc                \
+       ";fatload mmc 0 ${loadaddr} uImage;run bootm_cmd\0"             \
+       "bootcmd_nand=set autostart no;run bootargs_nand              \
+       ";nboot linux;run bootm_cmd\0"                                  \
+       "bootcmd_net=set autostart no;run bootargs_nfs;dhcp           \
+       ";run bootm_cmd\0"                                              \
        "bootm_cmd=bootm ${loadaddr} - ${fdtaddr}\0"                    \
        "default_bootargs=set bootargs " CONFIG_BOOTARGS                \
        " ${append_bootargs}\0"         \
        "fdtaddr=41000000\0"                                            \
-       "fdtsave=nand erase.part dtb;nand write ${fdtaddr} dtb ${fdtsize}\0" \
+       "fdtsave=fdt resize;nand erase.part dtb"                        \
+       ";nand write ${fdtaddr} dtb ${fdtsize}\0"                       \
        "mtdids=" MTDIDS_DEFAULT "\0"                                   \
        "mtdparts=" MTDPARTS_DEFAULT "\0"                               \
        "nfsroot=/tftpboot/rootfs\0"                                    \
index db3c04a..10e2e2f 100644 (file)
        "default_bootargs=set bootargs " CONFIG_BOOTARGS                \
        " ${append_bootargs}\0"                                         \
        "fdtaddr=81000000\0"                                            \
-       "fdtsave=nand erase.part dtb"                                   \
+       "fdtsave=fdt resize;nand erase.part dtb"                                        \
        ";nand write ${fdtaddr} dtb ${fdtsize}\0"                       \
        "mtdids=" MTDIDS_DEFAULT "\0"                                   \
        "mtdparts=" MTDPARTS_DEFAULT "\0"                               \
index a360acc..c28775f 100644 (file)
        "default_bootargs=set bootargs " CONFIG_BOOTARGS                \
        " ${append_bootargs}\0"                                         \
        "fdtaddr=91000000\0"                                            \
-       "fdtsave=nand erase.part dtb"                                   \
+       "fdtsave=fdt resize;nand erase.part dtb"                                        \
        ";nand write ${fdtaddr} dtb ${fdtsize}\0"                       \
        "mtdids=" MTDIDS_DEFAULT "\0"                                   \
        "mtdparts=" MTDPARTS_DEFAULT "\0"                               \
index 6281f48..25e6204 100644 (file)
        "default_bootargs=set bootargs " CONFIG_BOOTARGS                \
        " ${append_bootargs}\0"                                         \
        "fdtaddr=71000000\0"                                            \
-       "fdtsave=nand erase.part dtb"                                   \
+       "fdtsave=fdt resize;nand erase.part dtb"                                        \
        ";nand write ${fdtaddr} dtb ${fdtsize}\0"                       \
        "mtdids=" MTDIDS_DEFAULT "\0"                                   \
        "mtdparts=" MTDPARTS_DEFAULT "\0"                               \
index 2fd97d4..e3919ad 100644 (file)
 #define CONFIG_SYS_DEFAULT_BOOT_MODE "nand"
 #define CONFIG_SYS_BOOT_CMD_NAND                                       \
        "bootcmd_nand=set autostart no;run bootargs_ubifs;nboot linux\0"
-#define CONFIG_SYS_FDTSAVE_CMD                         \
-       "fdtsave=nand erase.part dtb"                   \
+#define CONFIG_SYS_FDTSAVE_CMD                                         \
+       "fdtsave=fdt resize;nand erase.part dtb"                        \
        ";nand write ${fdtaddr} dtb ${fdtsize}\0"
 #define MTD_NAME                       "gpmi-nand"
 #define MTDIDS_DEFAULT                 "nand0=" MTD_NAME
 #define CONFIG_SYS_DEFAULT_BOOT_MODE "mmc"
 #define CONFIG_SYS_BOOT_CMD_NAND ""
 #define CONFIG_SYS_FDTSAVE_CMD                                         \
-       "fdtsave=mmc open 0 1;mmc write ${fdtaddr} " xstr(CONFIG_SYS_DTB_BLKNO) " 80;mmc close 0 1\0"
+       "fdtsave=mmc open 0 1;mmc write ${fdtaddr} "                    \
+       xstr(CONFIG_SYS_DTB_BLKNO) " 80;mmc close 0 1\0"
 #define MMC_ROOT_STR " root=PARTUUID=${rootpart_uuid} rootwait\0"
 #define ROOTPART_UUID_STR "rootpart_uuid=0cc66cc0-02\0"
 #define MTD_NAME                       ""