Support for new Archer c5 v4

Hello Jewele9187.
I was able to flash ACT routers with serial connections. Detailed instructions are available at https://openwrt.org/toh/tp-link/archer_c5_v4 for your convenience.

Good luck.

I successfully flashed the image provided by dkpost3, then upgraded to the latest he also provided using a serial connection with a raspberry pi. Curious now what to do with all of the extra packages that are provided with the zip they shared. Could someone point me in the right directions? Thanks.

1 Like

Hi,

Which version is your "latest"?

I am running below, which I would like to upgrade to latest also.

OpenWrt 22.03-SNAPSHOT r19446-f393581f66 / LuCI openwrt-22.03 branch git-22.167.28394-8a4486a

!!NEW!!!
OpenWrt 22.03.0-Release

r19685-512e76967f

base-files - 1491-r0+19776-f579b8538b
busybox - 1.35.0-3
ca-bundle - 20211016-1
cgi-io - 2022-08-10-901b0f04-21
dnsmasq - 2.86-14
dropbear - 2022.82-2
firewall4 - 2022-09-01-f5fcdcf2-1
fstools - 2022-06-02-93369be0-2
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2021-08-03-205defb5-2
hostapd-common - 2022-01-16-cff80b4f-13.1
iw - 5.16-1
iwinfo - 2022-08-19-0dad3e66-1
jansson4 - 2.13.1-2
jshn - 2022-05-15-d2223ef9-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.10.146-1-d5654b0719f1d8f52ed959940987335d
kmod-cfg80211 - 5.10.146+5.15.58-1-1
kmod-crypto-aead - 5.10.146-1
kmod-crypto-ccm - 5.10.146-1
kmod-crypto-cmac - 5.10.146-1
kmod-crypto-crc32c - 5.10.146-1
kmod-crypto-ctr - 5.10.146-1
kmod-crypto-gcm - 5.10.146-1
kmod-crypto-gf128 - 5.10.146-1
kmod-crypto-ghash - 5.10.146-1
kmod-crypto-hash - 5.10.146-1
kmod-crypto-hmac - 5.10.146-1
kmod-crypto-manager - 5.10.146-1
kmod-crypto-null - 5.10.146-1
kmod-crypto-rng - 5.10.146-1
kmod-crypto-seqiv - 5.10.146-1
kmod-crypto-sha256 - 5.10.146-1
kmod-gpio-button-hotplug - 5.10.146-3
kmod-leds-gpio - 5.10.146-1
kmod-lib-crc-ccitt - 5.10.146-1
kmod-lib-crc32c - 5.10.146-1
kmod-libphy - 5.10.146-1
kmod-mac80211 - 5.10.146+5.15.58-1-1
kmod-mt76-core - 5.10.146+2022-09-06-d7054646-4
kmod-mt76x02-common - 5.10.146+2022-09-06-d7054646-4
kmod-mt76x2 - 5.10.146+2022-09-06-d7054646-4
kmod-mt76x2-common - 5.10.146+2022-09-06-d7054646-4
kmod-nf-conntrack - 5.10.146-1
kmod-nf-conntrack6 - 5.10.146-1
kmod-nf-flow - 5.10.146-1
kmod-nf-log - 5.10.146-1
kmod-nf-log6 - 5.10.146-1
kmod-nf-nat - 5.10.146-1
kmod-nf-reject - 5.10.146-1
kmod-nf-reject6 - 5.10.146-1
kmod-nfnetlink - 5.10.146-1
kmod-nft-core - 5.10.146-1
kmod-nft-fib - 5.10.146-1
kmod-nft-nat - 5.10.146-1
kmod-nft-offload - 5.10.146-1
kmod-nls-base - 5.10.146-1
kmod-ppp - 5.10.146-1
kmod-pppoe - 5.10.146-1
kmod-pppox - 5.10.146-1
kmod-rt2800-lib - 5.10.146+5.15.58-1-1
kmod-rt2800-mmio - 5.10.146+5.15.58-1-1
kmod-rt2800-soc - 5.10.146+5.15.58-1-1
kmod-rt2x00-lib - 5.10.146+5.15.58-1-1
kmod-rt2x00-mmio - 5.10.146+5.15.58-1-1
kmod-slhc - 5.10.146-1
kmod-swconfig - 5.10.146-1
kmod-switch-rtl8366-smi - 5.10.146-1
kmod-switch-rtl8367b - 5.10.146-1
kmod-usb-core - 5.10.146-1
kmod-usb-ehci - 5.10.146-1
kmod-usb-ledtrig-usbport - 5.10.146-1
kmod-usb-ohci - 5.10.146-1
kmod-usb2 - 5.10.146-1
libblobmsg-json20220515 - 2022-05-15-d2223ef9-1
libc - 1.2.3-4
libgcc1 - 11.2.0-4
libiwinfo-data - 2022-08-19-0dad3e66-1
libiwinfo-lua - 2022-08-19-0dad3e66-1
libiwinfo20210430 - 2022-08-19-0dad3e66-1
libjson-c5 - 0.15-2
libjson-script20220515 - 2022-05-15-d2223ef9-1
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2022-07-08-6e68a106-1
liblucihttp0 - 2022-07-08-6e68a106-1
libmnl0 - 1.0.5-1
libnftnl11 - 1.2.1-1
libnl-tiny1 - 2021-11-21-8e0555fb-1
libpthread - 1.2.3-4
libubox20220515 - 2022-05-15-d2223ef9-1
libubus-lua - 2022-06-01-2bebf93c-1
libubus20220601 - 2022-06-01-2bebf93c-1
libuci20130104 - 2021-10-22-f84f49f0-6
libuclient20201210 - 2021-05-14-6a6011df-1
libucode20220812 - 2022-08-29-344fa9e6-1
libustream-wolfssl20201210 - 2022-01-16-868fd881-2
libwolfssl5.5.1.ee39414e - 5.5.1-stable-3
logd - 2021-08-03-205defb5-2
lua - 5.1.5-10
luci - git-20.074.84698-ead5e81
luci-app-firewall - git-22.089.67563-7e3c1b4
luci-app-opkg - git-22.273.29004-9f6876b
luci-base - git-22.245.77528-487e58a
luci-i18n-base-ru - git-22.277.72128-c0224f7
luci-i18n-firewall-ru - git-22.277.72128-c0224f7
luci-i18n-opkg-ru - git-22.277.72128-c0224f7
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-22.097.61921-7513345
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.244.54818-b13d8c7
luci-mod-status - git-22.189.48501-6731190
luci-mod-system - git-22.264.46172-b6b7da4
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ppp - git-21.158.38888-88b9d84
luci-theme-bootstrap - git-22.141.59265-d8ecf48
mtd - 26
netifd - 2022-08-25-76d2d41b-1
nftables-json - 1.0.2-2.1
odhcp6c - 2022-08-05-7d21e8d8-18
odhcpd-ipv6only - 2022-03-22-860ca900-1
openwrt-keyring - 2022-03-25-62471e69-3
opkg - 2022-02-24-d038e5b6-1
ppp - 2.4.9.git-2021-01-04-3
ppp-mod-pppoe - 2.4.9.git-2021-01-04-3
procd - 2022-06-01-7a009685-1
procd-seccomp - 2022-06-01-7a009685-1
procd-ujail - 2022-06-01-7a009685-1
rpcd - 2022-08-24-82904bd4-1
rpcd-mod-file - 2022-08-24-82904bd4-1
rpcd-mod-iwinfo - 2022-08-24-82904bd4-1
rpcd-mod-luci - 20210614
rpcd-mod-rrdns - 20170710
swconfig - 12
ubox - 2021-08-03-205defb5-2
ubus - 2022-06-01-2bebf93c-1
ubusd - 2022-06-01-2bebf93c-1
uci - 2021-10-22-f84f49f0-6
uclient-fetch - 2021-05-14-6a6011df-1
ucode - 2022-08-29-344fa9e6-1
ucode-mod-fs - 2022-08-29-344fa9e6-1
ucode-mod-ubus - 2022-08-29-344fa9e6-1
ucode-mod-uci - 2022-08-29-344fa9e6-1
uhttpd - 2022-08-12-e3395cd9-1
uhttpd-mod-ubus - 2022-08-12-e3395cd9-1
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2022.08.12-1
wpad-basic-wolfssl - 2022-01-16-cff80b4f-13.1

