1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 08:43:10 +02:00
openwrt-xburst/package/mtd/src
nbd a596792a94 mtd: fix trx_fixup
With the BRCM47xx image I have built (Linksys E3000), there are additional
writes following the completion of "mtd_replace_jffs2" which invalidate the
'trx_fixup' performed by 'mtd_replace_jffs2'.  Moving the 'trx_fixup' to somewhere
after all writes have completed fixes the problem.  I also noticed that 'erasesize'
used to compute 'block_offset' in 'mtd_fixtrx' is used before it is computed by
'mtd_check_open'; moving the call to 'mtd_check_open' up a few lines fixes this.

Unlike 'mtd_fixtrx', 'trx_fixup' appears to assume that the TRX header is always at
offset 0; which may be the cause of the problem described in Ticket #8960.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32866 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-25 17:28:32 +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: fix trx_fixup 2012-07-25 17:28:32 +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: fix trx_fixup 2012-07-25 17:28:32 +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 mtd: fix trx_fixup 2012-07-25 17:28:32 +00:00