Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:installation:recovery_methods:avm_recovery_tool [2020/12/10 12:13] – Add detail of magic UDP packet exchange kipperdocs:guide-user:installation:recovery_methods:avm_recovery_tool [2024/07/27 12:43] – [Router by Zen (UK)] cm
Line 3: Line 3:
 Many AVM devices can be unbricked by a AVM recovery tool which is specific to your device. Many AVM devices can be unbricked by a AVM recovery tool which is specific to your device.
  
-**Example:** For Fritz!Box 7530 [[http://ftp.avm.de/fritzbox/fritzbox-7530/other/recover/]]+**Example:** For Fritz!Box 7530 [[https://download.avm.de/fritzbox/fritzbox-7530/other/recover/]]
  
 Search the corresponding recovery tool for your specific device on the AVM FTP server. Search the corresponding recovery tool for your specific device on the AVM FTP server.
Line 17: Line 17:
  
   - Set your PCs IP to 192.168.178.x/24 (where x is not 1) and the default gateway to 192.168.178.1.   - Set your PCs IP to 192.168.178.x/24 (where x is not 1) and the default gateway to 192.168.178.1.
-  - It has been reported that some models require a magic UDP packet exchange before the FTP connection is accepted by the router 
-    - [[https://forum.openwrt.org/t/fritzbox-4040-flash-ftp-connection-refused/42543/4]] 
-    - This can also be required for some Fritz!Box 7530 routers 
   - Turn off your router, ensure your PC is connected to LAN1 via Ethernet, and turn the router back on.   - Turn off your router, ensure your PC is connected to LAN1 via Ethernet, and turn the router back on.
   - Wait for the interface to become active (usually indicated by LEDs on your PC's Ethernet port) and connect to the bootloader's FTP server, e.g. ''ftp -n 192.168.178.1''   - Wait for the interface to become active (usually indicated by LEDs on your PC's Ethernet port) and connect to the bootloader's FTP server, e.g. ''ftp -n 192.168.178.1''
-  - Then issue the following set of commands:\\ <code>+  - If connecting to the bootloader's FTP server fails with 'connection refused': It has been reported that some models require a magic UDP packet exchange before the FTP connection is accepted by the router. This can also be required for some Fritz!Box 7530 routers. There are two possibilities to enable the connection: 
 +      - Refer to the scripts in this thread: [[https://forum.openwrt.org/t/fritzbox-4040-flash-ftp-connection-refused/42543/4]]. 
 +      - Run tha AVM recovery tool until the prompt appears that warns 'The device contains basic settings adapted for your Internet Service Provider'. At this point, leave the prompt open and the tool running, and the FTP connection should be possible.  
 +  - Once connected to the FTP server, issue the following set of commands:\\ <code>
     quote USER adam2     quote USER adam2
     quote PASS adam2     quote PASS adam2
Line 29: Line 29:
     quit     quit
 </code> Not sure if it's necessary to change the firmware_version variable. </code> Not sure if it's necessary to change the firmware_version variable.
-  - Run the recovery tool, but make sure you **do not reset the device**, otherwise the environment variables will go back to their default values. Even if the recovery tool asks you to power cycle the device, **do not do it**.+  - Run the recovery tool (or re-start it, if it was already running to enable connecting to the FTP server), but make sure you **do not reset the device**, otherwise the environment variables will go back to their default values. Even if the recovery tool asks you to power cycle the device, **do not do it**. 
 + 
 +===== Experiences ===== 
 +==== Router by Zen (UK) ==== 
 +The following steps worked for FRITZ!Box 7530 from Zen. 
 + 
 +  - Set PC IP address to 192.168.178.x/24 gateway 192.168.178.1 
 +  - In "Device Manager > Network Adapters > Ethernet Adapter > Advanced > Speed & Duplex" select "10 Mbit/s, half-duplex" 
 +  - Start AVM recovery tool and follow instructions to get to "settings adapted for your ISP" dialog. Keep the dialog on. 
 +  - Login via FTP like shown above and do ```UNSETENV provider``` but skip ```SETENV firmware_version avm``` 
 +  - In the AVM recovery tool, now close the dialog and exit the tool cleanly. 
 +  - Run the AVM recovery tool again, but do not power cycle the Fritz!Box in between. 
 +  - See the tool deleting the flash area, restoring the flash, then say "... recovered successfully!" 
 + 
 +Afterwards, remember to clear the settings on your ethernet port. 
 + 
 +=== Notes === 
 +The bootloader's FTP is not immediately available. As per above instructions, I ran the AVM tool first until it reached the 'The device contains basic settings adapted ...' state and left it like that. Then FTP was available. 
 + 
 +Instructions by [[https://en.avm.de/service/knowledge-base/dok/FRITZ-Box-7590/160_Restoring-the-FRITZ-OS-of-your-FRITZ-Box/|AVM themselves]] say that one error can be prevented by using only 10 Mbit/s half-duplex mode on the ethernet port. This supposedly avoids the "Could not determine the version!". I also skipped the `quote SETENV firmware_version avm` command. One of these two alternations to the procedure helped me get past the "Could not determine the version!" error. 
 + 
  • Last modified: 2024/08/07 15:27
  • by cm