aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-03-05 10:30:34 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-03-05 10:30:34 +0000
commita5938cfbb39489444a1396122779fe98642b4063 (patch)
treeecfa8883dba72187628ed1589a7fa833cd415d51 /target/linux
parent64d7360b51ca14f28a73ac878d82f1fc0e22e2d7 (diff)
downloadupstream-a5938cfbb39489444a1396122779fe98642b4063.tar.gz
upstream-a5938cfbb39489444a1396122779fe98642b4063.tar.bz2
upstream-a5938cfbb39489444a1396122779fe98642b4063.zip
Modified partition table to support jffs2
SVN-Revision: 6529
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/at91-2.6/patches/002-mtd-partitiontable.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/at91-2.6/patches/002-mtd-partitiontable.patch b/target/linux/at91-2.6/patches/002-mtd-partitiontable.patch
new file mode 100644
index 0000000000..eb14e44023
--- /dev/null
+++ b/target/linux/at91-2.6/patches/002-mtd-partitiontable.patch
@@ -0,0 +1,37 @@
+diff -urN linux-2.6.19.2/drivers/mtd/devices/at91_dataflash.c linux-2.6.19.2.old/drivers/mtd/devices/at91_dataflash.c
+--- linux-2.6.19.2/drivers/mtd/devices/at91_dataflash.c 2007-03-05 11:21:48.000000000 +0100
++++ linux-2.6.19.2.old/drivers/mtd/devices/at91_dataflash.c 2007-03-05 09:23:03.000000000 +0100
+@@ -130,28 +130,18 @@
+ {
+ .name = "bootloader",
+ .offset = 0,
+- .size = 1 * 32 * 8 * 1056, /* 1st sector = 16 blocks * 8 pages * 1056 bytes */
++ .size = 1 * 32 * 8 * 1056, /* 1st sector = 32 blocks * 8 pages * 1056 bytes */
+ .mask_flags = MTD_WRITEABLE, /* read-only */
+ },
+ {
+- .name = "linux",
++ .name = "kernel",
+ .offset = MTDPART_OFS_NXTBLK,
+- .size = 4 * 32 * 8 * 1056, /* 4 sectors */
++ .size = 5 * 32 * 8 * 1056, /* 5 sectors */
+ },
+ {
+- .name = "rootfs",
++ .name = "filesystem",
+ .offset = MTDPART_OFS_NXTBLK,
+- .size = 4 * 32 * 8 * 1056, /* 4 sectors */
+- },
+- {
+- .name = "nvram",
+- .offset = MTDPART_OFS_NXTBLK,
+- .size = 1 * 4 * 8 * 1056, /* 4 blocks of 8 pages = ~32k */
+- },
+- {
+- .name = "OpenWrt",
+- .offset = MTDPART_OFS_NXTBLK,
+- .size = MTDPART_SIZ_FULL, /* rest of device */
++ .size = MTDPART_SIZ_FULL, /* rest = 26 sectors */
+ }
+ };
+ #endif