Building OpenWrt for TP-Link WR840N(EU) v6.20 (Instructions) - Milan Kragujević
Building OpenWrt for TP-Link WR840N(EU) v6.20 (Instructions)

Building OpenWrt for TP-Link WR840N(EU) v6.20 (Instructions)

DISCLAIMER: These instructions are provided in good faith, but the author does not guarantee the outcome, and is not responsible for any damage to you, your device, or anything else. The instructions were tested, but your mileage may vary.

Notice: This will build the image without LuCI, which is not supported because of the low RAM and Flash on this model. For more details see: this page.

You can log in to the router from a LAN port using ssh [email protected] with no password. Set a password with passwd root.

sudo apt update
sudo apt upgrade -y
sudo apt install -y build-essential libncurses5-dev python unzip python3-distutils
git clone openwrt/
cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig

Select MediaTek Ralink MIPS as Target System, MT76x8 based boards as Subtarget and TL-WR840N v6.20 as Target Profile. Choose Save then press Enter twice. Then select Exit.

To build, run these commands (replace 4 with the number of cores/threads on your computer. )

make download -j4
make -j4

In case of problems, remove -j4 and re-run make.

The output file is in ./bin/targets/ramips/mt76x8.



Scroll to top