Use this tool to convert a TP-Link stock firmware to an OpenWrt-compatible sysupgrade file.
This is useful in case you want to return to a stock firmware from OpenWrt.
This tool is based on the TP-Link Safeloader. You may look through the source code to find a list of compatible devices.
You can find stock firmware images at the TP-Link website, typically as .bin files.
View the source for this tool, build it yourself, and help improve it on GitHub.