OpenWrt Forum Archive

Topic: OpenWRT 15.05 on MikroTik / RouterBOARD on a RB2011

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey,

I've got a spare one of these... a MikroTik RB2011LS-IN...

https://web.archive.org/web/20120920094259/http://img.routerboard.com/pricelist/283_hi_res.png

In the past I've successfully loaded 15.05 on to a MikroTik RB951Ui-2HnD so I'm familiar with the general process... but for the record here is what I generally do from my Linux box...

# Get the needed files
wget http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/mikrotik/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf -O openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf
wget http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/mikrotik/openwrt-15.05-ar71xx-mikrotik-DefaultNoWifi-rootfs.tar.gz -O openwrt-ar71xx-mikrotik-rootfs.tar.gz
wget http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/mikrotik/openwrt-15.05-ar71xx-mikrotik-vmlinux-lzma.elf -O openwrt-ar71xx-mikrotik-vmlinux-lzma.elf

# Offer DHCP and TFTP over your PC's eth1 to the RouterBOARD's eth1 (in etherboot mode) and quit when the file is transferred
sudo dnsmasq -i eth1 -F192.168.1.100,192.168.1.200 -Mopenwrt-ar71xx-mikrotik-vmlinux-initramfs.elf --enable-tftp --tftp-root="$(pwd)" -d -p0 -K --log-dhcp --bootp-dynamic

# Set your PC's eth1 to 192.168.1.66, swap to the RouterBOARD's eth2 port and run these commands in seperate terminals
python -m SimpleHTTPServer
telnet 192.168.1.1

# Use the telnet session to tell the device to read the additional files and reflash
wget2nand http://192.168.1.66:8000
reboot

I can confirm that with the RB2011-LS-IN it definately does take the file via dnsmasq tftp...

dnsmasq: started, version 2.68 DNS disabled
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth
dnsmasq-dhcp: DHCP, IP range 192.168.1.100 -- 192.168.1.200, lease time 1h
dnsmasq-tftp: TFTP root is /home/stevenm/owrt-work 
dnsmasq-dhcp: 955682059 available DHCP range: 192.168.1.100 -- 192.168.1.200
dnsmasq-dhcp: 955682059 vendor class: Mips_boot
dnsmasq-dhcp: 955682059 tags: bootp, eth1
dnsmasq-dhcp: 955682059 BOOTP(eth1) 192.168.1.110 d4:ca:6d:3b:7d:9d 
dnsmasq-dhcp: 955682059 bootfile name: openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf
dnsmasq-dhcp: 955682059 next server: 192.168.1.66
dnsmasq-dhcp: 955682059 sent size:  4 option:  1 netmask  255.255.255.0
dnsmasq-dhcp: 955682059 sent size:  4 option: 28 broadcast  192.168.1.255
dnsmasq-dhcp: 955682059 sent size:  4 option:  3 router  192.168.1.66
dnsmasq-tftp: sent /home/stevenm/owrt-work/openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf to 192.168.1.110

But after waiting the obligatory 20 to 60 seconds for it to boot... I can't access it on 192.168.1.1 on eth2 or eth3/4/5.  I did also try eth6/7/8/9/10 but these don't show any link lights when you plug in... I also tried the SFP, no joy.

Perhaps it *has* booted up, but for some reason can't use the switch ports?

I found a reference below to how the gigabit switch (eth 1 to 5 afaik) doesn't work unless you patch the kernel... but I believe this is for later versions of the RB2011/951G devices that don't begin with the MAC D4:CA:6D... which mine does...
https://lists.openwrt.org/pipermail/ope … 29949.html

So I'm not sure if this problem is that or not...

Does anyone else out there have an alternative openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf file that I could try to boot over dhcp/tftp?  My code above still uses the one from 14.07 because there isn't a later one in the 15.05 download directory.

Thanks,

Steven

It's funny that you mention some of this because there is another thread

https://forum.openwrt.org/viewtopic.php?id=64742

where required files seem to not be present.

Why do you want to replace RouterOs with OpenWrt?Is there any option in OpenWrt that you can't find in RouterOs?I doubt it...The only reason why I want to load openwrt on rb133 is that I accidentally format nand,and now  I can't get back license key from Mikrotik.

The discussion might have continued from here.