if you want to isntall LEDE on TP Link-WR940N v4 you can do this by the tp link updater.
Download the right version (eu, us, or nothing). Now rename the image to something short (lede.bin)?!
Now you can flash. I had some trouble with flashing lede but now everything works.