1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 18:07:31 +02:00

fix ar7 flash map driver handling of jffs2 images

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1743 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-08-24 00:18:33 +00:00
parent 77bee37c0a
commit 1bd05f06b6

View File

@ -1,7 +1,7 @@
diff -urN linux.old/drivers/mtd/maps/ar7-flash.c linux.dev/drivers/mtd/maps/ar7-flash.c diff -urN linux.old/drivers/mtd/maps/ar7-flash.c linux.dev/drivers/mtd/maps/ar7-flash.c
--- linux.old/drivers/mtd/maps/ar7-flash.c 1970-01-01 01:00:00.000000000 +0100 --- linux.old/drivers/mtd/maps/ar7-flash.c 1970-01-01 01:00:00.000000000 +0100
+++ linux.dev/drivers/mtd/maps/ar7-flash.c 2005-07-22 04:35:26.624453992 +0200 +++ linux.dev/drivers/mtd/maps/ar7-flash.c 2005-07-22 04:35:26.624453992 +0200
@@ -0,0 +1,265 @@ @@ -0,0 +1,267 @@
+/* +/*
+ * $Id$ + * $Id$
+ * + *
@ -240,8 +240,10 @@ diff -urN linux.old/drivers/mtd/maps/ar7-flash.c linux.dev/drivers/mtd/maps/ar7-
+ ar7_partinfo[p++].mask_flags = 0; + ar7_partinfo[p++].mask_flags = 0;
+ } else { + } else {
+ printk("Unknown filesystem. Moving rootfs partition to next erase block"); + printk("Unknown filesystem. Moving rootfs partition to next erase block");
+ if ((rootfs_start % ar7_mtd_info->erasesize) > 0) + if ((rootfs_start % ar7_mtd_info->erasesize) > 0) {
+ rootfs_start += ar7_mtd_info->erasesize - (rootfs_start % ar7_mtd_info->erasesize); + ar7_partinfo[p - 2].offset += ar7_mtd_info->erasesize - (rootfs_start % ar7_mtd_info->erasesize);
+ ar7_partinfo[p - 2].size -= ar7_mtd_info->erasesize - (rootfs_start % ar7_mtd_info->erasesize);
+ }
+ } + }
+ +
+ return p; + return p;