I'm trying to build mktplinkfw using WSL2 with an Ubuntu 20.04 LTS distribution, to install OpenWRT on my Ziggo Wifibooster device (which is TP Link Archer C7 v2 with alternative firmware).
I have tried following the instructions I could find, but I'm unable to obtains the sources in tools/firmware-utils.
This is what I've done:
sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install -y build-essential git libncurses5-dev zlib1g-dev libpam-dev liblzma-dev libsnmp-dev libssl-dev gawk flex quilt xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip subversion git clone https://git.openwrt.org/openwrt/openwrt.git cd openwrt git checkout tags/v22.03.1 -b v22.03.1-branch ./scripts/feeds update -a ./scripts/feeds install -a make defconfig make prereq cd tools/firmware-utils gcc -Os mktplinkfw.c mktplinkfw-lib.c md5.c -o mktplinkfw
which complains about missing source code files.
Running make (in an attempt to get the sources, as the Makefile hints at a git command):
cd tools/firmware-utils make
leads to the error message:
- Makefile:19: /cmake.mk: No such file or directory
make: *** No rule to make target '/cmake.mk'. Stop.*
Could you help me out?