Since 18.06, OpenWrt no longer provide image for tl-wr703n because of default 4m flash is not enough.
If you want to use latest OpenWrt on your modified tl-wr703n.
You have to build it on your own.
Download my precompiled OpenWrt image for tl-wr703n from here:
Prepare to Build
Update: If you want to build the latest version 19.07.2. Just replace the version number in my tutorial.
Make sure all dependencies are installed.
Clone source code and install feeds
git clone https://github.com/openwrt/openwrt.git cd openwrt git checkout v19.07.0 ./scripts/feeds update -a ./scripts/feeds install -a
This will build the latest Snapshot. If you want stable release.
git checkout [TAG].
Make sure there’s no dependency error.
Make sure there’s enougth RAM or Swap.
Add tl-wr703n-v1 defination
After I took some look at the source code.
Add the tl-wr703n-v1 define above tl-wr710n-v1. Note the TPLINK_HWID is different with tl-wr710n.
If you have modified flash. For me it’s 16m.
define Device/tl-wr703n-v1 $(Device/tplink-16mlzma) DEVICE_TITLE := TP-LINK TL-WR703N v1 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 BOARDNAME := TL-WR703N DEVICE_PROFILE := TLWR703 TPLINK_HWID := 0x07030101 CONSOLE := ttyATH0,115200 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US endef TARGET_DEVICES += tl-wr703n-v1
Use this config.seed (modify link if you are building for stable release)
wget https://downloads.openwrt.org/releases/19.07.0/targets/ar71xx/generic/config.buildinfo -O config.buildinfo rm -rf .config* mv config.buildinfo .config
Add the following two lines to .config
You should see TP-LINK TLWR703N v1 appeared in Target Devices.
make defconfig make menuconfig
Start to Build
This will take minutes to hours.
nohup time make -j4 V=s &
-j [jobs], --jobs[=jobs] Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
Log file is
View real time log via
tail -f nohup.out
If you see error like this.
WARNING: Makefile 'package/feeds/luci/luci-proto-modemmanager/Makefile' has a dependency on 'modemmanager', which does not exist WARNING: Makefile 'package/feeds/packages/meson/Makefile' has a dependency on 'python3-pkg-resources', which does not exist
Try do this.
./scripts/feeds uninstall meson luci-proto-modemmanager
And don’t forget to apply.
Clean the build.
If still failing, try -j1 to see real error.
make -j1 V=s
In my case, openvswitch-2.11.0 was failed to build.
./scripts/feeds uninstall openvswitch
Upload image to router (OpenWrt) and upgrade.
I have some tips for you. Shell script for upgrade all packages, DNS-over-TLS, etc.