[PATCH 1/7] add-nand-fixed-partition-layout.patch
Andy Green
andy at openmoko.com
Mon Aug 18 00:24:04 CEST 2008
Signed-off-by: Andy Green <andy at openmoko.com>
---
include/device_configuration.h | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/include/device_configuration.h b/include/device_configuration.h
index 69e247c..deb7072 100644
--- a/include/device_configuration.h
+++ b/include/device_configuration.h
@@ -1,8 +1,25 @@
/* define the easily changed settings for the device here */
-#define CFG_NAND_OFFSET_FOR_KERNEL_PARTITION 0x80000
#define CFG_LINUX_MACHINE_ID 1304
#define CFG_LINUX_ATAG_ADDRESS 0x30000100
+#define CFG_NAND_OFFSET_FOR_KERNEL_PARTITION 0x80000
+/*
+ * we follow GTA02 layout actually to make life easier allowing NOR DFU during
+ * our initial development on GTA02
+ */
+#define CFG_LINUX_CMDLINE_BACKUP "mtdparts=neo1973-nand:" \
+ "0x00040000(kboot)," \
+ "0x00040000(cmdline)," \
+ "0x00800000(backupkernel)," \
+ "0x000a0000(extra)," \
+ "0x00040000(identity)," \
+ "0x0f6a0000(backuprootfs) " \
+ "rootfstype=jffs2 " \
+ "root=/dev/mtdblock5 " \
+ "console=ttySAC2,115200 " \
+ "loglevel=4 " \
+ "init=/sbin/init ro"
+
#define CFG_LINUX_CMDLINE "rootfstype=ext2 " \
"root=/dev/mmcblk0p1 " \
"console=ttySAC2,115200 " \
More information about the openmoko-kernel
mailing list