tqm5200: Restore customary env. variable boot commands for powerpc kernels
authorBartlomiej Sieka <tur@semihalf.com>
Thu, 13 Sep 2007 14:33:59 +0000 (16:33 +0200)
committerBartlomiej Sieka <tur@semihalf.com>
Thu, 13 Sep 2007 14:33:59 +0000 (16:33 +0200)
- update default definitions of kernel_addr and fdt_addr env. variables
- make arch/powerpc booting the default scenario
- update MTD partition layout to match the above

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
include/configs/TQM5200.h

index e0c9d81be0838776d41a96b6d6c8189556c671ad..4e0e1517c509e9779eaa6b9cda46ce0aba0bb806 100644 (file)
                "protect on FC000000 +${filesize}\0"
 #endif
 
-#ifndef CONFIG_CAM5200
+#if defined(CONFIG_TQM5200)
 #define CUSTOM_ENV_SETTINGS                                            \
+       "hostname=tqm5200\0"                                            \
        "bootfile=/tftpboot/tqm5200/uImage\0"                           \
-       "bootfile_fdt=/tftpboot/tqm5200/uImage_fdt\0"                   \
        "fdt_file=/tftpboot/tqm5200/tqm5200.dtb\0"                      \
        "u-boot=/tftpboot/tqm5200/u-boot.bin\0"
-#else
+#elif defined(CONFIG_CAM5200)
 #define CUSTOM_ENV_SETTINGS                                            \
        "bootfile=cam5200/uImage\0"                                     \
        "u-boot=cam5200/u-boot.bin\0"                                   \
 #endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
-       "console=ttyS0\0"                                               \
-       "kernel_addr=200000\0"                                          \
-       "fdt_addr=400000\0"                                             \
-       "hostname=tqm5200\0"                                            \
        "netdev=eth0\0"                                                 \
+       "console=ttyPSC0\0"                                             \
+       "fdt_addr=FC0A0000\0"                                           \
+       "kernel_addr=FC0C0000\0"                                        \
+       "ramdisk_addr=FC300000\0"                                       \
+       "kernel_addr_r=200000\0"                                        \
+       "fdt_addr_r=400000\0"                                           \
        "rootpath=/opt/eldk/ppc_6xx\0"                                  \
        "ramargs=setenv bootargs root=/dev/ram rw\0"                    \
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
                ":${hostname}:${netdev}:off panic=1\0"                  \
        "addcons=setenv bootargs ${bootargs} "                          \
                "console=${console},${baudrate}\0"                      \
-       "flash_self=run ramargs addip addcons;"                         \
+       "flash_self_old=sete console ttyS0; run ramargs addip addcons;" \
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
-       "flash_nfs=run nfsargs addip addcons;"                          \
+       "flash_self=run ramargs addip addcons;"                         \
+               "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0"    \
+       "flash_nfs_old=sete console ttyS0; run nfsargs addip addcons;"  \
                "bootm ${kernel_addr}\0"                                \
-       "net_nfs=tftp ${kernel_addr} ${bootfile};"                      \
-               "run nfsargs addip addcons;bootm\0"                     \
-       "net_nfs_fdt=tftp ${kernel_addr} ${bootfile_fdt};"              \
-               "tftp ${fdt_addr} ${fdt_file};setenv console ttyPSC0;"  \
-               "run nfsargs addip addcons;"                            \
+       "flash_nfs=run nfsargs addip addcons;"                          \
                "bootm ${kernel_addr} - ${fdt_addr}\0"                  \
+       "net_nfs_old=tftp ${kernel_addr_r} ${bootfile};"                \
+               "sete console ttyS0; run nfsargs addip addcons;bootm\0" \
+       "net_nfs=tftp ${kernel_addr_r} ${bootfile}; "                   \
+               "tftp ${fdt_addr_r} ${fdt_file}; "                      \
+               "run nfsargs addip addcons; "                           \
+               "bootm ${kernel_addr_r} - ${fdt_addr_r}\0"              \
        CUSTOM_ENV_SETTINGS                                             \
        "load=tftp 200000 ${u-boot}\0"                                  \
        ENV_UPDT                                                        \
 #  endif /* CFG_LOWBOOT */
 # else /* !CONFIG_TQM5200_B */
 #   define MTDPARTS_DEFAULT    "mtdparts=TQM5200-0:640k(firmware),"    \
-                                               "1408k(kernel),"        \
+                                               "128k(dtb),"            \
+                                               "2304k(kernel),"        \
                                                "2m(initrd),"           \
                                                "4m(small-fs),"         \
                                                "8m(misc),"             \
-                                               "16m(big-fs)"
+                                               "15m(big-fs)"
 # endif /* CONFIG_TQM5200_B */
 #elif defined (CONFIG_CAM5200)
 #   define MTDPARTS_DEFAULT    "mtdparts=TQM5200-0:768k(firmware),"    \