Installing on Mikrotik RB951Ui-2HnD

Does anyone have any rough instructions on how to install on a Mikrotik RB951Ui-2HnD?

I have managed to get as far as getting it started on a initramfs, but can't figure out how to get it onto the flash. The instructions from openwrt don't work, because they start with an mtd erase, mount the flash and untar the files. The mounting won't work from lede (Invalid argument). Which files should I be using and what do I do with them?

Judging by the forums it appears to be possible.

Thanks

Damian

Just try first with OpenWRT, and then if successful try to upgrade to LEDE, please post the command, with verbosity if possible and the output and related previous commands if needed, just with an "Invalid argument" it is difficult to help. If you refer to "forums" post link to that forums too.

Thanks for coming back to me and sorry for the delay.

I have managed to openwrt 15.05 fully installed on the flash. From there it gets very confusing. I tried https://downloads.lede-project.org/releases/17.01.2/targets/ar71xx/mikrotik/lede-17.01.2-ar71xx-mikrotik-nand-64m-squashfs-sysupgrade.bin

However that fails because it is not supported:-
root@OpenWrt:/tmp# sysupgrade -v lede-17.01.2-ar71xx-mikrotik-nand-64m-squashfs-sysupgrade.bin
Sysupgrade is not yet supported on rb-951ui-2hnd.
Image check 'platform_check_image' failed.

So I guess at this point it has to be done manually. I am using the files from here:-
https://downloads.lede-project.org/releases/17.01.2/targets/ar71xx/mikrotik/
But I cannot find a "rootfs" file only a .squashfs file. I assume that is an image, rather than a tarfile.

# mtd erase rootfs
# mtd write lede-17.01.2-ar71xx-mikrotik-root.squashfs rootfs
# mtd erase kernel
# mkdir /tmp/kernel
# mount /dev/mtdblock1 /tmp/kernel
# cp /tmp/lede-17.01.2-ar71xx-mikrotik-vmlinux-lzma.elf /tmp/kernel/kernel
# umount /tmp/kernel
# reboot
  • at that point it goes into a boot loop. So I guess one of these files is wrong. Any ideas, I'm sure I'm just doing something stupid. :slight_smile:

Did you have any success flashing LEDE onto a Mikrotik device?

Then you were able to successfully install OpenWRT 15.05.1 on it?
Have you read: https://wiki.openwrt.org/toh/mikrotik/common
Are you now having problems to upgrade to LEDE? read on that link the sentences/paragraphs with "upgrade" word on it, it says relevant info about it.

have you chmodded the kernel? Moreover, maybe the system try to boot from ethernet rather than from nand

I have been able to install today. Here are the steps:

Base URL for all the downloads is https://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/mikrotik/

  1. Download vmlinux-initramfs.elf (lede-17.01.4-ar71xx-mikrotik-vmlinux-initramfs.elf) and use it as boot file for TFTP/BOOTP
  2. DHCP didn't give IP Address. Had to ssh using IPv6 address. Or statically assigning an IP of 192.168.1.x to my machine.
  3. scp lede-17.01.4-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin to the router.
  4. sysupgrade -n lede-17.01.4-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin
  5. Router reboots after upgrade
1 Like

I followed your instruction. But I get

root@LEDE:~# sysupgrade -n lede-17.01.4-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin 
Image metadata not found
killall: watchdog: no process killed
Command failed: Request timed out

It seems that it is a problem with ubus but as far as I have investigated couldn't find any solution because it calls
ubus call system nandupgrade {"path": "lede-17.01.4-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin
and first time this is the result of ubus list

dhcp
log
network
network.device
network.interface
network.interface.lan
network.interface.loopback
network.interface.wan
network.interface.wan6
network.wireless
service
session
system
uci

and after that I get Command failed: Not found and system is missing from the result of ubus list

dhcp
log
network
network.device
network.interface
network.interface.lan
network.interface.loopback
network.interface.wan
network.interface.wan6
network.wireless
session
uci

Do you have any suggestion about it? Can you give me any clue where I need to look

Thank you in advance

I found the source of problem:
I have copied the image file in /root. I move it to /tmp and everything worked like a charm!

Thanks! It worked for me. I found it simpler than https://wiki.openwrt.org/toh/mikrotik/common, although I've used the dnsmasq script from there.
In my case, DHCP assigned an address do my machine without problem.
I've got the same error messages that yasdan listed and got disconnected because the LAN address and password returned to default (192.168.1.1 / blank), but openWRT was stored in flash. As far as I can see, it is working very well.