diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-24 00:18:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-24 00:18:33 +0000 |
commit | d3f34f32e25426438b4e519a5aad6f69b8037cb3 (patch) | |
tree | 29d1ae363a79101ff8070aa7765a29f0c29f94d0 | |
parent | 01ebc85a7f84aadb5740ab40df3cc0dc140ee9ee (diff) | |
download | mtk-20170518-d3f34f32e25426438b4e519a5aad6f69b8037cb3.zip mtk-20170518-d3f34f32e25426438b4e519a5aad6f69b8037cb3.tar.gz mtk-20170518-d3f34f32e25426438b4e519a5aad6f69b8037cb3.tar.bz2 |
fix ar7 flash map driver handling of jffs2 images
SVN-Revision: 1743
-rw-r--r-- | openwrt/target/linux/linux-2.4/patches/ar7/001-flash_map.patch | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openwrt/target/linux/linux-2.4/patches/ar7/001-flash_map.patch b/openwrt/target/linux/linux-2.4/patches/ar7/001-flash_map.patch index df73515..83bc103 100644 --- a/openwrt/target/linux/linux-2.4/patches/ar7/001-flash_map.patch +++ b/openwrt/target/linux/linux-2.4/patches/ar7/001-flash_map.patch @@ -1,7 +1,7 @@ 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.dev/drivers/mtd/maps/ar7-flash.c 2005-07-22 04:35:26.624453992 +0200 -@@ -0,0 +1,265 @@ +@@ -0,0 +1,267 @@ +/* + * $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; + } else { + printk("Unknown filesystem. Moving rootfs partition to next erase block"); -+ if ((rootfs_start % ar7_mtd_info->erasesize) > 0) -+ rootfs_start += ar7_mtd_info->erasesize - (rootfs_start % ar7_mtd_info->erasesize); ++ if ((rootfs_start % ar7_mtd_info->erasesize) > 0) { ++ 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; |