Skip to content
Contents
GuidesOpenWrt
Editorial verified

How to install or recover OpenWrt over TFTP from Windows 10 or 11

Use the Windows TFTP client when the bootloader accepts an upload. If it requests a file instead, bind Tftpd64 to the wired adapter and read the requested filename in its log.

Record the recovery port, address and image hash

  1. On the device page, find the hardware revision, recovery port, computer and bootloader IPs, image format, filename and LED pattern. If the bootloader accepts only the manufacturer's recovery package, restore that first, then follow the model's OpenWrt first-install procedure. Identify your hardware · Choose and verify firmware
  2. In a regular PowerShell window, run the two lines below. At the prompt, enter the full image path without surrounding quotes. Compare the result with the SHA-256 published for that exact file in the release. Keep this window open if you plan to upload from it.
$image = Get-Item -LiteralPath (Read-Host 'Full path to the firmware image')
Get-FileHash -LiteralPath $image.FullName -Algorithm SHA256
  1. Press Win + R and enter ncpa.cpl. Right-click the Ethernet adapter connected to the router. Open Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties. Record the current settings, then enter the computer IP and subnet mask from the device page. On an isolated direct link you can usually leave the gateway and DNS blank. Check the adapter with ipconfig. Plug into the specified router port. If Wi-Fi or a VPN uses the same subnet, disconnect it temporarily so the transfer uses Ethernet.

Use the Windows client when the router waits for an upload

The NETGEAR WNDR3700 v1 is one example. Use the destination IP, upload window and image documented for your own revision. WNDR3700 recovery instructions

  1. Open Turn Windows features on or off and select TFTP Client. Alternatively, run this command in an administrator terminal and wait for Windows to enable the feature.
dism.exe /Online /Enable-Feature /FeatureName:TFTP /All
  1. Return to the PowerShell window containing $image and run the first two lines below. If the device does not prescribe a remote name, enter the verified image's filename, including its extension. Trigger recovery as documented and run the third line when the expected LED appears. The -i switch selects binary mode. Microsoft's TFTP command reference
$routerIp = Read-Host 'Bootloader IP address'
$remoteName = Read-Host 'Filename expected by the receiver'
tftp.exe -i $routerIp PUT $image.FullName $remoteName

Run Tftpd64 when the router fetches the file

  1. Download Tftpd64 from the project site. Copy the verified image into an empty directory and rename the copy as required. Enable File name extensions in File Explorer so the result does not end in .bin.bin. For example, the Archer C7 v2 device page specifies ArcherC7v2_tp_recovery.bin. Tftpd64 project · Archer C7 device page
  2. In Tftpd64 set Current Directory to that folder and Server interfaces to the wired IP you configured. Enable only TFTP Server in the application's settings. Turn off its DHCP and other unused services. If the firewall blocks it, allow the application on this direct network only.
  3. With the server running, follow the device's button and power sequence. Look for the router's RRQ, the requested filename and the byte count. If the file cannot be found, correct its name or the directory. Before triggering another attempt, make sure the previous one did not start writing flash.

Confirm the router has booted

A completed transfer accounts for the network bytes. Leave the router powered until the documented write, reboot and LED sequence finishes. Close Tftpd64 if you used it. Restore the Ethernet settings, including automatic addressing if you used DHCP, and obtain a new address. Open LuCI at the new system's management address and check the model and OpenWrt release under Status → Overview. If you booted a RAM image, follow the device page to complete the permanent installation. Troubleshoot TFTP timeouts and logs

Explore hardware

Devices mentioned

Comments