Support for tp-link ec220-g5

Ooo yes, thanks for the information.

Hi, I got this errors:
(dunno what to do)

ux-6.6.44/scripts/dtc/include-prefixes -undef -D__DTS__  -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re210-v1.dtb.tmp ../dts/mt7620a_tplink_re210-v1.dts
../dts/mt7620a_tplink_archer-c5-v4.dts:5:10: fatal error: mt7620a_tplink_archer.dtsi: No such file or directory
    5 | #include "mt7620a_tplink_archer.dtsi"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c20-v1.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c20-v1.dtb.tmp
mipsel-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp  -I/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/arch/mips/boot/dts -I/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/arch/mips/boot/dts/include -I/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/include/ -I/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/include-prefixes -undef -D__DTS__  -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_trendnet_tew-810dr.dtb.tmp ../dts/mt7620a_trendnet_tew-810dr.dts
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c2-v1.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c2-v1.dtb.tmp
make[5]: *** [Makefile:234: /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c5-v4.dtb] Error 1
make[5]: *** Waiting for unfinished jobs....
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620n_snr_cpe-w4n-mt.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c20i.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c50-v1.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c50-v1.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-mr200.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-mr200.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c20-v1.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_ec220-g5-v2.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_ec220-g5-v2.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c2-v1.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-c50-v1.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re200-v1.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re200-v1.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re210-v1.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re210-v1.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_archer-mr200.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_ec220-g5-v2.dtb.tmp
/home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.6.44/scripts/dtc/dtc -O dtb -i../dts/ -Wno-interrupt_provider -Wno-unique_unit_address -Wno-unit_address_vs_reg -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg    -o /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_trendnet_tew-810dr.dtb /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_trendnet_tew-810dr.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re200-v1.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_tplink_re210-v1.dtb.tmp
rm -f /home/daniil/Downloads/openwrt-main/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/image-mt7620a_trendnet_tew-810dr.dtb.tmp
make[5]: Leaving directory '/home/daniil/Downloads/openwrt-main/target/linux/ramips/image'
make[4]: *** [Makefile:22: install] Error 2
make[4]: Leaving directory '/home/daniil/Downloads/openwrt-main/target/linux/ramips'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/daniil/Downloads/openwrt-main/target/linux'
time: target/linux/install#22.37#9.03#20.70
    ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/install] Error 1
make[2]: Leaving directory '/home/daniil/Downloads/openwrt-main'
make[1]: *** [target/Makefile:26: /home/daniil/Downloads/openwrt-main/staging_dir/target-mipsel_24kc_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/daniil/Downloads/openwrt-main'
make: *** [/home/daniil/Downloads/openwrt-main/include/toplevel.mk:248: world] Error 2

Kind of self explanatory?

yes, ik
I have downloaded the latest version and found this file
I don't even understand how should i change files for ec220 for building, all links with possible buildings by @mietekn are broken

can u send tp_recovery file for tfpd?

Okay, i understood. I have downloaded the latest version from github and found ec220 in menuconfig, testing

This router has been in the official repository for some time: https://github.com/openwrt/openwrt/
Download images directly from: https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7620&id=tplink_ec220-g5-v2

1 Like

can u change ports for rtl8367c in test image?
I dont have building files and dont understand what did u do for rtl8367c on archer topic

upd: rtl8367d* not rtl8367c

git commit with install info https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c08f8a4a4913d80ed3fb261dadc711e94b8428dd

can i build test images for rtl8367d from "main-rtl8367cd" branch? And change ports and leds myself like u did for ec220?

Branch main-rtl8367cd is incomplete and doesn't work yet

where can I find building files for working test version?

The experimental flash image for this family can be downloaded here: https://disk.yandex.ru/d/HrT5PMczO8PPBw 5 but it is for Archer c5 v4. Modified files are included.

I mean I need building essentials to compile myself (i have to change wan port)

Openwrt support for rtl8367s-vb has just been confirmed. New snapshots will now support both versions of the chip.

Link: https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7620&id=tplink_ec220-g5-v2

@ricardovitor @zench1k @SweetWeakness Please check if the WLAN LEDs are showing correctly, I think they are swapped between 2.4 and 5 GHz.

Please attach also system log.

the device is in a different location, I will be able to watch it only on the weekend or next weekend.

1 Like

In https://github.com/namiltd/openwrt/tree/openwrt-23.05-rtl8367cd I created a version based on 23.05.4 for routers TP-Link EC220-G5 v2, TP-Link Archer C5 v4 and Mercusys AC12G v1 (8M). You can test it.

I've tested your version on my EC220-G5 v2. It worked normally. Wireless, LEDs, lan ports, Wan port. Is there any specific test I should perform?
Here are the logs system.log (logread) kernel.log (dmesg)

Thank you very much, that's all I needed.
In my tests this version is much more stable than snapshot.

1 Like