You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
Makefile mtd: add logic for TP-Link ramips recovery magic 5 years ago
crc32.c packages: clean up the package folder 11 years ago
crc32.h packages: clean up the package folder 11 years ago
fis.c treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
fis.h packages: clean up the package folder 11 years ago
imagetag.c treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
jffs2.c treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
jffs2.h packages: clean up the package folder 11 years ago
linksys_bootcount.c mtd: fix building with glibc 8 years ago
linksys_bootcount_fix.c mtd: add linksys_bootcount to the ipq40xx target 5 years ago
md5.c packages: clean up the package folder 11 years ago
md5.h packages: clean up the package folder 11 years ago
mtd.c mtd: add logic for TP-Link ramips recovery magic 5 years ago
mtd.h mtd: add logic for TP-Link ramips recovery magic 5 years ago
seama.c mtd: fix endianness detection on musl 8 years ago
seama.h mtd: seama: add md5 to header struct 8 years ago
tpl_ramips_recoveryflag.c mtd: add logic for TP-Link ramips recovery magic 5 years ago
trx.c mtd: improve check for TRX header being already fixed 6 years ago
wrg.c mtd: add fixwrg command 6 years ago
wrgg.c mtd: add fixwrgg command 8 years ago
wrgg.h mtd: add fixwrgg command 8 years ago