Felix Fietkau 5832e754fb 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>

SVN-Revision: 32866
2012-07-25 17:28:32 +00:00
..
2011-03-07 12:59:19 +00:00
2012-07-01 11:06:32 +00:00
2012-04-02 16:25:40 +00:00
2012-06-17 21:34:16 +00:00
2012-02-08 10:20:13 +00:00
2012-06-16 21:06:37 +00:00
2012-02-14 20:13:28 +00:00
2010-04-23 11:27:29 +00:00
2012-02-27 23:08:15 +00:00
2012-03-25 08:50:42 +00:00
2011-07-10 10:40:37 +00:00
2012-06-16 14:52:33 +00:00
2012-06-05 17:55:35 +00:00
2012-07-24 20:38:26 +00:00
2012-07-25 17:28:32 +00:00
2010-09-30 10:48:37 +00:00
2012-03-18 21:08:39 +00:00
2010-09-30 10:48:37 +00:00
2011-07-17 22:47:56 +00:00
2012-03-25 08:51:13 +00:00
2012-06-10 20:27:47 +00:00
2012-07-13 17:10:56 +00:00
2012-06-05 17:49:57 +00:00
2012-06-09 23:29:28 +00:00
2012-06-10 17:07:46 +00:00