1 Like

Update2:
After a few hours, both Wifi stopped. Need to disable Wireless-N again.

Update:
Tested with Wireless-N with iPhone 13 w/ iOS 16. Now I got 61Mbps. Previously igot 2 or 3 Mbps. Wireless-AC got 113Mbps - which is on par with before.

===

Thank you very much for sharing your build.

I downloaded and flashed the sysupgrade.bin without issues.

Now running:



    
Status
System
Hostname	tp-white
Model	TP-Link Archer C5 v4
Architecture	MediaTek MT7620A ver:2 eco:6
Target Platform	ramips/mt7620
Firmware Version	OpenWrt 22.03-SNAPSHOT r0+19776-f579b8538b / LuCI openwrt-22.03 branch git-22.245.77528-487e58a
Kernel Version	5.10.146
Local Time	2022-10-08 01:59:57
Uptime	0h 3m 15s
Load Average	0.61, 0.56, 0.24
1 Like

plz send logs

1 Like

Hey, which repo are you building from? Wanted to try building a version without wifi packages for myself. Do you have a repo? Thanks.

NEW BUILD

:slight_smile:

OS:I used Ubuntu20.04 under a WSL2 environment.

Install prerequisites

sudo apt update 
sudo apt install -y build-essential ccache ecj fastjar \
file g++ gawk gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools python3-dev rsync subversion \
swig time xsltproc zlib1g-dev
sudo apt -y install subversion mercurial
sudo apt -y install asciidoc bash binutils bzip2 flex git-core g++ gcc \
util-linux  gawk help2man intltool libelf-dev zlib1g-dev make \
libncurses5-dev libssl-dev patch perl-modules python2-dev python3-dev \
unzip wget gettext xsltproc zlib1g-dev
sudo apt -y install libboost-dev libxml-parser-perl libusb-dev bin86 bcc \
sharutils gcc-multilib openjdk-8-jdk

