User Tools

Site Tools


toh:mikrotik:rb2011

Mikrotik RouterBoard RB2011 series

Supported Versions

Status

The RB2011 series consists of different models. In the base model 5 * GigE + 5 * 100/10Mbps Ethernet ports are built in. Some models then add an SFP port. Some versions SFP port and 802.11b/g/n wireless. Newer versions of the models have a USB port and passive PoE on ethernet port 10 (models with “i” in the name).

Every model identifies itself to the OpenWrt linux kernel with a different model name (eg: 2011r5 for RB2011-UiAS-2HnD-IN). The OpenWrt kernel only boots when it recognizes the model name. As of Barrier Breaker, all versions of RB2011 series available by 05/2015 should be recognized.

See Mikrotik RouterBoard RB2011-UiAS-2HnD-IN for more information. The problems on that model should be the same for other models (unclear).

See Metarouter Virtualization on Mikrotik RouterBoard

Installation

1. Setup DHCP Server with TFTP Boot (set your PC to static IP of 192.168.1.0/24 range). Note that the initramfs file should be in the directory indicated by the command.

   sudo dnsmasq -i eth0 --dhcp-range=192.168.1.100,192.168.1.200 \
   --dhcp-boot=openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf \
   --enable-tftp --tftp-root=~/directory/where/file/is/ \
   -d -u $USER -p0 -K --log-dhcp --bootp-dynamic

2. Connect PC to ethernet port 1.

3. Power off router, and hold reset while powering on. Wait 20 seconds until you see PC send file. Release reset, and remain connected to ethernet port until you see Router report Openwrt hostname.

4. Connect PC to a different ethernet port.

5. Logon to OpenWrt netboot

6. (optional) Backup existing RouterOS kernel and rootfs.

You can directly dd to your remote computer from the router.

  • dd if=/dev/mtd5 | ssh user@host dd of=/somewhere.img
  • dd if=/dev/mtd6 | ssh user@host dd of=/somewhere2.img

(NOTE: check /proc/mtd beforehand, to see whether the rootfs and kernel are at mtd1+2 or mtd5+6). (NOTE: This may not 100% backup the device. More testing is needed.)

7. Sysupgrade Mikrotik nand-large sysupgrade.bin.

If you make a mistake, repeat netboot and try again. There is a UART on the PCB near the power cable, if the netboot works, but the sysupgrade fails for some reason.

If you see ECC errors on the UART, refer to this forum post: https://forum.openwrt.org/t/ecc-errors-in-ubi-rb2011uias-2hnd-in-and-solution/16424/15

For more details see:

Tags

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
toh/mikrotik/rb2011.txt · Last modified: 2019/08/12 04:28 by teppo