Difference between revisions of "Template:TFTP Flashing Steps"

Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
This template allows easy inclusion of TFTP flashing instructions across the wiki.
 
This template allows easy inclusion of TFTP flashing instructions across the wiki.
  
== Steps ==</noinclude>
+
== Example ==
=== Enter Factory Reset Mode ===
+
<pre>{{Template:TFTP Flashing Steps}}</pre>
# Unplug the ethernet from the antenna (This turns it off.)
+
{{Template:TFTP Flashing Steps}}
 +
 
 +
Additional parameters may be passed to customize the instructions:
 +
<pre>
 +
{{Template:TFTP Flashing Steps
 +
|factory_reset_steps=
 +
# Power off the device
 +
# Use a paper clip to hold in the reset button
 +
# Plug in the device
 +
# Continue holding the reset button until the LED flashes
 +
|firmware_link=[https://example.com/12345.bin firmware file]
 +
|firmware_filename=firmware.bin
 +
|firmware_renamed=yes
 +
|device_ip=192.168.1.20
 +
|user_ip=192.168.1.25/24
 +
}}
 +
</pre>
 +
{{Template:TFTP Flashing Steps
 +
|factory_reset_steps=
 +
# Power off the device
 
# Use a paper clip to hold in the reset button
 
# Use a paper clip to hold in the reset button
# Plug the ethernet back in to the antenna, holding the paperclip steady as you do
+
# Plug in the device
# Continue holding the paper clip until the light on the side of your UAP AC Mesh starts blinking OFF/WHITE/BLUE (should take about 30 seconds)
+
# Continue holding the reset button until the LED flashes
 +
|firmware_link=[https://example.com/12345.bin firmware file]
 +
|firmware_filename=firmware.bin
 +
|firmware_renamed=yes
 +
|device_ip=192.168.1.20
 +
|user_ip=192.168.1.25/24
 +
}}
  
=== Set Up a Static IP Address ===
+
</noinclude>
The next step is to assign your computer a static IP address of <code>192.168.1.25/24</code>
+
<includeonly>
 +
<div style="margin-left: 1.6em;">
 +
====== Enter TFTP Mode ======
 +
{{{factory_reset_steps|Follow the steps for your device to enter TFTP Mode}}}
 +
 
 +
====== Set Up a Static IP Address ======
 +
The next step is to assign your computer a static IP address {{#if: {{{user_ip|}}}|of <code>{{{user_ip}}}</code>|in the appropriate subnet for your device. See the wiki page for your device if you are unsure}}.
 
# '''Windows:''' [https://winaero.com/blog/set-static-ip-address-windows-10/ Setting a static IP address in Windows 10]
 
# '''Windows:''' [https://winaero.com/blog/set-static-ip-address-windows-10/ Setting a static IP address in Windows 10]
 
# '''Mac:''' [https://osxdaily.com/2010/12/17/set-static-ip-address-mac/ Setting a static IP address in OSX]
 
# '''Mac:''' [https://osxdaily.com/2010/12/17/set-static-ip-address-mac/ Setting a static IP address in OSX]
 
# '''Linux:''' [https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/#configuring-static-ip-address-on-ubuntu-desktop Setting a static IP address in Ubuntu 18.04 desktop]
 
# '''Linux:''' [https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/#configuring-static-ip-address-on-ubuntu-desktop Setting a static IP address in Ubuntu 18.04 desktop]
  
=== Downgrade Ubiquiti AirOS ===
+
====== Sending Firmware via TFTP ======
 +
# Download {{{firmware_link|the firmware file you wish to flash}}}{{#if: {{{firmware_renamed|}}}{{{firmware_filename|}}}|
 +
# Rename the firmware file to <code>{{{firmware_filename}}}</code>, as the device will look for this file name| }}
 +
# Launch a command prompt/terminal, and enter the following, one line at a time:
  
Because we are "jailbreaking" the Ubiquiti router, we have to downgrade to an older version of their proprietary firmware first. Using a tool called TFTP, we can do this quite simply.
+
tftp
  
# Download [https://dl.ui.com/unifi/firmware/U7PG2/3.7.58.6385/BZ.qca956x.v3.7.58.6385.170508.0957.bin version 3.7 of Ubiquiti's AirOS]
+
tftp> connect {{{device_ip|<device_ip>}}}
# Rename the firmware file to <code>firmware.bin</code>, as the device will look for this file name
+
tftp> binary
# Launch a command prompt/terminal, and enter the following, one line at a time:
+
tftp> rexmt 1
<pre>
+
tftp> timeout 60
tftp
+
tftp> put {{{firmware_filename|<firmware_filename>}}}
</pre>
+
Sent x bytes in x seconds
<pre>
+
</div>
tftp> connect {{{device_ip|<device_ip>}}}
+
</includeonly>
tftp> binary
 
tftp> rexmt 1
 
tftp> timeout 60
 
tftp> put firmware.bin
 
Sent x bytes in x seconds
 
</pre>
 

Latest revision as of 09:44, 15 September 2020

This template allows easy inclusion of TFTP flashing instructions across the wiki.

Example

{{Template:TFTP Flashing Steps}}


Enter TFTP Mode

Follow the steps for your device to enter TFTP Mode

Set Up a Static IP Address

The next step is to assign your computer a static IP address in the appropriate subnet for your device. See the wiki page for your device if you are unsure.

  1. Windows: Setting a static IP address in Windows 10
  2. Mac: Setting a static IP address in OSX
  3. Linux: Setting a static IP address in Ubuntu 18.04 desktop
Sending Firmware via TFTP
  1. Download the firmware file you wish to flash
  2. Launch a command prompt/terminal, and enter the following, one line at a time:
tftp
tftp> connect <device_ip>
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> put <firmware_filename>
Sent x bytes in x seconds


Additional parameters may be passed to customize the instructions:

{{Template:TFTP Flashing Steps
|factory_reset_steps=
# Power off the device
# Use a paper clip to hold in the reset button
# Plug in the device
# Continue holding the reset button until the LED flashes
|firmware_link=[https://example.com/12345.bin firmware file]
|firmware_filename=firmware.bin
|firmware_renamed=yes
|device_ip=192.168.1.20
|user_ip=192.168.1.25/24
}}


Enter TFTP Mode
  1. Power off the device
  2. Use a paper clip to hold in the reset button
  3. Plug in the device
  4. Continue holding the reset button until the LED flashes
Set Up a Static IP Address

The next step is to assign your computer a static IP address of 192.168.1.25/24.

  1. Windows: Setting a static IP address in Windows 10
  2. Mac: Setting a static IP address in OSX
  3. Linux: Setting a static IP address in Ubuntu 18.04 desktop
Sending Firmware via TFTP
  1. Download firmware file
  2. Rename the firmware file to firmware.bin, as the device will look for this file name
  3. Launch a command prompt/terminal, and enter the following, one line at a time:
tftp
tftp> connect 192.168.1.20
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> put firmware.bin
Sent x bytes in x seconds