aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd
Commit message (Collapse)AuthorAgeFilesLines
* packages: clean up the package folderJohn Crispin2013-06-2116-3026/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007
* mtd: do not include error.hFlorian Fainelli2012-11-211-1/+0
| | | | | | | We do not use anything from it, and it is not available with all libcs. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34294
* linux: export bcm963xx_tag.h to userspaceJonas Gorski2012-11-061-1/+1
| | | | | | | | | | | | Export bcm963xx_tag.h so mtd can use it without using kernel includes. Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> [jonas.gorski@gmail.com: fixup bcm63xx patches, completely remove header from original location, refresh patches, use a more matching patch number, port to 3.6] Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> SVN-Revision: 34103
* mtd: avoid adding the kernel dir to includes, use the toolchain headersFelix Fietkau2012-11-041-1/+1
| | | | SVN-Revision: 34071
* licensing: Add licensing metadata to many packages Two new variables are ↵Hamish Guthrie2012-10-191-0/+3
| | | | | | | | | introduces to many packages, namely PKG_LICENSE and PKG_LICENSE_FILES - there may be more than one license applied to packages, and these are listed in the PKG_LICENSE variable and separated by spaces. All relevant license files are also added to the PKG_LICENSE_FILES variable, also space separated. The licensing metadata is put into the bin/<platform>/packages/Packages file for later parsing. A script for that is on it's way! SVN-Revision: 33861
* package/mtd: add option for fixing seama imagesGabor Juhos2012-10-188-3/+677
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33841
* package: mtd: use in-kernel bcm63xx image tag headerJonas Gorski2012-10-083-30/+30
| | | | | | | Use the image tag header from the kernel instead of an external header file. SVN-Revision: 33654
* mtd: fix trx_fixupFelix Fietkau2012-07-254-8/+11
| | | | | | | | | | | | | | | | 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 - remove partition table assumption when writing fis tableJo-Philipp Wich2012-07-041-3/+13
| | | | | | | | | | | | | | | | | When mtd alters the fis partition table it assumes that the first partition table entry also is the first logical parition table entry. For instance our table could look like this (irrelevant partitions put aside): * vmlinux.bin.l7 0xA8710000 * rootfs 0xA8030000 Here mtd would assume vmlinux.bin.l7 being the first partition and use its address to calculate the size and offset which ultimately leads to a broken partition table. This patch alters the behavior by checking what partition has the smaller address to do the calculations based on that address. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> SVN-Revision: 32601
* mtd - add partition offset parameterJo-Philipp Wich2012-07-041-6/+20
| | | | | | | | | The offset parameter can be used to write the data at the offset instead of writing it to the beginning of the partition. Signed-off-by: Marek Linder <lindner_marek@yahoo.de> SVN-Revision: 32600
* mtd: define MTDREFRESH if not defined (external kernel)Florian Fainelli2012-02-061-0/+4
| | | | SVN-Revision: 30340
* mtd: external toolchains usually do not know about MTDREFRESH, so search in ↵Jo-Philipp Wich2012-01-181-1/+1
| | | | | | $(LINUX_DIR)/include first, fixes compilation with external CodeSourcery toolchain SVN-Revision: 29779
* target: linux: mtd: fix MTDREFRESH to an arbitrary high numberJonas Gorski2011-11-095-308/+4
| | | | | | | | | 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
* package/mtd: don't append jffs2 data multiple timesGabor Juhos2011-07-022-1/+4
| | | | SVN-Revision: 27358
* package/mtd: make fixtrx available on ar71xx as wellGabor Juhos2011-01-053-3/+4
| | | | SVN-Revision: 24911
* Added OpenWRT-specific field to imagetag so that we can record the real root ↵Daniel Dickinson2010-12-261-3/+3
| | | | | | | | length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size. Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24838
* mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx ↵Daniel Dickinson2010-12-262-6/+77
| | | | | | | | 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
* mtd: Added fixtrx for brcm63xx imagetag. This allows brcm63xx boards which ↵Daniel Dickinson2010-12-264-1/+247
| | | | | | | | experience a CRC on second boot due to the JFFS2 creation / DEADC0DE deletion to work correctly when mtd fixtrx is run on first boot Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24835
* mtd: Changed mtd_fixtrx and related functions to be weak references. The ↵Daniel Dickinson2010-12-263-115/+120
| | | | | | | | weak references only lead to actual functions for brcm47xx Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24833
* mtd: whitespace cleanupJo-Philipp Wich2010-11-241-1/+1
| | | | SVN-Revision: 24135
* mtd: fix r24132Jo-Philipp Wich2010-11-241-29/+29
| | | | SVN-Revision: 24134
* package/mtd: (enhancement) add option to prevent erase when writing to ↵Alexandros C. Couloumbis2010-11-241-1/+10
| | | | | | flash. (closes #8308) SVN-Revision: 24132
* package/mtd: write remaining data after adding file to the jffs2 partitionGabor Juhos2010-09-033-10/+32
| | | | SVN-Revision: 22881
* mtd: request locked pages when mmap'ing the FIS table, cures random ↵Jo-Philipp Wich2010-06-162-2/+2
| | | | | | 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
* package/mtd: fix automatic partition size detection in fis_remapGabor Juhos2010-03-282-8/+20
| | | | SVN-Revision: 20537
* package/mtd: add fixtrx commandGabor Juhos2010-03-272-4/+110
| | | | | | | * patch by Bernhard Loos * note: trailing whitespaces are removed SVN-Revision: 20524
* package/mtd: reuse existing crc32 stuff in the trx codeGabor Juhos2010-03-272-34/+9
| | | | | | | * patch by Bernhard Loos * note: fixed compiler error on brcm47xx SVN-Revision: 20523
* mtd: fix typo (thx, Plouj)Felix Fietkau2010-01-211-1/+1
| | | | SVN-Revision: 19263
* mtd: treat failure to open FIS partition as fatal when a fis_layout is ↵Jo-Philipp Wich2010-01-192-2/+2
| | | | | | given, aborts mtd write if reformat is needed and FIS table not available SVN-Revision: 19231
* mtd: fix wrong open() return code checksFelix Fietkau2009-09-212-9/+9
| | | | SVN-Revision: 17666
* mtd: bump releaseFelix Fietkau2009-09-211-1/+1
| | | | SVN-Revision: 17661
* mtd: update copyright headersFelix Fietkau2009-09-213-5/+36
| | | | SVN-Revision: 17660
* mtd: add support for rewriting the fis table layout on redboot based systemsFelix Fietkau2009-09-215-56/+451
| | | | SVN-Revision: 17659
* bump some revisions and update copyrightsAndy Boyett2009-09-101-3/+3
| | | | SVN-Revision: 17554
* fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)Felix Fietkau2009-09-051-1/+1
| | | | SVN-Revision: 17522
* get rid of $Id$ - it has never helped us and it has broken too many patches ;)Felix Fietkau2009-04-174-4/+0
| | | | SVN-Revision: 15242
* remove accidentally committed debug messageFelix Fietkau2008-10-021-3/+1
| | | | SVN-Revision: 12827
* mtd: fix image check on non-broadcom platformsFelix Fietkau2008-10-021-1/+1
| | | | SVN-Revision: 12825
* fix some warningsFelix Fietkau2008-09-252-2/+4
| | | | SVN-Revision: 12707
* mtd: improve support for reading input from a pipe. fixes sysupgradeFelix Fietkau2008-09-251-9/+21
| | | | SVN-Revision: 12706
* clean up mtd, fix up trx header when integrating jffs2 data on broadcom devicesFelix Fietkau2008-09-236-80/+209
| | | | SVN-Revision: 12655
* mtd: use broadcom specific code on linux 2.6 as wellFelix Fietkau2008-09-221-0/+4
| | | | SVN-Revision: 12651
* fix mtd target define for brcm-2.4Felix Fietkau2008-09-221-1/+1
| | | | SVN-Revision: 12650
* 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-084-59/+110
| | | | SVN-Revision: 12250
* move package description to a separate definition, remove it when ↵Nicolas Thill2007-09-071-3/+5
| | | | | | DESCRIPTION=TITLE SVN-Revision: 8659
* add sysupgrade script for config preserving system upgrades. only ↵Felix Fietkau2007-08-212-3/+6
| | | | | | implemented for x86-2.6 at the moment, but can be ported to other platforms easily SVN-Revision: 8456
* oops. forgot one fileFelix Fietkau2007-08-201-0/+14
| | | | SVN-Revision: 8445
* cleanup mtd, implement jffs2write - one step closer to config preserving ↵Felix Fietkau2007-08-208-135/+810
| | | | | | system upgrades SVN-Revision: 8444
* add 'mtd refresh' commandFelix Fietkau2007-08-192-1/+33
| | | | SVN-Revision: 8439