Instructions for assembling Padavan-ng firmware without using the PROMETHEUS script
I recommend using Ubuntu 18.04.
First you'll need these packages:
sudo apt update && sudo apt install autoconf automake autopoint bison build-essential doxygen flex gawk gettext git gperf libtool pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev texinfo python-docutils help2man libncurses5-dev netcat sudo libltdl-dev time libtool-bin
Building from the console using the following commands:
1) Prepare the sources and toolchain
cd ~/
git clone --branch master --single-branch
https://gitlab.com/dm38/padavan-ng.git padavan-ng
cd padavan-ng/toolchain
./build_toolchain.sh
cd ../trunk
The configs / templates directory contains folders with manufacturers . In them you will find the model you are interested in.
2) Copy the config for your model (as an example tl_wr840n-v4.config)
cp configs/templates/tplink/tl_wr840n-v4.config .config
You don't have to use the command line here - just copy tl_wr840n-v4.config to trunk folder and rename it to .config
3) We collect the firmware
./clear_tree.sh
./build_firmware.sh
The images directory will contain the firmware in the appropriate format for the device.
Attention! For TP-Link Archer C20 V1 and C2 V1 device owners! In order not to get a complete brick (only the programmer helps), do not sew the firmware via tftp without preliminary preparation! To get the firmware for tftp, you need to take the native loader for the device (for example, in the device theme in the padavan firmware assembly instructions) and "glue" it at the beginning of the firmware file you received. In simple language ArcherC20V1_tp_recovery.bin = uboot.bin + TL_C20-V1_3.4.3.9-099.bin. The size of the uboot.bin file must be exactly 131072 bytes - I recommend going to OpenWRT website and finding a guide for your router - it's explained there.