!!!WSL2 only!!!

$PATH config

sudo tee -a /etc/wsl.conf << EOF > /dev/null
[interop]
appendWindowsPath = false
EOF
exit

Open PowerShell

wsl --shutdown

Download sources

cd ~/
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull
git branch -a
git tag
git checkout v22.03.1

Update the feeds

./scripts/feeds update -a
./scripts/feeds install -a

Realtek patch that will add the Archer c5v4

wget https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/4327.patch
git apply 4327.patch

Configure and build image

make defconfig
make menuconfig #set Target System: MediaTek Ralink MIPS
                #set Subtarget: MT7620
                #set Target Profile: TP-Link Archer C5 v4
                #set Luci => 1.Collections => Luci 
                #set SAVE=>.config =>ok and EXIT
make  -j $(nproc) download 
make  -j $(nproc) V=s
1 Like

Thanks! I will give this a try tomorrow. Is it necessary to update distfeeds.conf after using a snapshot build?

1 Like

Please point me on how to prepare logs for posting.

I will re-enable Wireless-N and try to capture the relevant logs if the issues happens again.

Thank you very much!

Try these patch:

This is already in openwrt master. C5v4 uses the MT7620 eLNA, which is enabled by this patch.

2 Likes

Thank you for the suggestion.

I updated the new build v22.03.1 from @dkpost3 posted above. Enabled both Wireless-N and Wireless-AC, after running for more than 10 hours, both Wifi are still working.

Will keep it running and observe.

1 Like

I have been reading the wiki and see some recommendations on downloading the config.buildinfo, or config.seed to retain future compatibility. (Links to this). Step 4.

I am new to this so forgive my ignorance, but after cloning the repo then checking out v22.03.1, is this considered a snapshot or a release? Is this the buildinfo I would use? Thanks.

Sorry that I am new to git and patching source codes.

My level is barely enough to finish simple instructions, like

How can I download your suggested patch?

I do not see a "Luci" section in make menuconfig based on your instructions.

1 Like

This is what I got.
image

Hi sampson,
this may answer your question :
https://forum.archive.openwrt.org/viewtopic.php?id=64076

It looks like your scenario :slight_smile:

1 Like

Thank you very much for the pointer.

I re-run with the instruction with an empty directory. And I can confirm Luci section is here in make menuconfig.

Further, after running with the 2 feed commands at my original directory, Luci section do appears.

(I thought I have run those two commands already, but it must be my memory not working.)

Please anyone can give us an compiled build to install?