The
lead introduction
tl-wr703n is a portable 3G router that TP launched in 2011 with a standard USB port, 802.11N 150M wireless network that can connect to 3G Internet cards, microus B power supply interface, equipped with Atheros AR7240 CPU and Atheros AR9331 chipset. Small power, less than the palm of the big, power consumption less than 0.5W.
[OpenWrt] is a Linux distribution for small, embedded devices such as routers that you can use to easily extend functionality with OPKG Package Manager. As of this article, the latest version of the code is Barrier breaker 14.07 Final version, using Linux Kernel 3.10.
First meeting
Simply brushing the OPENWRT firmware is fairly straightforward, OpenWrt provides a precompiled image for tl-wr703n. The approximate steps are as follows:
Download the corresponding model from the OPENWRT website firmware, because this time based on AR7240 CPU, so in the directory named ar71xx to find wr703n can.
The first conversion from official firmware to OPENWRT firmware requires the use of factory mirroring. Additional sysupgrade are used to upgrade from the old version of OpenWrt, and there is no need to worry.
Connect wr703n with the computer in a wired manner, and then enter the WR703N network configuration IP in the browser. After verifying the username and password, select the firmware upgrade on the left and select the OpenWrt mirror that you just downloaded to confirm the write. If the firmware is not recognized, try to shorten the firmware name, such as renaming to Openwrt.bin.
Wait patiently, about five minutes soon, it will automatically restart, at this time to greet you is OPENWRT Luci Management configuration interface.
According to the Wiki instructions, it appears that the V1.7 version of the official firmware has compatibility issues, brush into difficulties. The author of the V1.2 version is all smooth, in addition 14.07 Final version of the code already far higher than the report has the problem of Trunk, should not worry.
Mild set-up
After setting the root account password in the rendered login prompt, the name Dropbear SSH server can be used. Use any SSH client to login for configuration work
Remember the previous emphasis on the link to the wired way? Because the OpenWrt wireless network is turned off by default ...
Next, according to individual needs to set the wireless network and cable network interface function, PPPoE, DDNS and anything, if necessary can also configure the firewall what.
If you just want to wr703n continue to do a good route, this is OK.
If you want to further explore its other potential, please read on.
want more
By the way, browse the OPKG software warehouse and OpenWrt Wiki, this small device has a lot of potential for the processor. However, if you want more, first of all to solve the storage space problem, otherwise one or two additional packages will be able to fill its only 4 m of Flash. And the most direct way to expand capacity is to plug a U disk! The next thing to do is to transfer/partition to a large capacity external disk.
To find an idle USB2.0 interface for USB USB 1.1, note that too old to be recognized, format into EXT4 format, plug into the USB interface, and then perform the following steps through SSH in the terminal for the system to add external USB mass storage device support:
OPKG Update opkg install kmod-usb-storage block-mount KMOD-FS-EXT4
It can also be operated in the Software panel of Luci. The Wiki also recommends that you create an Exchange partition on your USB drive, depending on your next specific application.
Then use the mount to simply try to mount the normal, if no problem, continue. Let's say the USB drive is mounted to/mnt/sda1.
Mkdir-p/tmp/cproot
Mount--bind//tmp/cproot
Tar-c/TMP/CPROOT-CVF-. | Tar-c/mnt/sda1-x
Umount/tmp/cproot
Then use VI to edit the/etc/config/fstab file, in the following fields to modify or add:
Config mount
Option Target/
Option DEVICE/DEV/SDA1
Option Fstype EXT4
Option Options Rw,sync
Option enabled 1
Option Enabled_fsck 0
Save exit, then restart wr703n, and then use DF to see/partition capacity is not increased?
In addition to the method described here for the entire/migrated to U disk, there is a way to migrate only the/overlay partitions that contain the system, and the effect is similar, no longer repeat.
share each other
Now that you've got enough space through the expansion, there's a lot of room to toss, like the first thing you might want is Chinese support:
opkg Install Kmod-nls-utf8 Luci-i18n-chinese
The next thing you can imagine. Interestingly, for some reason, there are many people in the Chinese forum for the application of this device, it is recommended to directly from the official warehouse online installation is better.
Here, first, use Samba for LAN sharing files.
to facilitate management and configuration, you can install the Luci Samba Management module:
opkg Install Luci-app-samba
It installs the Samba version 3.6 server side depending on the dependencies. In addition to the Luci Interface added Service classification, click on the following network Share start configuration. The contents of the
General Settings are straightforward, primarily specifying the folder directory to share and the new file permissions. What is worth modifying is the contents of the Edit Template tab. The following are some of the options recommended for modification
Unix charset = utf-8 #中文支持
Security = share #方便本地访问
Wiki page used a lot of space to illustrate the configuration of firewalls, and it doesn't seem to fit Default firewall configuration for the latest version: It defaults to only allow LAN access.
Universal Download
After testing Samba for a good implementation including file sharing between mobile phones, high-definition players and computers, I figured I'd stop using it for downloading.
The OpenWrt Warehouse offers ARIA2 and Transmission-daemon two BT downloads, the latter even the Luci Configuration Interface module. But the simple comparison, aria2 memory footprint is much less (19% vs. 39%, Idle), considering only 32M of memory, select the former.
Opkg Install ARIA2
The ARIA2 is then run as a daemon by way of RPC:
/USR/BIN/ARIA2C--ENABLE-RPC--rpc-listen-all-d-D [DOWNLOAD FOLDER]
During the easy time, you can directly write this sentence/etc/rc.local automatically run after boot, you can through the terminal or Luci Startup tab operation.
ARIA2 has a lot of front-end, computer can use webui,android mobile phone can use Transdrone, configuration is very simple, needless to go on.
If you designate the download directory as the Samba shared directory above, you can realize that the entire local area network is visible for downloading content.
Performance and Testing
With the openwrt,wr703n performance to fully play, after the above configuration, while two HTTP downloads and Samba large file copy also only consumes its 50% CPU and 35% of memory, meaning that it has a lot of potential to play. All this requires only less than 0.5W of power consumption, it is environmental protection and energy saving AH.
If you also happen to have such a small device, you might as well try openwrt torture it.