How to reset and/or reflash an inaccessible radio using just the POE and TFTP
Options
09-07-2012 05:18 PM
In another thread, my radio reset button was broken, so the team kindly helped me out by suggesting I use one of the larger Ubiquiti POEs, which come with a reset button.
The larger POEs come with that reset button, according to Chris in Ubiquiti support, so that you don't have to remove the radio from the pole to reset or reflash it.
For some reason, even after googling, partially because there are multiple methods, and partially due to non-descriptive terminology and skipped steps, I was initially confused and failed to reset my nanobridge.
In the hopes that this helps others similarly new to the process, and in order to introduce descriptive terminology used in my conversations today with Ubiquiti support, below is the simple procedure I used containing some of the more intricate details of the POE reset & TFTP procedures
As always, the detail is not for the experts who have done this already; the detail is there to help others who have never before done this and who might be similarly confused by most of the descriptions which omit key points as noted below.
-----
Read how to recover firmware using TFTP here:
wiki.ubnt.com/Firmware_Recovery#Linux_Users
Download the latest firmware from
www.ubnt.com/download#AirGrid:M2
XM-v5.5.2.build14175.bin
-----
Grab two cat5 cables & a 24v/1amp POE (with the integral reset button)
-----
My nanobridge M2 2G18 radio has six LEDs:
POWER, LAN, SS1, SS2, SS3, SS4, (where SS=signal strength)
where:
...
Power mode ... is when the power LED is lit
...
LAN mode ... is when the LAN LED is lit
...
Reset mode ... is when all four signal strength LEDs are lit solid (blinks 3 times)
...
Midway mode ... is when the middle SS2 + SS3 signal strength LEDs are lit solid (only once)
...
Runway mode ... is when SS1, then SS1 + SS2, then SS1 + SS2 + SS3, then all four light up
...
Railroad mode ... is when SS1 + SS3 (red/green) and then SS2 + SS4 (orange/green) alternate
-----
Reset procedure that worked for me:
- Plug the 24V/1-amp POE into the wall outlet
- Connect a cable from the "POE" port to the NB2G18 feed horn
- The green POWER LED should light when you connect that cable.
- Optional: Connect a cable from the POE "LAN" port to the PC eth0 port
- The green LAN LED should light (it might blink sporadically)
Note: This cable is not required for reset; but it is required for flashing via TFTP mode.
- Grab a paperclip or other suitable implement that fits the reset hole
- Hold down the POE reset button (expected time should roughly be ~15 seconds)
-
Reset mode: You will see all 4 solid SS lights (red,orange,green,green)
- This solid mode will go off and come back on a total of three times
- Note: Lifting up on the reset during solid mode will reset to factory default settings
- Note: Default settings are
https://192.168.1.20 login/passwd ubnt/ubnt
- Note: The firmware revision will remain unchanged when you reset.
- Continue to hold the POE reset button (may take ~30 seconds)
-
Midway mode will occur where the middle SS2 & SS3 (orange/green) LEDs lit solid
-
Runway mode will next occur where the LEDs light up in series, first SS1, then SS1 + SS2, then SS1 + SS2 + SS3, then all four SS1 + SS2 + SS3 + SS4 light up
-
Railroad crossing mode will next occur where SS1 + SS3 alternate with SS2 + SS4 forever
- If you haven't done so already, now is the time to plug the cable between the LAN port of the POE & the Ethernet port of the computer in order to run the TFTP reflashing procedure
-----
Notes:
- TFTP stands for trivial file transfer protocol - which is only useful to reflash the radio
- You're only in TFTP mode when & while you the radio is in railroad crossing mode
- Remember, the moment you disconnect power, you will pop OUT of TFTP mode!
- You can only flash firmware in TFTP mode; you can NOT upload setup configuration files in TFTP mode.
-----
Summary of lighting sequences:
a)
Power (P1) +
LAN (L1)
b)
Reset (SS1 + SS2 + SS3 + SS4)
c)
Midway (SS2 + SS3)
d)
Runway (3x: SS1, then SS1 + SS2, then SS1 + SS2 + SS3, then SS1 + SS2 + SS3 + SS4)
f)
Railroad crossing (SS1 + SS3 alternate with SS2 + SS4)
-----
In order to flash firmware using TFTP, you will need to connect a cat5 cable betweeen the LAN port of the POE & the PC Ethernet port.
Here are Linux commands for proceeding with the flashing while in railroad crossing mode:
$
su root
#
ifconfig eth0 192.168.1.254
#
ifconfig eth0
Should report something like:
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
#
ping 192.168.1.20
Should report something like:
PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data.
64 bytes from 192.168.1.20: icmp_seq=1 ttl=64 time=0.490 ms
64 bytes from 192.168.1.20: icmp_seq=2 ttl=64 time=0.304 ms
64 bytes from 192.168.1.20: icmp_seq=3 ttl=64 time=0.363 ms
^C (press control + c to stop the pings)
--- 192.168.1.20 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2294ms
rtt min/avg/max/mdev = 0.304/0.385/0.490/0.080 ms
Now it's time to run the tftp command:
# cd (path to the directory containing XM-v5.5.2.build14175.bin)
#
tftp 192.168.1.20
tftp>
bin
tftp>
trace
tftp>
put XM-v5.5.2.build14175.bin
When this is done, run the next command:
tftp>
quit
WARNING: Do not stop the 'put' process nor power down any of the equipment until it completes!
منبع : http://community.ubnt.com/t5/802-11abg-General-Discussion/How-to-reset-and-or-reflash-an-inaccessible-radio-using-just-the/td-p/322851