OpenWrtImageBuilder

OpenWRT ImageBuilder

TL-MR10U

Fetch ImageBuilder

wget https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2
 
tar -xvjf OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2
cd OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64

Configure packages

Find config file for tp-link

find . -type f -name tp-link.mk

Add packages

find your router:

define Profile/TLMR10U
        NAME:=TP-LINK TL-MR10U
        PACKAGES:=kmod-usb-core kmod-usb2
endef

Compilation

make image PROFILE=TLMR10U

check that compilation has succeeded

ls bin/ar71xx/*sysupgrade*

Use apache to easier file transfer

I have an Apache document root in: /var/www/html

If my computer has an IP 192.168.0.11, I can access from router with OpenWrt easily with wget.

Now we need to copy our bin file:

cp bin/ar71xx/openwrt-ar71xx-generic-tl-mr10u-v1-squashfs-sysupgrade.bin /var/www/html/sysupgrade.bin

I can now see sysupgrade.bin via http://192.168.0.11

Get and install firmware from OpenWrt router

cd /tmp && wget http://192.168.0.11/sysupgrade.bin
sysupgrade -v sysupgrade.bin