openwrt/package/system/mtd/src
David Bauer 1e06482f7d mtd: add logic for TP-Link ramips recovery magic
This adds an option to set the recovery flag of newer TP-Link MediaTek
boards and remove it after a successful write.

To make use of this feature, add the '-t' option to mtd-write.

The '-t' option takes the mtd partition containing the recovery flag
(usually 'romfile') as an argument. Make sure this partition is not
flagged as read-only!

Example:
 > mtd -t romfile write owrt.bin firmware

This command writes the recovery-flag before it begins writing the image
to the firmware partition. After the image-write has been successful,
the recovery flag is removed.

This way, the TP-Link web-recovery is automatically enabled on an
unsucessful flash (e.g. power loss).

This option is only available if the mtd package is compiled for the
ramips target.

Signed-off-by: David Bauer <mail@david-bauer.net>
2019-01-26 21:46:32 +01:00
..
crc32.c packages: clean up the package folder 2013-06-21 16:54:37 +00:00
crc32.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
fis.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
fis.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
imagetag.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
jffs2.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
jffs2.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
linksys_bootcount_fix.c mtd: add linksys_bootcount to the ipq40xx target 2019-01-26 21:43:06 +01:00
linksys_bootcount.c mtd: fix building with glibc 2016-08-18 09:49:18 +02:00
Makefile mtd: add logic for TP-Link ramips recovery magic 2019-01-26 21:46:32 +01:00
md5.c packages: clean up the package folder 2013-06-21 16:54:37 +00:00
md5.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
mtd.c mtd: add logic for TP-Link ramips recovery magic 2019-01-26 21:46:32 +01:00
mtd.h mtd: add logic for TP-Link ramips recovery magic 2019-01-26 21:46:32 +01:00
seama.c mtd: fix endianness detection on musl 2016-10-27 01:50:42 +03:00
seama.h mtd: seama: add md5 to header struct 2016-05-09 18:53:11 +02:00
tpl_ramips_recoveryflag.c mtd: add logic for TP-Link ramips recovery magic 2019-01-26 21:46:32 +01:00
trx.c mtd: improve check for TRX header being already fixed 2018-07-15 23:27:09 +02:00
wrg.c mtd: add fixwrg command 2018-02-13 11:16:49 +01:00
wrgg.c mtd: add fixwrgg command 2016-10-27 01:50:42 +03:00
wrgg.h mtd: add fixwrgg command 2016-10-27 01:50:42 +03:00