Commit Graph

73 Commits (b5051f91ff75da7801fc01250d141b4b90fdf209)

Author SHA1 Message Date
Gabor Juhos 71894cf47a package/mtd: make fixtrx available on ar71xx as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-05 19:27:55 +00:00
Daniel Dickinson ec103967cb Added OpenWRT-specific field to imagetag so that we can record the real root 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24838 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:13 +00:00
Daniel Dickinson 934de91827 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:08 +00:00
Daniel Dickinson 391a1c551b mtd: Added fixtrx for brcm63xx imagetag. This allows brcm63xx boards which 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:01 +00:00
Daniel Dickinson d74426e748 mtd: Changed mtd_fixtrx and related functions to be weak references. The weak references only lead to actual functions for brcm47xx
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:17:51 +00:00
Jo-Philipp Wich 553b131fe8 [package] mtd: whitespace cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 16:21:25 +00:00
Jo-Philipp Wich e293c3e32d [package] mtd: fix r24132
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24134 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 16:18:34 +00:00
Alexandros C. Couloumbis 7989ca19b5 package/mtd: (enhancement) add option to prevent erase when writing to flash. (closes #8308)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 14:10:01 +00:00
Gabor Juhos 7c4834a937 package/mtd: write remaining data after adding file to the jffs2 partition
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22881 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-03 18:14:32 +00:00
Jo-Philipp Wich 11776310f4 [package] 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.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-16 23:34:38 +00:00
Gabor Juhos 15ae56b617 package/mtd: fix automatic partition size detection in fis_remap
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 07:16:27 +00:00
Gabor Juhos 05fcd39f47 package/mtd: add fixtrx command
* patch by Bernhard Loos
 * note: trailing whitespaces are removed


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20524 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 17:38:33 +00:00
Gabor Juhos 9da0228c9e package/mtd: reuse existing crc32 stuff in the trx code
* patch by Bernhard Loos
 * note: fixed compiler error on brcm47xx


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 17:38:30 +00:00
Felix Fietkau be117a8d37 mtd: fix typo (thx, Plouj)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19263 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-21 23:48:52 +00:00
Jo-Philipp Wich e4c20607cf [package] 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-19 21:28:22 +00:00
Felix Fietkau 2e50e61cf2 mtd: fix wrong open() return code checks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17666 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 19:13:34 +00:00
Felix Fietkau 4e256b18bd mtd: bump release
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17661 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 11:19:08 +00:00
Felix Fietkau bcfbb1b4a4 mtd: update copyright headers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17660 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 10:09:02 +00:00
Felix Fietkau ad3e448f0d mtd: add support for rewriting the fis table layout on redboot based systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 09:58:41 +00:00
Andy Boyett fd376111a2 [package] bump some revisions and update copyrights
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-10 10:07:04 +00:00
Felix Fietkau c237543529 fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-05 23:38:51 +00:00
Felix Fietkau 5bdd866100 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Felix Fietkau 9dba055a77 remove accidentally committed debug message
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-02 18:31:26 +00:00
Felix Fietkau 49cdf61961 mtd: fix image check on non-broadcom platforms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-02 18:19:02 +00:00
Felix Fietkau 41ae863d7f fix some warnings
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12707 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-25 18:24:53 +00:00
Felix Fietkau 4a62d68975 mtd: improve support for reading input from a pipe. fixes sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12706 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-25 18:24:18 +00:00
Felix Fietkau ee40fc79d2 clean up mtd, fix up trx header when integrating jffs2 data on broadcom devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12655 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 09:23:58 +00:00
Felix Fietkau 5e59709c03 mtd: use broadcom specific code on linux 2.6 as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-22 17:06:03 +00:00
Felix Fietkau d66671abc4 fix mtd target define for brcm-2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-22 17:03:06 +00:00
Felix Fietkau 4fde06626f mtd: add jffs2 cleanmarker for big endian systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-28 00:15:22 +00:00
Felix Fietkau 700e5ed980 add support for appending a file to jffs2 during reflash on the fly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-08 22:43:19 +00:00
Nicolas Thill 2180fa92a1 move package description to a separate definition, remove it when DESCRIPTION=TITLE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 08:34:51 +00:00
Felix Fietkau fe9d7531d8 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-21 18:23:57 +00:00
Felix Fietkau f15f60c20a oops. forgot one file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-20 21:27:29 +00:00
Felix Fietkau 0b5b6e1a32 cleanup mtd, implement jffs2write - one step closer to config preserving system upgrades
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-20 16:12:24 +00:00
Felix Fietkau 9e9579ce57 add 'mtd refresh' command
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-19 21:53:44 +00:00
Mike Baker 4725d80d4d Add a "Rebooting ..." message to the mtd util
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 08:54:37 +00:00
Mike Baker c642e847dc change handling of non-trx files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6924 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-10 14:46:15 +00:00
Mike Baker 5660ba0198 fallback when devfs names aren't found
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6541 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-09 08:58:37 +00:00
Felix Fietkau 706bd43332 add reboot fix for mtd (thanks, wbx)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5645 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-26 01:03:21 +00:00
Felix Fietkau 5a32593057 replace lots of manual install commands with INSTALL_* variables
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-23 00:29:07 +00:00
Felix Fietkau 768b48f380 implement target profiles in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-12 05:06:56 +00:00
Felix Fietkau 4501909797 fix mtd compile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5505 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-12 01:45:59 +00:00
Felix Fietkau c124cbd78c ignore mtd erase errors (will probably be required for nand flash)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5292 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-25 19:47:09 +00:00
Felix Fietkau a9cd57af9e turn target runtime check of mtd into a compile-time check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5285 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-24 18:11:33 +00:00
Felix Fietkau 34f202b0ec improve mtd image check - don't check trx header if the target partition is not 'linux', don't display image check messages with -qq and -f, fixes #850
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5269 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-23 14:52:04 +00:00
Nicolas Thill 14a7d3fe26 standardize Makefile, change section from base to utils and category to "base system"
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-09-23 13:45:49 +00:00
Mike Baker ad8fe944b9 more cleanup (make sure to pass TARGET_PATH and not just TARGET_CC)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-08-04 05:30:27 +00:00
Nicolas Thill b343254a02 fix CATEGORY
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4304 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-07-27 12:45:13 +00:00
Mike Baker f9e5c1b1d5 credit where credit is due
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4091 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-06-27 00:35:46 +00:00