User Tools

Site Tools


toh:mikrotik:rb2011uias

Mikrotik RouterBoard RB2011-UiAS-2HnD-IN

The RB2011-UiAS-2HnD-IN differs from its predecessor RB2011-UAS-2HnD-IN supposedly only by supporting Mikrotik passive PoE on ETH10, but it is also identified to the OpenWrt linux kernel as a new model (2011r5 instead of 2011G) which is why it is not recognized by older OpenWrt kernels that do recognize the RB2011-UAS-2HnD-IN. The -IN refers to the indoor enclosure. The routerboard is also available without enclosure as RB2011-UiAS-2HnD.

Supported Versions

Status

05/2015: Barrier Breaker & Trunk can boot this device, but the built-in 5 * GigE switch does not connect correctly to the CPU. Compiling the OpenWrt kernel with a patch is required (see below). Fixed in https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e457d22261b2dbf5f75f5c73e6930bcecb8e8772

05/2015: The SFP port (not populated) periodically claims to go down/up/down. Uncommenting the SFP lines in /etc/config/network avoids this. Fixed in https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e457d22261b2dbf5f75f5c73e6930bcecb8e8772

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
RB2011UiAS-2HnD-INAtheros AR9344600128NAND128Atheros AR9344b/g/n-55-1x 2.0

Installation

How to remove RouterOS and install OpenWrt

1. What you need ?

→ (Source) Second OpenWrt router with Extroot for image files, http://downloads.openwrt.org/releases/17.01.4/targets/ar71xx/mikrotik/

→ (Target) MikroTik RouterBoard RB2011-UiAS-2HnD-IN router

2. Images

You must check version of your MikroTik device.

For 64M version you have to install lede-XX.XX.X-ar71xx-mikrotik-nand-64m-squashfs-sysupgrade.bin

For more than 64MB version you have to install lede-XX.XX.X-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin

Where XX.XX.X is the latest release version number.

lede-XX.XX.X-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf file you need to upload to the source device, this file is used to run in MikroTik memory.

3. How the installation proceeds (elucidation)

LEDE installation takes place in two stages - first we write LEDE to the device's memory, then install image to the target device NAND.

We need to configure the tftp server on the source device, giving the path to the image file that will be sent to the target device memory.

Connecting target device (eth1) to the source device (any switch port) image will be sent to the target device's memory.

Sound signal informs about the completed procedure of transferring the image to the target device memory.

Now it is possible to log into the target device via ssh (user root, no password)

If everything went well, you can now start the installation to the NAND memory of the target device.

You need to setup basic HTTP web server on your laptop or PC.

4. Step by step installation

Edit source device configuration /etc/config/dhcp adding

option enable_tftp'1' option tftp_root '/tftpboot' option dhcp_boot 'filename.elf'

at the end of this file add

config 'host' option 'name' 'mikrotik' option 'ip' '192.168.1.230' option 'mac' '54:8d:8c:15:df:00'

where 'mac' is your target device mac address.

Save changes and wget lede-XX.XX.X-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf into /tftpboot folder.

Reboot your source device.

Power on your target device with reset button pushed until Ether Boot message appears.

Ether boot mode try to download image from your network device.

Connect target device (eth1) to the source device (any switch port) image will be sent to the target device's memory.

One short signal from your target device informs about the completed procedure.

On your source device syslog should contain:

  Mon Jan  8 19:15:09 2018 daemon.info dnsmasq-dhcp[1073]: BOOTP(br-lan) 192.168.1.230 54:8d:8c:15:df:00 
  Mon Jan  8 19:15:11 2018 daemon.info dnsmasq-tftp[1073]: sent /tftpboot/lede-17.01.4-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf to 192.168.1.230
  Mon Jan  8 19:15:25 2018 daemon.info odhcpd[787]: Using a RA lifetime of 0 seconds on br-lan

On your Laptop or PC manualy configure static IP 192.168.1.120 with 255.255.255.0 subnet and 192.168.1.1 gate

Disconnect cable from source device. Connect your laptop or PC to the ETH10 port on your target device (from this point target device can not be reset, OpenWrt is running in memory).

SSH into target device (user root, no password)

You should now see OpenWrt command line. Next step is to download image file *.bin to the /tmp directory of your target device.

  # cd /tmp
  # wget http://192.168.1.120/image.bin
  # sysupgrade -n /tmp/lede-XX.XX.X-ar71xx-mikrotik-nand-XX-squashfs-sysupgrade.bin
  

Where 192.168.1.120 is your Laptop or PC basic web server. Yep, you need to download *.bin image to the root folder of your web server.

The sysupgrade command flash your nand target device and reboot your MikroTik router automatically.

Hardware

Info

Architecture: MIPS
Vendor: MikroTik
Bootloader: RouterBOOT
System-On-Chip: AR9344 SoC
CPU Speed: 600 Mhz - can be overclocked from boot monitor
Flash size: 128 MiB NAND Flash
RAM: 128 MiB DDR2
Wireless: AR9380 802.11b/g/n dual chain (on SoC)
Ethernet: AR8327 - 5x 10/100/1000MBit/s BASE-T* + 1x SFP (separate chip)
AR8227 - 5x 10/100MBit/s BASE-T (on SoC)
USB: 1x 2.0 micro (host/device, OTG cable included)
Serial: CISCO/Lantronix pinout RJ45 console port.
JTAG: no?
other 2“ color touch display

vendor supplied hardware diagram

Tracking reported experience with suggested patch for the 5 GigE Ports

user platform Unpatched (0x06000000) 0x3e000000 0x6f000000 Notes
davey RB951G-2HnD NOK OK not tested Original patch for mach-rb95x.c
baptiste RB951G-2HnD NOK NOK not tested AR9344 rev 3. Using 0x3e000000 works, but the router crashes every ~10 days.
chris RB2011UiAS-2HnD NOK OK OK AR9344 rev 2. Davey's patch on mach-rb2011.c. WiFi only tested with unpatched
matt 2011UiAS-2HnD NOK NOK OK
soren RB2011UiAS-RM OK OK OK AR9344 rev 2. No WiFi on this model
toerless RB2011UiAS-2HnD NOK NOK OK AR9344 rev 3. WiFi works with all options
jbergstroem RB2011UiAS-2HnD NOK NOK OK AR9344 rev 3
ventYl RB951G-2HnD not tested NOK OK Using 0x3e000000 works but reboot crashes each ~10 days or loses ethernet connectivity
mycoe RB2011UiAS-2HnD not tested NOK OK AR9344 rev 3. 74kc

Register layout AR9344 - Atheros Datasheet AR8327 - Atheros Datasheet

31 TX_INVERT - Decides whether to select the inversion of the GTX clock after the delay line
30 GIGE_QUAD - Decides whether to allow a 2 ns shift (clock in the middle of a data transfer) to the GTX clock. This bit is only effective when bit 25 is set
29:28 RX_DELAY - The delay buffers in the Rx clock path to adjust against the edge/middle- aligned RGMII inputs
27:26 TX_DELAY - Delay line for the GTX clock that goes along with the data
25 GIGE - Set only after a 1000 Mbps connection has been negotiated
24 OFFSET_PHASE - Used to select if the start is from the positive or negative phase (or whether to have a 180 degree change in addition to the phase-delay in [11:8].
0x6f: 30 29    27 26 25 24
0x3e:    29 28 27 26 25

Metarouter

Tags

toh/mikrotik/rb2011uias.txt · Last modified: 2018/04/29 09:43 by tmomas