- Check out the OpenWrt source tree, branch openwrt-19.07 (153392e20);
- Apply this patchset;
- Choose your platform in the configuration system:
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_mikrotik=y
CONFIG_TARGET_ar71xx_mikrotik_DEVICE_rb-nor-flash-16M=y
- Optionally enable the PoE control package:
CONFIG_PACKAGE_mtpoe_ctrl=y
- Run
maketo build target images. - Set up a BOOTP/TFTP server, serving your openwrt-ar71xx-mikrotik-rb-nor-flash-16M-initramfs-kernel.bin image.
- Connect the router to your server via ether1, hold the user/reset button and connect the power plug. Wait until the USER/ACT led starts blinking, then it should stop blinking. Then you can release the button. In a few seconds you should hear a beep from the bootloader.
- In about a minute the OpenWrt would boot. In the meanwhile, replug your cable to any of ether2..ether5 ports.
- SSH as root to 192.168.1.1
- Transfer the sysupgrade image (openwrt-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin) to your router and
run
sysupgrade openwrt-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin.