Factory flashing fails because LEDE filename is too long (>= 64 chars)
Username: Baptiste Jonglez
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=634
On a TP-Link TL-WR841N v11, flashing LEDE from the web interface of the stock firmware is not possible.
This is caused by a stupid check that refuses filename longer than 64 chars in the web interface. The check is implemented in javascript and returns a cryptic error message like “Please select a file to upload”, as if no file was selected.
The current naming scheme is quite long:
$ echo ‘lede-17.01.0-r3205-59508e30-ar71xx-generic-tl-wr841-v11-squashfs-factory-eu.bin’ | wc -c
79
Shortening the name like the following would decrease the length below 64 chars, and leave some space for a custom suffix (e.g. using EXTRA_IMAGE_NAME in the Imagebuilder):
$ echo ‘lede-17.01.0-ar71xx-tlwr841v11-squashfs-factory-eu.bin’ | wc -c
55