Differences

This shows you the differences between two versions of the page.

toh:mikrotik:rb951ui [2014/02/23 02:07]
toh:mikrotik:rb951ui [2014/11/19 11:14] (current)
databeille fix untruth assertion
Line 3: Line 3:
^ CPU ^ CPU Speed ^ RAM (MB) ^ NAND (MB) ^ Serial Flash ^ Ethernet Switch ^ PoE port ^ Wireless ^ USB ^ UART ^ JTAG ^ ^ 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 | | 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 === +=== Download bootp, kernel and filesystem files=== 
-  $ mkdir /home/user/mikrotik/ +Barrier Breaker 14.07 is stable and available in repository. 
-  $ cd /home/user/mikrotik/+  $ mkdir ~/mikrotik 
 +  $ cd ~/mikrotik 
 +  $ wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf 
 +  $ wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf 
 +  $ wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz 
 +Go to "[[#run.openwrt.in.ram|Run OpenWRT in RAM]]" 
 +=== Create image (outdated, use trunk instead, for reference only)=== 
 +  $ mkdir ~/mikrotik/ 
 +  $ cd ~/mikrotik/
  $ svn co -r 39392 svn://svn.openwrt.org/openwrt/trunk/   $ svn co -r 39392 svn://svn.openwrt.org/openwrt/trunk/
-  $ cd /home/user/mikrotik/trunk+  $ cd ~/mikrotik/trunk
  $ wget -c http://patchwork.openwrt.org/patch/4773/raw/ -O OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch   $ wget -c http://patchwork.openwrt.org/patch/4773/raw/ -O OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch
  $ patch -u -p0 < OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch   $ patch -u -p0 < OpenWrt-Devel-ar71xx-Add-support-for-MikroTik-RB951Ui-2HnD.patch
Line 23: Line 31:
Target Images = tar.gz'' Target Images = tar.gz''
  $ make V=s   $ make V=s
-=== run OpenWrt in RAM === +// Prepare flashing // 
-Copy openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf to /tftp+ $ ln -s ~/mikrotik/trunk/bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf ~/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf 
-Create script: nano /tftp/loader.sh +  $ ln -s ~/mikrotik/trunk/bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf ~/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf 
-  #/bin/bash+  $ ln -s ~/mikrotik/trunk/bin/ar71xx/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz ~/mikrotik/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz 
 +=== Run OpenWrt in RAM === 
 +Create script: ~/mikrotik/loader.sh 
 +  #/bin/sh
  ifconfig eth0 192.168.1.10 up   ifconfig eth0 192.168.1.10 up
  dnsmasq -i eth0 --dhcp-range=192.168.1.100,192.168.1.200 \   dnsmasq -i eth0 --dhcp-range=192.168.1.100,192.168.1.200 \
  --dhcp-boot=openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf \   --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 +  --enable-tftp --tftp-root=~/mikrotik/ -d -u test -p0 -K --log-dhcp --bootp-dynamic
-Run script loader.sh +
-Unplug power jack +
-Hold reset button  +
-Plug power jack +
-After beep unhold reset button+
 +  - Run script loader.sh (you may need to sudo)
 +  - Unplug power jack of the router
 +  - Plug a network cable between your TFTP server and Port_1 (PoE in) of the router
 +  - Hold reset button
 +  - Plug power jack
 +  - After beep, unhold reset button
 +  - Unplug Port_1, replug to any other.
 +
 +Remember this procedure, would be helpful if you lose access to your router in the future.
