OpenWrt is an alternative software for routers. In 2021 the OpenWrt team released the 21.02 version. In this short article you will find some useful information how to build the OpenWrt image for TP-LINK TD-W8970v1 router with modified SPI flash.
The building process is the same as in my previous article about modifying TP-LINK TD-W8970v1 which is located here. Due to changes in the new OpenWrt software you need the new patch for the source code to allow building OpenWrt for TD-W8970v1 with 16M flash mod.
The patch was tested with OpenWrt 21.02.1.
- Clone the OpenWrt repository to your local destination
git clone https://github.com/openwrt/openwrt.git
or update your local copy of the OpenWrt repository with
- Enter the cloned OpenWrt directory and switch to desired branch, e.g.
git checkout v21.02.1
- Apply the patch.
git apply /path/to/21.02.patch
- Prepare the sources for building
./scripts/feeds update -a ./scripts/feeds install -a
- Generate config for building
Select lantiq as target system and TP-LINK TD-W8970-16M as target profile.
- Run make to build the firmware.
In the steps above you can build the OpenWrt image for TP-LINK TD-W8970v1 with flash mod. Do not install the OpenWrt image for TD-W8970v1-16M into original TD-W8970v1!
Update 13.03.2022: the patches and the latest prepared OpenWrt firmware for TD-W8970v1-16M is available here