]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
TQM8xx{L,M}: try to normalize config files for TQM8xx? based board
authorWolfgang Denk <wd@denx.de>
Sat, 9 Aug 2008 21:17:32 +0000 (23:17 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 9 Aug 2008 21:17:32 +0000 (23:17 +0200)
- enable CFI driver where this was forgotten
- enable mtdparts support
- adjust default environment
etc.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 files changed:
include/configs/FPS850L.h
include/configs/FPS860L.h
include/configs/NSCU.h
include/configs/TQM823L.h
include/configs/TQM823M.h
include/configs/TQM850L.h
include/configs/TQM850M.h
include/configs/TQM855L.h
include/configs/TQM855M.h
include/configs/TQM860L.h
include/configs/TQM860M.h
include/configs/TQM862L.h
include/configs/TQM862M.h
include/configs/TQM866M.h
include/configs/virtlab2.h

index e4b68aba7fec5cb071819bf00220c7838cb5242e..66db296495279b485f5da561a0d14f125979d44d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/fps850L/uImage\0"                           \
+       "hostname=FPS850L\0"                                            \
+       "bootfile=FPS850L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=FPS850L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+/* use CFI flash driver */
+#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CFG_FLASH_CFI_DRIVER   1       /* Use the common driver */
+#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
+#define CFG_FLASH_EMPTY_INFO
+#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
 
 #define        CFG_ENV_IS_IN_FLASH     1
 #define        CFG_ENV_OFFSET          0x8000  /*   Offset   of Environment Sector     */
 #define CFG_ENV_OFFSET_REDUND  (CFG_ENV_OFFSET+CFG_ENV_SIZE)
 #define CFG_ENV_SIZE_REDUND    (CFG_ENV_SIZE)
 
+#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index ed612c33964be96c32f74162805e4e7629494ca1..84607ccc32dc59cb87379b8e3907d09d6d46fdca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/fps850L/uImage\0"                           \
+       "hostname=FPS860L\0"                                            \
+       "bootfile=FPS860L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=FPS860L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+/* use CFI flash driver */
+#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CFG_FLASH_CFI_DRIVER   1       /* Use the common driver */
+#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
+#define CFG_FLASH_EMPTY_INFO
+#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
 
 #define        CFG_ENV_IS_IN_FLASH     1
 #define        CFG_ENV_OFFSET          0x8000  /*   Offset   of Environment Sector     */
 #define CFG_ENV_OFFSET_REDUND  (CFG_ENV_OFFSET+CFG_ENV_SIZE)
 #define CFG_ENV_SIZE_REDUND    (CFG_ENV_SIZE)
 
+#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
 #define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
 #define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
 
-/* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
-                                OR_SCY_5_CLK | OR_EHTR)
+/*
+ * FLASH timing:
+ */
+#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+                                OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
 #define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
 #define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
 
 /*
  * Memory Periodic Timer Prescaler
+ *
+ * The Divider for PTA (refresh timer) configuration is based on an
+ * example SDRAM configuration (64 MBit, one bank). The adjustment to
+ * the number of chip selects (NCS) and the actually needed refresh
+ * rate is done by setting MPTPR.
+ *
+ * PTA is calculated from
+ *     PTA = (gclk * Trefresh) / ((2 ^ (2 * DFBRG)) * PTP * NCS)
+ *
+ *     gclk      CPU clock (not bus clock!)
+ *     Trefresh  Refresh cycle * 4 (four word bursts used)
+ *
+ * 4096  Rows from SDRAM example configuration
+ * 1000  factor s -> ms
+ *   32  PTP (pre-divider from MPTPR) from SDRAM example configuration
+ *    4  Number of refresh cycles per period
+ *   64  Refresh cycle in ms per number of rows
+ * --------------------------------------------
+ * Divider = 4096 * 32 * 1000 / (4 * 64) = 512000
+ *
+ * 50 MHz => 50.000.000 / Divider =  98
+ * 66 Mhz => 66.000.000 / Divider = 129
+ * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-/* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
+#define CFG_MAMR_PTA   98
 
-/* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
+/*
+ * For 16 MBit, refresh rates could be 31.3 us
+ * (= 64 ms / 2K = 125 / quad bursts).
+ * For a simpler initialization, 15.6 us is used instead.
+ *
+ * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
+ * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ */
 #define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
 #define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 #define        BOOTFLAG_COLD   0x01            /* Normal Power-On: Boot from FLASH     */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                      */
 
+#define CONFIG_SCC1_ENET
+
 #endif /* __CONFIG_H */
index 11e5c63ed30cb798d9e56a5d261db136680bca62..21d90c303a94c1ecf09f4466a0ed843f1cbad892 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/NSCU/uImage\0"                              \
+       "hostname=NSCU\0"                                               \
+       "bootfile=${hostname}/uImage\0"                                 \
        "kernel_addr=40080000\0"                                        \
        "ramdisk_addr=40180000\0"                                       \
+       "u-boot=${hostname}/u-image.bin\0"                              \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 #define        CFG_LONGHELP                    /* undef to save memory         */
 #define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
 
-#if 0
+#define CONFIG_CMDLINE_EDITING 1       /* add command line history
+*/
 #define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#endif
 #ifdef CFG_HUSH_PARSER
 #define        CFG_PROMPT_HUSH_PS2     "> "
 #endif
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+/* use CFI flash driver */
+#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CFG_FLASH_CFI_DRIVER   1       /* Use the common driver */
+#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
+#define CFG_FLASH_EMPTY_INFO
+#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
 
 #define        CFG_ENV_IS_IN_FLASH     1
-#define        CFG_ENV_OFFSET          0x40000 /*   Offset   of Environment Sector     */
-#define        CFG_ENV_SIZE            0x08000 /* Total Size of Environment Sector     */
-#define        CFG_ENV_SECT_SIZE       0x20000 /* Total Size of Environment Sector     */
+#define        CFG_ENV_OFFSET          0x8000  /*   Offset   of Environment Sector     */
+#define        CFG_ENV_SIZE            0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
-#define CFG_ENV_OFFSET_REDUND  (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
+#define CFG_ENV_OFFSET_REDUND  (CFG_ENV_OFFSET+CFG_ENV_SIZE)
 #define CFG_ENV_SIZE_REDUND    (CFG_ENV_SIZE)
 
+#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index d5a3c54b6d6beee95e18204e0248115234fc9b1b..f807271ba6522b84e8b3714a91538aaec6a2e11d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM823L/uImage\0"                           \
+       "hostname=TQM823L\0"                                            \
+       "bootfile=TQM823L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=TQM823L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 #endif
 
 
+#define CONFIG_NETCONSOLE
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 40dc26bf7052afae5cdccdb1a4091019eac1ed35..431ae8c5a230d30efc0cedb0bf6ac746e847006e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM823M/uImage\0"                           \
+       "hostname=TQM823M\0"                                            \
+       "bootfile=TQM823M/uImage\0"                                     \
        "fdt_addr=40080000\0"                                           \
        "kernel_addr=400A0000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM823M/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 17afa895bb99b6404f3e8f986213216add0067fe..7946c13a1ced3281af0437a6b085a76706903cb8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM850L/uImage\0"                           \
+       "hostname=TQM850L\0"                                            \
+       "bootfile=TQM850L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=TQM850L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index becf82c8bc21721bfb15f1ab911aaa67b137911a..777776d421b820bf5715b2e526d2c6e8663da7ce 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM850M/uImage\0"                           \
+       "hostname=TQM850M\0"                                            \
+       "bootfile=TQM850M/uImage\0"                                     \
        "fdt_addr=40080000\0"                                           \
        "kernel_addr=400A0000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM850M/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 73d6583552351538eb2f8795ee87094ca14d3225..0549cbd94a66e3c107a17a671ad9190a2f1db65c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM855L/uImage\0"                           \
+       "hostname=TQM855L\0"                                            \
+       "bootfile=TQM855L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=TQM855L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 2696ea502b00926291523ba6867aa1c0edbd3b95..bc092b7f2112353a935945e7580e46914f1e8da6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM855M/uImage\0"                           \
+       "hostname=TQM855M\0"                                            \
+       "bootfile=TQM855M/uImage\0"                                     \
        "fdt_addr=40080000\0"                                           \
        "kernel_addr=400A0000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM855M/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 576e3e2f3681b306219fafe6e7d4d5d8c88521e4..065156fe31330be0211e23ad557cf56ff4cf166d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM860L/uImage\0"                           \
+       "hostname=TQM860L\0"                                            \
+       "bootfile=TQM860L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=TQM860L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 00b78534abdeaabaa6b1d46e301f4c8a5ccdb9cd..ff610bfe3ce91ed7abc4528e367bab8e1c408613 100644 (file)
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM860M/uImage\0"                           \
+       "hostname=TQM860M\0"                                            \
+       "bootfile=TQM860M/uImage\0"                                     \
        "fdt_addr=400C0000\0"                                           \
        "kernel_addr=40100000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM860M/u-image.bin\0"                                  \
        "load=tftp 200000 ${u-boot}\0"                                  \
-       "update=protect off 40000000 +${filesize};"                     \
-               "erase 40000000 +${filesize};"                          \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
                "cp.b 200000 40000000 ${filesize};"                     \
-               "protect on 40000000 +${filesize}\0"                    \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 6d2f91bc50af9557da26b0d30d49b3e96f3a5fa5..33ff8a909aaf982195c8e49594b14880bd1d3210 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2005
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM862L/uImage\0"                           \
+       "hostname=TQM862L\0"                                            \
+       "bootfile=TQM862L/uImage\0"                                     \
        "fdt_addr=40040000\0"                                           \
        "kernel_addr=40060000\0"                                        \
        "ramdisk_addr=40200000\0"                                       \
+       "u-boot=TQM862L/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 05395e0d4f5862cd7a87115686260559484b6edf..1ec44319eef056b9153bd12df60dc175f0d07d1f 100644 (file)
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM862M/uImage\0"                           \
+       "hostname=TQM862M\0"                                            \
+       "bootfile=TQM862M/uImage\0"                                     \
        "fdt_addr=40080000\0"                                           \
        "kernel_addr=400A0000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM862M/u-image.bin\0"                                  \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 
+#define CONFIG_NETCONSOLE
+
+
 /*
  * Miscellaneous configurable options
  */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index d033875dc5bd6ac1ac162c00a493c09e1abccb00..0cee9f4fe4f8789f1b1ffa8588c830092518a058 100644 (file)
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM866M/uImage\0"                           \
+       "hostname=TQM866M\0"                                            \
+       "bootfile=TQM866M/uImage\0"                                     \
        "fdt_addr=400C0000\0"                                           \
        "kernel_addr=40100000\0"                                        \
        "ramdisk_addr=40280000\0"                                       \
+       "u-boot=TQM866M/u-image.bin\0"                                  \
        "load=tftp 200000 ${u-boot}\0"                                  \
-       "update=protect off 40000000 +${filesize};"                     \
-               "erase 40000000 +${filesize};"                          \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
                "cp.b 200000 40000000 ${filesize};"                     \
-               "protect on 40000000 +${filesize}\0"                    \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_EEPROM
-#define CONFIG_CMD_I2C
+#define CONFIG_CMD_ELF
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
+#define CONFIG_CMD_SNTP
+
+
+#define CONFIG_NETCONSOLE
 
 
 /*
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxM-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxM-0:512k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1920k(kernel),"        \
+                                               "5632(rootfs),"         \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
index 6bb075d27c31f650f43c0e9e7aeb81eeaf36449f..54d9421d717537cc08121546fdfe68e7964731bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2006
+ * (C) Copyright 2006-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
 #define CONFIG_VIRTLAB2                1       /* ...on a virtlab2 module      */
 #define        CONFIG_TQM8xxL          1
 
-#ifdef CONFIG_LCD                      /* with LCD controller ?        */
-#define        CONFIG_SPLASH_SCREEN            /* ... with splashscreen support*/
-#endif
-
 #define        CONFIG_8xx_CONS_SMC1    1       /* Console is on SMC1           */
 #undef CONFIG_8xx_CONS_SMC2
 #undef CONFIG_8xx_CONS_NONE
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"     \
        "rootpath=/opt/eldk/ppc_8xx\0"                                  \
-       "bootfile=/tftpboot/TQM823L/uImage\0"                           \
-       "kernel_addr=40040000\0"                                        \
-       "ramdisk_addr=40100000\0"                                       \
+       "hostname=virtlab2\0"                                           \
+       "bootfile=virtlab2/uImage\0"                                    \
+       "fdt_addr=40040000\0"                                           \
+       "kernel_addr=40060000\0"                                        \
+       "ramdisk_addr=40200000\0"                                       \
+       "u-boot=virtlab2/u-image.bin\0"                                 \
+       "load=tftp 200000 ${u-boot}\0"                                  \
+       "update=prot off 40000000 +${filesize};"                        \
+               "era 40000000 +${filesize};"                            \
+               "cp.b 200000 40000000 ${filesize};"                     \
+               "sete filesize;save\0"                                  \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_IDE
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_SNTP
 
 #endif
 
 
+#define CONFIG_NETCONSOLE
+
 /*
  * Miscellaneous configurable options
  */
 #define        CFG_LONGHELP                    /* undef to save memory         */
 #define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
 
-#if 0
+#define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#endif
 #ifdef CFG_HUSH_PARSER
 #define        CFG_PROMPT_HUSH_PS2     "> "
 #endif
 /* use CFI flash driver */
 #define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
 #define CFG_FLASH_CFI_DRIVER   1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
 #define CFG_FLASH_EMPTY_INFO
 #define CFG_FLASH_USE_BUFFER_WRITE     1
 #define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
 
 #define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
+/*-----------------------------------------------------------------------
+ * Dynamic MTD partition support
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=TQM8xxL-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=TQM8xxL-0:256k(u-boot),"      \
+                                               "128k(dtb),"            \
+                                               "1664k(kernel),"        \
+                                               "2m(rootfs),"           \
+                                               "4m(data)"      
+
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */