Modified partition table to support jffs2
authorhcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 5 Mar 2007 10:30:34 +0000 (10:30 +0000)
committerhcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 5 Mar 2007 10:30:34 +0000 (10:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6529 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/at91-2.6/patches/002-mtd-partitiontable.patch [new file with mode: 0644]

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 (file)
index 0000000..eb14e44
--- /dev/null
@@ -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
This page took 0.027782 seconds and 4 git commands to generate.