[U-Boot-Users] [PATCH] Add JFFS2 support for TRAB board
Martin Krause
Martin.Krause at tqs.de
Thu Aug 25 18:21:59 CEST 2005
Subject: [PATCH] Add JFFS2 support for TRAB board
---
CHANGELOG | 3 +++
include/configs/trab.h | 24 ++++++++++++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)
50a9addde722baec91dd20427f52502ea13e29a3
diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.4:
======================================================================
+* Add JFFS2 support for TRAB board
+ Patch by Martin Krause, 25 Aug 2005
+
* Fixed Bamboo port to enable running without DDR-DIMM
(Bamboo has also 64MB onboard DDR)
Patch by Stefan Roese, 24 Aug 2005
diff --git a/include/configs/trab.h b/include/configs/trab.h
--- a/include/configs/trab.h
+++ b/include/configs/trab.h
@@ -159,10 +159,11 @@
CFG_CMD_BSP | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
- CFG_CMD_USB | \
CFG_CMD_FAT | \
+ CFG_CMD_JFFS2 | \
CFG_CMD_NFS | \
- CFG_CMD_SNTP )
+ CFG_CMD_SNTP | \
+ CFG_CMD_USB )
#else
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CONFIG_COMMANDS_ADD_HWFLOW | \
@@ -172,10 +173,11 @@
CFG_CMD_BSP | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
- CFG_CMD_USB | \
CFG_CMD_FAT | \
+ CFG_CMD_JFFS2 | \
CFG_CMD_NFS | \
- CFG_CMD_SNTP )
+ CFG_CMD_SNTP | \
+ CFG_CMD_USB )
#endif
/* moved up */
@@ -377,6 +379,20 @@
#define CFG_MONITOR_BASE CFG_FLASH_BASE
#define CFG_MONITOR_LEN (256 << 10)
+/* Dynamic MTD partition support */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT "nor0=0"
+
+/* production flash layout */
+#define MTDPARTS_DEFAULT "mtdparts=0:32k(Firmware1)ro," \
+ "16k(Env1)," \
+ "16k(Env2)," \
+ "320k(Firmware2)ro," \
+ "896k(Kernel)," \
+ "5376k(Root-FS)," \
+ "1408k(JFFS2)," \
+ "-(VFD)"
+
/*-----------------------------------------------------------------------
* FLASH and environment organization
*/
TQ-Systems GmbH
Mühlstraße 2, Gut Delling, 82229 Seefeld
Tel. +49 (8153) 93 08-157, Fax +49 (8153) 93 08-7157
martin.krause at tqs.de
www.tq-group.com
More information about the U-Boot
mailing list