1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 21:33:20 +02:00
openwrt-xburst/package/mtd/src
jow dd97bbee8a mtd - remove partition table assumption when writing fis table
When mtd alters the fis partition table it assumes that the first partition
table entry also is the first logical parition table entry. For instance our
table could look like this (irrelevant partitions put aside):
 * vmlinux.bin.l7 0xA8710000
 * rootfs         0xA8030000
Here mtd would assume vmlinux.bin.l7 being the first partition and use its
address to calculate the size and offset which ultimately leads to a broken
partition table.
This patch alters the behavior by checking what partition has the smaller
address to do the calculations based on that address.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 11:56:25 +00:00
..
bcm_tag.h mtd: Added fixtrx for brcm63xx imagetag. This allows brcm63xx boards which experience a CRC on second boot due to the JFFS2 creation / DEADC0DE deletion to work correctly when mtd fixtrx is run on first boot 2010-12-26 04:18:01 +00:00
crc32.c cleanup mtd, implement jffs2write - one step closer to config preserving system upgrades 2007-08-20 16:12:24 +00:00
crc32.h package/mtd: reuse existing crc32 stuff in the trx code 2010-03-27 17:38:30 +00:00
fis.c mtd - remove partition table assumption when writing fis table 2012-07-04 11:56:25 +00:00
fis.h mtd: add support for rewriting the fis table layout on redboot based systems 2009-09-21 09:58:41 +00:00
imagetag.c target: linux: mtd: fix MTDREFRESH to an arbitrary high number 2011-11-09 21:16:36 +00:00
jffs2.c mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx use the weak reference rather than the brcm47xx ifdef. This fixes a bug in which sysupgrade failed due to changing bad CRC on reboot. 2010-12-26 04:18:08 +00:00
jffs2.h get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
Makefile package/mtd: make fixtrx available on ar71xx as well 2011-01-05 19:27:55 +00:00
mtd.c mtd - add partition offset parameter 2012-07-04 11:37:53 +00:00
mtd.h mtd: Changed mtd_fixtrx and related functions to be weak references. The weak references only lead to actual functions for brcm47xx 2010-12-26 04:17:51 +00:00
trx.c target: linux: mtd: fix MTDREFRESH to an arbitrary high number 2011-11-09 21:16:36 +00:00