Install OpenWrt on ubiquiti nanostation m2 xw signed

Download AirOS 5.6.15 signed and unsigned :

Go back to the 5.6.15 signed version on your nanostation and reset factory.

Extract the ubntbox file from the unsigned firmware with the binwalk utility and download it to the nanostation in the /tmp/fwupdate.real file :

$ binwalk -e XW.v5.6.15.30572.170328.1052.bin
$ scp _XW.v5.6.15.30572.170328.1052.bin.extracted/squashfs-root/bin/ubntbox ubnt@
(password "ubnt")

Download on nanostation the unsigned firmware in the file /tmp/fwupdate.bin :

$ scp XW.v5.6.15.30572.170328.1052.bin ubnt@
(password "ubnt")

initate firmware update :

$ ssh ubnt @
(password "ubnt")
XW.v5.6.15-sign.31612.170908.1440# cd /tmp
XW.v5.6.15-sign.31612.170908.1440# ./fwupdate.real -m fwupdate.bin

Wait for the restart of the nanostation. The unsigned firmware is installed.
Follow the instructions on this page for install openwrt :

It also works with a nanostation loco m2 xm signed but with version 6.0.3 :

It will probably work with similar devices.


Hi @tenorip, I followed your post, but when I hace to execute ./fwupdate.real -m fwupdate.bin it shows me an error.

I have a Nanostation M2 with airOS v.6.8.1, may be this version can't be downgraded, I don't know.

Can anybody help me with it? I would like to downgrade my Nanostation M2 and install OpenWRT, I need to change the MAC and I think that installing the OpenWRT is the only way to do it.

If you have airOS v6.8.1 on your NanoStation, first go back to the 5.6.15 signed version via AirOS web gui

I am on OSX, installed binwalk through homebrew, then ran the first command:
$ binwalk -e XW.v5.6.15.30572.170328.1052.bin

The scp command fails because there is nothing in the folder _XW.v5.6.15.30572.170328.1052.bin.extracted/squashfs-root/

What could I try next?

EDIT: so by reading the obvious error messages in my terminal, I realized I need a couple of CLI tools that I don't have -> unsquashfs and sasquatch.
The first I got by running this guy's script
The second I'm not able to compile on my mac.

So I guess I'll get a linux VM up tomorrow and try again.

Is there a 5.5 firmware for the M2 XW? I was able to follow your process to get 5.6 unsigned firmware on my device, but there's a big warning on the openwrt page for the m2 that says:

before make a flashing of any time check you have a lower or equal version of airOS 5.5 because 5.6 or high have changes on the u-boot and cause that you can't recover the stock firmware easily and any change that make on openwrt don't survive after reboot.

It proceeds to link to a 5.5 XM firmware, but no mention of 5.5 XW. Sounds pretty frustrating if my configurations wouldn't survive a reboot.

I went from 5.6XW to openwrt without problem.
I think the warning is only for the XM version.

1 Like

Thanks! I just tried it and it seems to be working fine for me as well.

Has anyone done this with an m5 loco xw? I was able to get the unsigned version of 5.6 running as expected, but I seem to have bricked the device during the openwrt install through the web interface - I can't reach it on the network now.