Commit Graph

11 Commits (3dac521a49dc1fba0484968ce0c0cb6bc406ab34)

Author SHA1 Message Date
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
Daniel Dickinson b3bcc483b2 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.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>

SVN-Revision: 24837
2010-12-26 04:18:08 +00:00
Gabor Juhos 2a541325d3 package/mtd: write remaining data after adding file to the jffs2 partition
SVN-Revision: 22881
2010-09-03 18:14:32 +00:00
Felix Fietkau 5b02773940 mtd: fix wrong open() return code checks
SVN-Revision: 17666
2009-09-21 19:13:34 +00:00
Felix Fietkau a512be592f mtd: update copyright headers
SVN-Revision: 17660
2009-09-21 10:09:02 +00:00
Felix Fietkau a38c409d6a fix some warnings
SVN-Revision: 12707
2008-09-25 18:24:53 +00:00
Felix Fietkau bbd9eb4669 clean up mtd, fix up trx header when integrating jffs2 data on broadcom devices
SVN-Revision: 12655
2008-09-23 09:23:58 +00:00
Felix Fietkau 4ac7d33b7a mtd: add jffs2 cleanmarker for big endian systems
SVN-Revision: 12418
2008-08-28 00:15:22 +00:00
Felix Fietkau 753e5b492d add support for appending a file to jffs2 during reflash on the fly
SVN-Revision: 12250
2008-08-08 22:43:19 +00:00
Felix Fietkau 1e38527a52 add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
SVN-Revision: 8456
2007-08-21 18:23:57 +00:00
Felix Fietkau a91350732c cleanup mtd, implement jffs2write - one step closer to config preserving system upgrades
SVN-Revision: 8444
2007-08-20 16:12:24 +00:00