TP-Link MR3420 setup OpenWRT

OpenWrt is a powerful Linux distribution for embedded devices. Main target is various router boards, but also other small devices like GuruPlug, ALIX Boards, OLPC.

List of all supported hardware: http://wiki.openwrt.org/toh/start

Using this distribution require little Linux skills and lot of time…
All documentation and howto: http://wiki.openwrt.org/doc/start

Check system prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence

Next quick setup and build instruction for MR3420 router with 3g/UMTS USB Dongle for WAN connection.

Get source (Chaos Calmer 15.05):

~ $> git clone git://git.openwrt.org/15.05/openwrt.git openwrt

Update source:

~ $> cd openwrt
~/openwrt $> git pull

Update all feeds:

~/openwrt $> ./scripts/feeds update -a

Install useful feeds:

~/openwrt $> ./scripts/feeds install luci luci-proto-3g

Configure buildsystem:

~/openwrt $> make menuconfig

Select router:

menuconfig

Select block-mount:

Base system --->  <*> block-mount
Kernel modules --->  USB Support --->  <*> kmod-usb-storage
Kernel modules --->  Filesystems --->  <*> kmod-fs-ext4

Select Luci web interface:

LuCI --->  
1. Collections --->  <*> luci

Select Dongle kernel support:

Kernel modules ---> USB Support ---> <*> kmod-usb-serial
Kernel modules ---> USB Support ---> <*> kmod-usb-serial-option
LuCI ---> 6. Protocols ---> <*> luci-proto-3g
Utilities ---> <*> usb-modeswitch

Build:

make -j4

Finally, we can find all in “bin/ar71xx/”

~/openwrt $> ls -hgG bin/ar71xx/
totale 23M
-rw-r--r-- 1  827 apr 17 16:59 md5sums
-rw-r--r-- 1 2,7M apr 17 16:59 openwrt-ar71xx-generic-root.squashfs
-rw-r--r-- 1 2,6M apr 17 16:59 openwrt-ar71xx-generic-root.squashfs-64k
-rw-r--r-- 1 3,8M apr 17 16:59 openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin
-rw-r--r-- 1 3,4M apr 17 16:59 openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-sysupgrade.bin
-rw-r--r-- 1 1,3M apr 17 16:59 openwrt-ar71xx-generic-uImage-gzip.bin
-rw-r--r-- 1 903K apr 17 16:59 openwrt-ar71xx-generic-uImage-lzma.bin
-rwxr-xr-x 1 2,7M apr 17 16:59 openwrt-ar71xx-generic-vmlinux.bin
-rwxr-xr-x 1 2,8M apr 17 16:59 openwrt-ar71xx-generic-vmlinux.elf
-rw-r--r-- 1 1,3M apr 17 16:59 openwrt-ar71xx-generic-vmlinux.gz
-rw-r--r-- 1 960K apr 17 16:59 openwrt-ar71xx-generic-vmlinux.lzma
-rwxr-xr-x 1 973K apr 17 16:59 openwrt-ar71xx-generic-vmlinux-lzma.elf
drwxr-xr-x 2  16K apr 17 16:58 packages

Reference:
Working with Feeds: http://wiki.openwrt.org/doc/devel/feeds
Multiple targets in one single checkout: http://wiki.openwrt.org/doc/devel/env
Detailed build instructions: http://wiki.openwrt.org/doc/howto/build
Easy patch management: http://wiki.openwrt.org/doc/devel/patches
Creating packages: http://wiki.openwrt.org/doc/devel/packages
First Login: http://wiki.openwrt.org/doc/howto/firstlogin
Configuration files: http://wiki.openwrt.org/doc/uci

This entry was posted in OpenWRT. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>