User Tools

Site Tools


toh:ubiquiti:nanostationm2

Ubiquiti NanoStation M2 / Loco M2

Hardware

Hardware Highlights

CPU Wifi Antenna gain Ram Flash Network Gigabit USB Serial JTag
Atheros AR7240 Atheros AR9287 8 dBi 32MB 8MB 1 (PoE) No No Yes ?

Info

Instruction set: MIPS
Vendor: Qualcomm Atheros
Bootloader: RedBoot
System-On-Chip: Atheros AR7240 + AR9287
CPU @Frq AR7240 MIPS 24KC @400MHz
Flash size: 8 MiB
Flash Chip:
RAM size: 32 MiB
RAM Chip:
Wireless: AR9287 Atheros 802.11b/g/n
Wireless Output power: 23 dBm - 200mW
Antenna gain: 8dBi
Ethernet: 1 port connected to the CPU
USB: No
Power: passive POE (pairs 4,5+; 7,8 return) 12 to 24 VDC (POE injector included in the package)
Serial: Yes
JTAG: Yes

Flashing

Flashing via AirOS web gui

Just go to update firmware and load openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin image: Flashing via AirOS web gui

Flashing via TFTP method

First you need to put Nanostation into TFTP server mode. Turn on Nanostation and keep reset button pressed for 20 seconds, until led light start flashing differently. When you see that odd and even wifi signal leds start turning on and off, you have put Nanostation in TFTP server mode.

Now you can send image from your PC to Nanostation. You need TFTP client that will send file to Nanostation which is running TFTP server. Server is running on 192.168.1.20 address by default.

If you are running Linux on your PC here is how you can send firmware image to Nanostation:

ifconfig eth0 192.168.1.254
cp  openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin code.bin
echo -e "binary\nrexmt 1\ntimeout 60\ntrace\nput code.bin flash_update\n" | tftp 192.168.1.20

Old boards vs new boards (rumor)

It was rummored that from the beginning of 2014 Ubiquiti has released new model of Nanostaion M2 devices (rumor was that old boards use ar724x chip and that new ones are using ar934x chip). This is not true.

Only Ubiquiti Nanostation M5 firmware page have new boards and new xv firmware image, but Nanostation M2 download page only have older xm image because their hardware hasn't changed.

New devices use AirOS xw firmware, while xm is still for the older devices.

Logs

Nanostation loco M2 booting AirOS:

U-Boot 1.1.4.2-s594 (Dec  5 2012 - 15:23:07)

Board: Ubiquiti Networks XM board (rev 1.2 e0a2)
DRAM:  32 MB
Flash:  8 MB
PCIe WLAN Module found (#1).
Net:   eth0, eth1
Hit any key to stop autoboot:  0 
## Booting image at 9f050000 ...
   Image Name:   MIPS Ubiquiti Linux-2.6.32.54
   Created:      2013-05-28  14:56:15 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1047584 Bytes = 1023 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Booting...

Nanostation loco M2 booting OpenWrt:

U-Boot 1.1.4.2-s594 (Dec  5 2012 - 15:23:07)

Board: Ubiquiti Networks XM board (rev 1.2 e0a2)
DRAM:  32 MB
Flash:  8 MB
PCIe WLAN Module found (#1).
Net:   eth0, eth1
Hit any key to stop autoboot:  0 
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.36
   Created:      2014-06-10  20:26:09 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1090897 Bytes =  1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.36 (openwrt@gb-13) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41098) ) #1 Tue Jun 10 20:20:53 UTC 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7241 rev 1
