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
sudo apt update sudo apt upgrade -y sudo apt install -y build-essential libncurses5-dev python unzip python3-distutils git clone https://github.com/milankragujevic/openwrt-wr840n-v620 openwrt/ cd openwrt ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig
MediaTek Ralink MIPS as
MT76x8 based boards as
TL-WR840N v6.20 as
Target Profile. Choose
Save then press Enter twice. Then select
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
The output file is in