Commit graph

23 commits

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
Jo-Philipp Wich
3a794cde8c mtd: external toolchains usually do not know about MTDREFRESH, so search in $(LINUX_DIR)/include first, fixes compilation with external CodeSourcery toolchain
SVN-Revision: 29779
2012-01-18 19:22:14 +00:00
Jonas Gorski
f53128f79b target: linux: mtd: fix MTDREFRESH to an arbitrary high number
To make the ioctl number "stable", use an arbitrary high number to prevent
conflicts with new mtd ioctls that would push MTDREFRESH's number.

Also make mtd use the in-kernel mtd headers.

SVN-Revision: 28893
2011-11-09 21:16:36 +00:00
Gabor Juhos
091ea63719 package/mtd: don't append jffs2 data multiple times
SVN-Revision: 27358
2011-07-02 08:38:00 +00:00
Gabor Juhos
9abe5cf110 package/mtd: make fixtrx available on ar71xx as well
SVN-Revision: 24911
2011-01-05 19:27:55 +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
Jo-Philipp Wich
2dcfed2eff mtd: request locked pages when mmap'ing the FIS table, cures random segfaults in table rewrite until http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2d4dc890b5c8fabd818a8586607e6843c4375e62 is added.
SVN-Revision: 21823
2010-06-16 23:34:38 +00:00
Gabor Juhos
ebab30b7c7 package/mtd: fix automatic partition size detection in fis_remap
SVN-Revision: 20537
2010-03-28 07:16:27 +00:00
Jo-Philipp Wich
c8e7192064 mtd: treat failure to open FIS partition as fatal when a fis_layout is given, aborts mtd write if reformat is needed and FIS table not available
SVN-Revision: 19231
2010-01-19 21:28:22 +00:00
Felix Fietkau
9474d99dc0 mtd: bump release
SVN-Revision: 17661
2009-09-21 11:19:08 +00:00
Felix Fietkau
63c91af404 mtd: add support for rewriting the fis table layout on redboot based systems
SVN-Revision: 17659
2009-09-21 09:58:41 +00:00
Andy Boyett
a5f80019ef bump some revisions and update copyrights
SVN-Revision: 17554
2009-09-10 10:07:04 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +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
413b45df85 fix mtd target define for brcm-2.4
SVN-Revision: 12650
2008-09-22 17:03:06 +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
Nicolas Thill
34bb4638e7 move package description to a separate definition, remove it when DESCRIPTION=TITLE
SVN-Revision: 8659
2007-09-07 08:34:51 +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
Felix Fietkau
97b0e81658 add reboot fix for mtd (thanks, wbx)
SVN-Revision: 5645
2006-11-26 01:03:21 +00:00
Felix Fietkau
c2211dc51e replace lots of manual install commands with INSTALL_* variables
SVN-Revision: 5624
2006-11-23 00:29:07 +00:00
Felix Fietkau
105a602ecf implement target profiles in menuconfig
SVN-Revision: 5512
2006-11-12 05:06:56 +00:00
Felix Fietkau
426ecdecef turn target runtime check of mtd into a compile-time check
SVN-Revision: 5285
2006-10-24 18:11:33 +00:00
Felix Fietkau
60c1f0f64d finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00