summaryrefslogtreecommitdiffstats
path: root/package/mtd/src/jffs2.c
Commit message (Collapse)AuthorAgeFilesLines
* mtd: fix trx_fixupnbd2012-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32866 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx ↵cshore2010-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/mtd: write remaining data after adding file to the jffs2 partitionjuhosg2010-09-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22881 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: fix wrong open() return code checksnbd2009-09-211-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: update copyright headersnbd2009-09-211-0/+18
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17660 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix some warningsnbd2008-09-251-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12707 3c298f89-4303-0410-b956-a3cf2f4a3e73
* clean up mtd, fix up trx header when integrating jffs2 data on broadcom devicesnbd2008-09-231-3/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: add jffs2 cleanmarker for big endian systemsnbd2008-08-281-1/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12418 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for appending a file to jffs2 during reflash on the flynbd2008-08-081-29/+53
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12250 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add sysupgrade script for config preserving system upgrades. only ↵nbd2007-08-211-2/+5
| | | | | | implemented for x86-2.6 at the moment, but can be ported to other platforms easily git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cleanup mtd, implement jffs2write - one step closer to config preserving ↵nbd2007-08-201-0/+303
system upgrades git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8444 3c298f89-4303-0410-b956-a3cf2f4a3e73