summaryrefslogtreecommitdiff
path: root/recipes/u-boot/u-boot-1.3.1/mpc8313e-rdb-mtdparts.patch
blob: a1fc5466ab15d78fa4a58425e01897b8ac68a8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -urN u-boot-1.3.1.orig/include/configs/MPC8313ERDB.h u-boot-1.3.1/include/configs/MPC8313ERDB.h
--- u-boot-1.3.1.orig/include/configs/MPC8313ERDB.h	2007-12-06 10:21:19.000000000 +0100
+++ u-boot-1.3.1/include/configs/MPC8313ERDB.h	2008-04-11 18:37:41.000000000 +0200
@@ -326,7 +326,7 @@
  */
 #ifndef CFG_RAMBOOT
 	#define CFG_ENV_IS_IN_FLASH	1
-	#define CFG_ENV_ADDR		(CFG_MONITOR_BASE + 0x40000)
+	#define CFG_ENV_ADDR		(CFG_MONITOR_BASE + 0x60000)
 	#define CFG_ENV_SECT_SIZE	0x10000	/* 64K(one sector) for env */
 	#define CFG_ENV_SIZE		0x2000
 
@@ -357,6 +357,7 @@
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_PCI
@@ -368,6 +369,14 @@
 
 #define CONFIG_CMDLINE_EDITING 1
 
+/*
+ * JFFS2 partitions (mtdparts command line support)
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define CONFIG_JFFS2_NAND
+#define MTDIDS_DEFAULT		"nor0=physmap-flash.0,nand0=nand0"
+#define MTDPARTS_DEFAULT	"mtdparts=physmap-flash.0:384k(uboot),64k(env)"
+
 
 /*
  * Miscellaneous configurable options