Go to the content
Show basket Hide basket
Go back to Blog
Full screen

Install OpenWrt on Mikrotik SXT Lite 5

Gennaio 17, 2015 9:06 , by Bráulio Bhavamitra - 0no comments yet | No one following this article yet.
Viewed 5612 times

Proprietary stuff, what a bad choice! RouterOS has many features and SXT has pretty powerful hardware, but with level 3 licence you can't even work as a AP! Shame on you Mikrotik!

Start by installing some tools on your machine to setup a TFTP and DHCP server:

sudo apt-get install isc-dhcp-server atftpd wireshark

Write to /etc/default/atftpd

OPTIONS="--bind-address --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr --mcast-ttl 1 --maxthread 100 --verbose=5 /srv/tftp"

And to /etc/dhcp/dhcpd.conf 

allow booting;
allow bootp;
one-lease-per-client true;

## any host
subnet netmask {
  filename "openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf";
  range dynamic-bootp;

## host specific
#subnet netmask {
#  option routers;
#  option subnet-mask;
#  option broadcast-address;
#  ignore client-updates;
#group {
#  host routerboard {
#    hardware ethernet 4C:5E:0C:7B:6D:98;
#    next-server;
#    fixed-address;
#    filename "openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf";
#  }


cd /srv/tftp; sudo wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf
sudo chmod -R 777 /srv
sudo service network-manager stop
sudo ifconfig eth0
sudo service atftpd restart
sudo service isc-dhcp-server restart

The manual is at http://i.mt.lv/routerboard/files/SXTug.pdf. There you have a Button Index where you can see that if you hold the Reset button for more than 20 seconds (10 seconds after blinking stops) then Etherboot will be triggered.

Do this while watching Wireshark and /var/log/syslog

If things has gone correctly, you should be able to access the Luci web interface at

Now you'll need a local webserver for wget2nand to download the kernel and the rootfs:

sudo apt-get install apache2
cd /var/www/html && sudo wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-lzma.elf
cd /var/www/html && sudo wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz
cd /var/www/html && sudo ln -sf openwrt-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz openwrt-ar71xx-mikrotik-rootfs.tar.gz

Now flash!


If you want to flash multiple devices, setup one with the packages (I've installed rsync ppp-mod-pptp luci-app-qos) and configuration you want and package a new rootfs (replace IP of the template device):

mkdir -p rootfs/{dev,proc,sys}
rsync -avP --exclude 'dev' --exclude 'proc' --exclude 'sys' [email protected]:/ rootfs tar -C rootfs -zcvf openwrt-ar71xx-mikrotik-rootfs.tar.gz .

Inspired by http://www.ericconrad.com/2012/05/installing-openwrt-on-routerboard-750gl.html and https://blog.poettner.de/2011/05/27/openwrt-trunk-on-mikrotik-routerboard-411750 

0no comments yet

    Post a comment

    The fields are mandatory.

    If you are a registered user, you can login and be automatically recognized.