I have a notebook and will do tests before flashing. At the moment I am using an old notebook,
~# dpkg -l | grep tftp
ii tftpd 0.17-18ubuntu2 i386 Trivial file transfer protocol server
~# service tftpd status
● tftpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
~# service tftpd start
Failed to start tftpd.service: Unit tftpd.service not found.
~# ls -la /var/lib/tftpboot
ls: Zugriff auf '/var/lib/tftpboot' nicht möglich: Datei oder Verzeichnis nicht gefunden
(not found)
Well atftpd worked a little bit better out-of-the-box, but has to be configured probably and manpages have to be read.
It looks ways better now. The default configuration should be sufficient for your needs.
Next copy your image file to "/var/lib/tftpboot". Then install a TFTP client on the same machine (sudo apt-get install tftp) and try to fetch the file from your server with:
tftp localhost get ArcherC7v5_tp_recovery.bin
In case this works without problems try to access the file from a different notebook. As soon as this works as well you can try to flash your router. When it fails from a different client you need to add a firewall rule or disable the firewall temporary.
A 2nd problem is, that the C7 shows 72Mbps with my phone, while a GL-B1300 shows 86Mbps, but the C7 has better dBm-values (-5 - 10dBm difference) and at the end C7 and B1300 have very bad dBm-values (about -80dBm) with 5GHz. So I have to decide which router I use at this place and maybe I use the C7 at another place.
First it looks like, there is no firmware for Germany to download from the official TP-link webpage
That's true, but when you login at your archer c7 and look at the installed firmware version/build/release numbers you should see it's the same as provided at https://www.tp-link.com/en/download/Archer-C7_V5.html#Firmware(c7v5_us-eu-ca-jp-tw-up-ver1-0-4-P1[20180425-rel72768].bin). At least when the latest version was already preinstalled.
Can I save the original TP-Link firmware myself?
I never tried that.
A 2nd problem is, that the C7 shows 72Mbps with my phone, while a GL-B1300 shows 86Mbps, but the C7 has better dBm-values (-5 - 10dBm difference)
Did you do a speed test or is this just what your device is telling you?
at the end C7 and B1300 have very bad dBm-values (about -80dBm) with 5GHz
I can tell you only about my experience and 5GHz can't cope as good with range and walls as the 2,4GHz frequency. Even with -80dBm at 5GHz you should get more speed than with 2,4GHz.
With my old TP-Link I noted, that speed is not so important as a stable signal. So IMHO this means I should prefer dBm values.
Anyway I will go on now with my Linux-tests so I can flash with tftp. I don't have a 2nd notebook. But I hope I can do a test with a mobile phone and a ftp-client or Solid Explorer and a ftp-connection.
I do not understand this, because I get a prompt, although the IP is not valid. I thought I use a fixed IP, but actually DHCP was configured.
$ tftp 192.168.178.123
tftp> get ArcherC7v5_tp_recovery.bin
Transfer timed out.
But then with the correct IP:
~/test$ tftp 192.168.178.21
tftp> get ArcherC7v5_tp_recovery.bin
tftp> quit
The file was downloaded locally and the md5sum was correct.
So the next step is to check with a mobile phone (Androdi 8.1) and here I have a syntax problem. I tried 1 command with -g too, didn't help.
$ tftp 192.168.178.123
tftp> get ArcherC7v5_tp_recovery.bin
Transfer timed out.
But then with the correct IP:
~/test$ tftp 192.168.178.21
tftp> get ArcherC7v5_tp_recovery.bin
tftp> quit
I don't see what's wrong here. Your TFTP client will try to connect to the ip you specified as soon as you try to fetch a file.
So the next step is to check with a mobile phone (Androdi 8.1) and here I have a syntax problem. I tried 1 command with -g too, didn't help.
Did you try "tftp -gr ArcherC7v5_tp_recovery.bin 192.168.178.2" already?
Looks like my problem was a weak / far away ap. I shortened the filename for the test to test.bin to be faster with the mobile phone.
From another linux pc:
~/test$ tftp 192.168.178.21
tftp> get test.bin
Received 4028679 bytes in 19.5 seconds
From the phone:
But I am unsure if this confirms, that there is no firewall-problem. AFAIK there is no firewall enabled with Ubuntu by default and the notebook is a fresh setup, for testing only, not for productive use.
The notebook is in the same network via Wifi as all the other pcs, phones, etc.
When I flash I will change the network of the notebook and give the notebook a static IP 192.168.0.66, so again the ftp-transfer is within the local network.
I think everything works now and don't think there will be a firewall problem. You can try to flash your router now. Just try it and it should work really fine
Configure a computer with static IP 192.168.0.66/24 and a TFTP server. On Debian or Ubuntu you can use either the tftpd-hpa or tftpd server packages.
Rename the downloaded firmware file to tp_recovery.bin and place it in the tftp server's root directory. (If using tftpd-hpa this is /var/lib/tftpboot/ ; if tftpd , it is /srv/tftp/ .) You can test that the file is downloadable with tftp localhost and get tp_recovery.bin .
Connect the computer to one of the router's Ethernet ports while the router is off. Press and keep pressed the router's reset button and power it up. After about 7-10 seconds release the reset button. The power LED will flicker rapidly for ~3 seconds, indicating download of the firmware file.
The router will write the firmware to flash during ~40 more seconds of occasional power LED blinks, and then will reboot by itself, ready for use.
It recommends tftpd-hpa, which works best for me.
Please can you confirm the flashing process.
Press and keep pressed the router's reset button and power it up
I do not have a reset button, but a tiny hole, where I can put in a needle, maybe not so easy to press at the same time the power button. Can I release the power button immediately?
After about 7-10 seconds release the reset button
What happens if I press longer, for example 15 seconds? Do I need a clock?
Sorry, if my questions sound stupid. I am very respectful when flashing devices, had to much problems with phones.
I do not have a reset button, but a tiny hole, where I can put in a needle, maybe not so easy to press at the same time the power button. Can I release the power button immediately?
You will have to press the reset button with a needle and yes you immediately can release the power button.
What happens if I press longer, for example 15 seconds? Do I need a clock?
I don't think there will happen much. Just press it for about 15 seconds. Don't be afraid here, your router will start flashing the image file or just continue booting to the stock firmware.
To do something like this, I have to access the C7 with the stock-fw via ssh. I am asked for a username and a pw. I tried user admin and the router PW, but I didn't get access. Maybe ssh-access has to be allowed in the stock-fw, but I couldn't find a menu whith an ssh-option. Any ideas?
The method above works great, but only if you have SSH root access to you router. In some cases when you don't have SSH root access to router, but can connected from UART console. For example TP-Link Archer C9 HW ver 5.0 with original stock firmware
I don't see much of a benefit here. You can easily go back to stock via TFTP. Of course you can try to create images of your device partitions, but for me it is not worth the effort in this case.
I flashed the C7 in the meantime with success. Looks like, there is no ssh access for the user. People are reporting that ssh is reserved for the tether app.
Thank you for your help again!
Edit: I want to mention, that the flickering of my LEDs was very different than described.
After about 7-10 seconds release the reset button. The power LED will flicker rapidly for ~3 seconds, indicating download of the firmware file.
The router will write the firmware to flash during ~40 more seconds of occasional power LED blinks, and then will reboot by itself, ready for use.
I didn't notice the flickering for 3 seconds, I saw nothing for a "long" time, no idea, maybe 15 seconds or longer there happened nothing and then the Power LED started flickering permanently for a very long time, maybe 20 seconds or longer and then there was a constant light with the Power LED. I would say, wait for about 5 minutes before you try anything, if it worked.