[    0.000000] Clocks: CPU:390.000MHz, DDR:390.000MHz, AHB:195.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=UBNT-NM console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28588k/32768k available (2364k kernel code, 4180k reserved, 617k data, 280k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.090000] MIPS: machine is Ubiquiti Nanostation M
[    0.090000] registering PCI controller with io_map_base unset
[    0.500000] bio: create slab <bio-0> at 0
[    0.510000] PCI host bridge to bus 0000:00
[    0.510000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.520000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.520000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.530000] pci 0000:00:00.0: fixup device configuration
[    0.530000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.540000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.540000] Switching to clocksource MIPS
[    0.550000] NET: Registered protocol family 2
[    0.550000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.560000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.570000] TCP: Hash tables configured (established 512 bind 512)
[    0.570000] TCP: reno registered
[    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.580000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.590000] NET: Registered protocol family 1
[    0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.620000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.630000] msgmni has been set to 55
[    0.630000] io scheduler noop registered
[    0.640000] io scheduler deadline registered (default)
[    0.640000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.680000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.680000] console [ttyS0] enabled, bootconsole disabled
[    0.680000] console [ttyS0] enabled, bootconsole disabled
[    0.700000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.710000] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.710000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.720000] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.720000] Creating 5 MTD partitions on "spi0.0":
[    0.730000] 0x000000000000-0x000000040000 : "u-boot"
[    0.730000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.740000] 0x000000050000-0x0000007b0000 : "firmware"
[    0.760000] 2 uimage-fw partitions found on MTD device firmware
[    0.760000] 0x000000050000-0x00000015a591 : "kernel"
[    0.770000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.780000] 0x00000015a591-0x0000007b0000 : "rootfs"
[    0.790000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.800000] mtd: device 4 (rootfs) set to be root filesystem
[    0.810000] 1 squashfs-split partitions found on MTD device rootfs
[    0.810000] 0x000000320000-0x0000007b0000 : "rootfs_data"
[    0.820000] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.830000] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.840000] libphy: ag71xx_mdio: probed
[    1.400000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.410000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.960000] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    3.000000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    3.010000] TCP: cubic registered
[    3.010000] NET: Registered protocol family 17
[    3.010000] Bridge firewalling registered
[    3.020000] 8021q: 802.1Q VLAN Support v1.8
[    3.030000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    3.040000] Freeing unused kernel memory: 280K (8034a000 - 80390000)
procd: Console is alive
procd: - watchdog -
[    5.930000] usbcore: registered new interface driver usbfs
[    5.930000] usbcore: registered new interface driver hub
[    5.940000] usbcore: registered new device driver usb
[    5.950000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.960000] ehci-platform: EHCI generic platform driver
[    5.960000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.580000] eth0: link up (100Mbps/Full duplex)
jffs2 is not ready - marker found
[    9.700000] eth0: link down
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   11.280000] NET: Registered protocol family 10
[   11.300000] nf_conntrack version 0.5.0 (451 buckets, 1804 max)
[   11.320000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.330000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   11.340000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   11.350000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.410000] xt_time: kernel timezone is -0000
[   11.450000] cfg80211: Calling CRDA to update world regulatory domain
[   11.450000] cfg80211: World regulatory domain updated:
[   11.460000] cfg80211:  DFS Master region: unset
[   11.460000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.470000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.480000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.490000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.500000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.500000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.510000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   11.590000] PPP generic driver version 2.4.2
[   11.600000] NET: Registered protocol family 24
[   11.650000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.690000] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=40
[   11.700000] cfg80211: Calling CRDA for country: US
[   11.700000] cfg80211: Regulatory domain changed to country: US
[   11.710000] cfg80211:  DFS Master region: FCC
[   11.710000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.720000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   11.730000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   11.740000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   11.750000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   11.760000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   19.640000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   19.670000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   19.670000] jffs2_build_filesystem(): erasing all blocks after the end marker... [   23.590000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   23.590000] device eth0 entered promiscuous mode
[   23.620000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.690000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   26.170000] eth0: link up (100Mbps/Full duplex)
[   26.170000] br-lan: port 1(eth0) entered forwarding state
[   26.180000] br-lan: port 1(eth0) entered forwarding state
[   26.180000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.220000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   28.180000] br-lan: port 1(eth0) entered forwarding state
done.
[   51.140000] jffs2: notice: (860) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
procd: - init complete -

toh/ubiquiti/nanostationm2.txt · Last modified: 2014/07/09 09:43 by valentt