summaryrefslogtreecommitdiffstats
path: root/package/mtd/src/jffs2.c
Commit message (Collapse)AuthorAgeFilesLines
* mtd: fix trx_fixupFelix Fietkau2012-07-251-3/+0
| | | | | | | | | | | | | | | | 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
* mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx ↵Daniel Dickinson2010-12-261-6/+6
| | | | | | | | 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
* package/mtd: write remaining data after adding file to the jffs2 partitionGabor Juhos2010-09-031-1/+1
| | | | SVN-Revision: 22881
* mtd: fix wrong open() return code checksFelix Fietkau2009-09-211-3/+3
| | | | SVN-Revision: 17666
* mtd: update copyright headersFelix Fietkau2009-09-211-0/+18
| | | | SVN-Revision: 17660
* fix some warningsFelix Fietkau2008-09-251-1/+1
| | | | SVN-Revision: 12707
* clean up mtd, fix up trx header when integrating jffs2 data on broadcom devicesFelix Fietkau2008-09-231-3/+10
| | | | SVN-Revision: 12655
* mtd: add jffs2 cleanmarker for big endian systemsFelix Fietkau2008-08-281-1/+6
| | | | SVN-Revision: 12418
* add support for appending a file to jffs2 during reflash on the flyFelix Fietkau2008-08-081-29/+53
| | | | SVN-Revision: 12250
* add sysupgrade script for config preserving system upgrades. only ↵Felix Fietkau2007-08-211-2/+5
| | | | | | implemented for x86-2.6 at the moment, but can be ported to other platforms easily SVN-Revision: 8456
* cleanup mtd, implement jffs2write - one step closer to config preserving ↵Felix Fietkau2007-08-201-0/+303
system upgrades SVN-Revision: 8444