User Tools

Site Tools


MikroTik RouterBOARD 951Ui-2HnD


CPU CPU Speed RAM (MB) NAND (MB) Serial Flash Ethernet Switch PoE port Wireless USB UART JTAG
AR9334 600 MHz 128 (2x W9751G6KB-25) 128 (1x TC58DVG02D5TA00-ND) MX25L512E AR7240 (10M/100M) 1-in 5-out (500mA) AR9344-DC3A 1x 2.0 1x onboard 1x onboard

Create image

$ mkdir /home/user/mikrotik/
$ cd /home/user/mikrotik/
$ svn co -r 39392 svn://
$ cd /home/user/mikrotik/trunk
$ wget -c -O OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch
$ patch -u -p0 < OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch

Configure image for booting from RAM

$ make menuconfig
$ make kernel_menuconfig

Target = AR7XXX Subtarget = Mikrotik device with NAND flash Target Images = ramdisk

$ make V=s

Configure image for booting from NAND

$ make menuconfig

Target = AR7XXX Subtarget = Mikrotik device with NAND flash Target Images = tar.gz

$ make V=s

run OpenWrt in RAM

Copy openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf to /tftp/ Create script: nano /tftp/

ifconfig eth0 up
dnsmasq -i eth0 --dhcp-range=, \
--dhcp-boot=openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf \
--enable-tftp --tftp-root=/home/user/mikrotik/trunk/bin/ar71xx/ -d -u test -p0 -K --log-dhcp --bootp-dynamic

Run script Unplug power jack Hold reset button Plug power jack After beep unhold reset button

Flash OpenWRT to Mikrotik

ToDo To flash openwrt-ar71xx-nand-vmlinux-lzma.elf you must copy OpenWrt image to /tmp/ then login into router via telnet or Uart

root@OpenWrt:/# passwd
root@OpenWrt:/# mtd erase /dev/mtd1
root@OpenWrt:/# mtd erase /dev/mtd2
root@OpenWrt:/# mkdir /mnt/kernel
root@OpenWrt:/# mkdir /mnt/rootfs
root@OpenWrt:/# mount /dev/mtdblock1 /mnt/kernel
root@OpenWrt:/# mount /dev/mtdblock2 /mnt/rootfs

Copy kernel & rootfs to RB951Ui

$ scp bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf root@
$ scp bin/ar71xx/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz root@

Flash kernel & rootfs

root@OpenWrt:/# mv /tmp/openwrt-ar71xx-nand-vmlinux-lzma.elf /mnt/kernel/kernel
root@OpenWrt:/# chmod +x /mnt/kernel/kernel
root@OpenWrt:/# umount /mnt/kernel
root@OpenWrt:/# cd /mnt/rootfs
root@OpenWrt:/# tar -xvzf /tmp/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz
root@OpenWrt:/# cd /
root@OpenWrt:/# umount /mnt/rootfs

About: Helpfull info: (HowTo on Russian)

toh/mikrotik/rb951ui.txt · Last modified: 2014/02/23 02:07 (external edit)