=== Flash OpenWRT to Mikrotik === === Flash OpenWRT to Mikrotik ===
-ToDo +You must run OpenWRT in RAM prior to flash. 
-To flash openwrt-ar71xx-nand-vmlinux-lzma.elf you must copy OpenWrt image to /tmp/ then login into router via telnet 192.168.1.1 or Uart + 
-  root@OpenWrt:/# passwd +// Telnet to your router // 
-  root@OpenWrt:/# mtd erase /dev/mtd1 +  $ telnet 192.168.1.1 
-  root@OpenWrt:/# mtd erase /dev/mtd2 +// Mount partitions // 
-  root@OpenWrt:/# mkdir /mnt/kernel +  $ mkdir /mnt/kernel 
-  root@OpenWrt:/# mkdir /mnt/rootfs +  $ mkdir /mnt/rootfs 
- root@OpenWrt:/# mount /dev/mtdblock1 /mnt/kernel +  $ mtd erase /dev/mtd1 
-  root@OpenWrt:/# mount /dev/mtdblock2 /mnt/rootfs +  $ mtd erase /dev/mtd2 
-'' Copy kernel & rootfs to RB951Ui '' +  $ mount /dev/mtdblock1 /mnt/kernel 
-  $ scp bin/ar71xx/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf root@192.168.1.1:/tmp +  $ mount /dev/mtdblock2 /mnt/rootfs 
-  $ scp bin/ar71xx/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz root@192.168.1.1:/tmp +// Set root password for SSH and disconnect // 
-'' Flash kernel &amp; rootfs '' +  $ passwd 
- root@OpenWrt:/# mv /tmp/openwrt-ar71xx-nand-vmlinux-lzma.elf /mnt/kernel/kernel +  $ exit 
-  root@OpenWrt:/# chmod +x /mnt/kernel/kernel +// Send kernel image to the router // 
-  root@OpenWrt:/# umount /mnt/kernel +  $ scp ~/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf root@192.168.1.1:/mnt/kernel/kernel 
- root@OpenWrt:/# cd /mnt/rootfs +// Untargz rootfs to the router // 
-  root@OpenWrt:/# tar -xvzf /tmp/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz +  $ cat ~/mikrotik/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz | ssh root@192.168.1.1 'cd /mnt/rootfs ; tar xvzf -' 
-  root@OpenWrt:/# cd / + 
-  root@OpenWrt:/# umount /mnt/rootfs+Reboot and enjoy your OpenWRT device. 
 + 
 +=== Make LEDs work === 
 +// Had those lines to your /etc/config/system // 
 + 
 +&lt;code> 
 +config led 'act
 +       option trigger 'netdev' 
 +        option mode 'link tx rx' 
 +        option sysfs 'rb:green:act' 
 +        option name 'ACT' 
 +        option dev 'eth1' 
 +        option brightness '0' 
 + 
 +config led 'p1' 
 +        option trigger 'netdev' 
 +        option name 'Port_1' 
 +        option sysfs 'rb:green:port1' 
 +        option dev 'eth0' 
 +        option mode 'link tx rx' 
 + 
 +config led 'p2' 
 +        option trigger 'switch0' 
 +        option name 'Port_2' 
 +        option sysfs 'rb:green:port2' 
 +        option port_mask '0x10' 
 +        option mode 'link tx rx' 
 + 
 +config led 'p3' 
 +        option name 'Port_3' 
 +        option sysfs 'rb:green:port3' 
 +        option trigger 'switch0' 
 +        option port_mask '0x8' 
 +        option mode 'link tx rx' 
 + 
 +config led 'p4' 
 +        option name 'Port_4' 
 +        option trigger 'switch0' 
 +        option sysfs 'rb:green:port4' 
 +        option port_mask '0x4' 
 +        option mode 'link tx rx' 
 + 
 +config led 'p5' 
 +        option name 'Port_5' 
 +        option sysfs 'rb:green:port5' 
 +        option trigger 'switch0' 
 +        option port_mask '0x2' 
 +        option mode 'link tx rx' 
 + 
 +config led 'wlan' 
 +        option sysfs 'rb:green:wlan' 
 +        option name 'WLAN' 
 +        option trigger 'phy0tpt' 
 +</code> 
 + 
 +=== Disable PoE output permanently === 
 + 
 +// Run this command to disable permanently PoE on Port_5, revert by echoing 1 or deleting the file in /lib/preinit\\  
 +Port_5 red light will be turned off instantly// 
 + 
 +  $ echo "echo 0 > /sys/class/gpio/gpio2/value" > /lib/preinit/99_PoE_Port5 
 + 
 +=== Disable USB permanently === 
 + 
 +// Run this command to disable permanently USB , revert by echoing 1 or deleting the file in /lib/preinit // 
 + 
 +  $ echo "echo 0 > /sys/class/gpio/gpio20/value" > /lib/preinit/99_USB 
 + 
 +         
''About: ''About:
http://routerboard.com/RB951Ui-2HnD http://routerboard.com/RB951Ui-2HnD
-Helpfull info:+Helpful info:
http://www.lan23.ru/forum/showthread.php?t=10780 (HowTo on Russian) http://www.lan23.ru/forum/showthread.php?t=10780 (HowTo on Russian)
http://patchwork.openwrt.org/patch/3976/ http://patchwork.openwrt.org/patch/3976/
Line 67: Line 151:
http://ayufan.eu/projects/openwrt-rb951g/ http://ayufan.eu/projects/openwrt-rb951g/
http://openwrt.ayufan.eu/rb951g/ http://openwrt.ayufan.eu/rb951g/
 +RB951Ui SuperPOE : https://drive.google.com/folderview?id=0B8uP6lMFhyXcaFJUSGFhM05pN0k&usp=sharing&tid=0B8uP6lMFhyXcLWIxTWwwQ1I1U2s
'' ''

Back to top

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