the new Archer C25 from TP-Link has dual-radio, 775MHz Qualcomm Atheros CPU, 64MB RAM, 8MB Flash, 5* 10/100 Mbps Ethernet.
@Brother-Lal did already work on LEDE support:
https://github.com/lede-project/source/pull/1069
I made a build of gluon based on the LEDE patches:
https://github.com/jannic/gluon/tree/c25
This gives a bootable firmware, but is not ready for merging because of a few issues:
This is a purely mechanical backport of the LEDE C25 patches to LEDE 17.1, adding a bare minimum of gluon integration. Take it as a proof of concept and a starting point for further development, it's not yet finished.
The swapped LAN/WAN ports are weird, does this work on plain LEDE?
Didn't try plain LEDE, so I don't know. The C25 support of LEDE is still in development, so it's quite possible that there is still a bug.
On the other hand, the LEDE patch lists eth0 as the WAN port, which seems to be correct (I'm currently connected to the WAN port and eth0 is UP.)
But gluon assigns eth0 to the br-client bridge.
Please try my patches with a bare lede and see if you can reproduce the issues!
I had no issues in that regard, leds, wan/lan wifi should all be working, so it would be nice to have feedback if it's broken for you.
@Brother-Lal sure, I'll do if I find the time.
There are actually two versions of LEDE to test: Your tree, based on LEDE master, and the 'backport' (just fixing merge conflicts, nothing fancy) to 17.01. Perhaps I missed some patch in LEDE master which should be backported, as well.
Ok, LEDE (both 17.1 and master) properly assigns eth1 to br-lan, so it looks like it's a gluon-only issue.
The LEDs don't work with 17.1, but they do with master. Perhaps I broke something while backporting, or they just need some feature not yet available in 17.1.
Can't see the 5GHz related memory leak. Maybe gluon-specific, maybe because there is no load with pure LEDE, while gluon joins the mesh and sees quite a lot of traffic. (But only on 2.4GHz, as this device doesn't do 5GHz ibss)
In summary, it looks like of the issues I listed above, none is relevant to LEDE master.
One thing is missing in both LEDE and gluon: sysupgrade support doesn't work, yet. I had to flash firmware using the tftp recovery method of the bootloader.
Thanks! I tested factory, but not sysupgrade...
Will report back in the lede pr
The swapped LAN/WAN interfaces are fixed with this patch:
https://github.com/jannic/gluon/commit/b8de3f50ff1827dd5a78a55e5b25bf8d4039cbc3
And the memory leak seems to be gone when using the 11s firmware instead of the ibss one.
And the LEDs work with this patch:
https://github.com/jannic/gluon/commit/3d65fa9f16e13d684af2301d5f697e13ae17e8e7
(Taken from https://github.com/lede-project/source/commit/47f3690d3b8b2830d8646b87aa09be61615129ae#diff-d85399e9e12e4e705aee1f3236dd9e9c)
Got sysupgrade working, as well:
https://github.com/jannic/gluon/commit/f60b3c7a5e1520f52745075b70225caf2e1a4382
I tried my own dirty backport, and i had issues too with Memory leaks/OOM reboots.
Did the -ct firmware work for you, or the default one?
i have ath10k-ct installed, but the normal firmware. (which looks fishy on its own...)
(thinking now, i should just have used your patches ... :/)
Those OOM reboots happen with GLUON_ATH10K_MESH ?= ibss but not with GLUON_ATH10K_MESH ?= 11s (at least for me).
I hope this can be solved by using the correct firmware, but didn't have time to investigate further.
@jannic are you planning to create a PR for Archer C25 on lede-17.01 ?
edit:
@ all: please don't use github issues to discuss individual problems not really related to the topic of the issue. i cleaned up a bit.
@rotanid My goal is having support for Archer C25 on the Freifunk Aachen firmware. As Aachen is still using Gluon 2016.2.x, this is a long-term goal.
I will continue working on getting support into Gluon, and this of course means backporting the patches to LEDE 17.01, but I don't have specific plans to do a PR.
I managed to build a firware out of this with these complete commands (for beginners):
git clone https://github.com/jannic/gluon
cd gluon
git checkout c25
...create your site folder
O="GLUON_TARGET=ar71xx-generic GLUON_BRANCH=stable"
$( date '+%y%m%d%H%M')
make $O update
make $O clean
make $O DEVICES=DEVICES=tp-link-archer-c25-v1 V=s BROKEN=1 -j1 GLUON_RELEASE=2017.0.1~exp$(date '+%y%m%d%H%M')
I tried a bit with this firmware, but it didn't really seem stable, maybe I can try again tonight....
What are your experiences?
It seemed to be rather stable, with some caveats:
GLUON_ATH10K_MESH ?= 11s in site.mk fixed that issue, but as our comunity doesn't use 11s yet, this may just be because that way, the 5GHz mesh was not used at all.Can you disable the 5GHz functionality then if 11s is not supported in the site.mk?
Then the C25 would be a good low-cost alternative to the 841N.
maybe @Brother-Lal can do some longer 5ghz 11s mesh testing to check if the issue is ibss-only
Can someone with the knowledge add some more info here please?
https://wiki.openwrt.org/inbox/tp-link/tp-link_tp-link_archer_c25_v1
I think the lede wiki would be a better start.. https://lede-project.org/toh/start
And the gluon link is completely wrong in the wiki too, because the support for c25 for gluon is here, but the lede support was in this pr: https://github.com/lede-project/source/pull/1069
Anyway on topic:, i have disabled 5ghz completely , because it makes wifi unusable...
So either my backport/flashing has damaged the 5ghz wifi, or it is just not stable on my device.
Did anybody try to mesh with other 5ghz gluon nodes and then test the connection?
As soon is it had 5Ghz on, Clients would get no data (although they could connect!).
With 5g disabled everything runs smooth
Maybe some more solutions in https://github.com/freifunk-gluon/gluon/pull/1162
@rubo77 is there anything in particular in that PR that looks useful for C25 support? I didn't find anything obvious.
btw, @Brother-Lal, I can confirm that 5GHz support is unstable even with ibss disabled. So no, you probably didn't damage your device.
@jannic I created a firmware image with the branch of @RubenKelevra which seems to run instable too:
https://github.com/rubo77/gluon/tree/rubo-c25
I can connect to the 5GHz network, but I cannot transfer any data over it.
i also worked on this and also backported the latest firmware for QCA9887 to lede-17.01
here are the current results:
https://github.com/rotanid/source/tree/lede-17.01-archer-c25 (6 commits)
https://github.com/rotanid/gluon/commits/v2017.1.x-c25 (2 commits)
there still seem to be some problems, but at least we now have a clean (non-hacky) base to continue with
it would be good if others would also test the non-gluon LEDE-17.01 build to find out, if the problems already exist in LEDE or only with gluon.
@rotanid thanks for your work. Please keep in mind that the main language of this project is English to remove the language barrier for non-german speakers.
My hacky patches enables the 5 GHz capabilities and it seems to work - commecting over 802.11s, batman-adv interconnection as well as IPv6-Ping over this Batman-adv-network works.
The main issue we鈥榲e discovered is a serve memory leak which eat up nearly one MB per 2 seconds.
Didn鈥檛 had time so far to track it down, so maybe this only occours with the CT-Firmware which Lede doesn鈥檛 use per default.
@RubenKelevra maybe you can point me to patches i should add to my fork that solved problems?
i have no memory leak at least. and i didn't try the CT firmware for now as our community doesn't use IBSS anymore.
Hi @rotanid,
I am currently running https://github.com/rotanid/source/tree/lede-17.01-archer-c25 and didn't see any issues yet. The router is running for 17h now without signs of memory leaks or other instabilities.
I'm simply using the device as a freifunk client on 5GHz and provide a private WLAN on 2.4GHz for my mobile phone as a client, so both bands are used, but no heavy load.)
Good work!
I'll let it run for a few more hours, and then try gluon.
I tried Gluon with my patchset yesterday again on this device and was unable to reproduce the memoryleak. I think there鈥檚 only a small chance for the hardware to get in this state but a simple reboot does not cure it, you need to powercycle it to stabilize the hardware again.
Talking about dual-channel 802.11s mesh+ap with CT-firmware. I鈥檓 going to setup a long term stability test this week. :)
my 17.01 gluon backport branch with kmod-ath10k insted of kmod-ath10-ct is running for 2 days now without problems.
i also ran a Download for 20 hours with wget, which did a total of 120GB traffic over 5GHz 11s mesh.
no problems. maybe someone else can test my branch too, if someone else confirms i will do pull requests at LEDE and gluon.
EDIT: i updated the branch to gluon v2017.1.2 now.
I would vote for a pullrequest but with broken-flag because of primitive testing, so it maybe still got into gluon 2017.2 and the broken-flag could be removed on a minor version-bump.
Your parchset isn鈥檛 that much different to mine, just clean, I would think our results can be compared.
I hope I can reproduce my observed bug in the next days and can report which circumstances actually cause it.
@mweinelt reported a memory leak with a build based on the patches and gluon master branch.
we have to investigate this first... couldn't reproduce it yet.
also, i have updated my branches master-c25 and v2017.1.x-c25 to also work for ibss builds - though i haven't tested ibss and i won't do it as we have long moved on to 802.11s
although the router ran almost fine at home with one 5GHz 11s mesh partner, the router started rebooting all the time in an environment with multiple clients but NO 5GHz mesh partner.
someone has to dig deeper here...
and "almost" means, that sometimes opkg list results in a message saying there is not enough memory left - although there is memory left...
@rotanid did you attached a serial console to look at the Kernel-output?
no, i won't break another one open, money doesn't lay on the streets and my time is limited, too.
but @mweinelt did look at it i think and @Brother-Lal has one that is already open.
@rotanid are you talking about multiple 5 GHz clients or does the wireless band not matter?
Also I have seen opkg list giving me strange out of memory errors on the C25, too.
@TobleMiner multiple 5 GHz clients. haven't tried though disabling 5GHz AP only and leaving 5 GHz 11s mesh running
@kpanic23 reported on IRC, that he can do opkg list just fine now. ( actually, most of the discussion takes place on IRC in #gluon - way more convenient than commenting here all the time )
I can confirm that 2.4 GHz and 5 GHz works fine well (over 2.4 GHz mesh, 11s). I forwarded some gigabytes without any issues.
the pull request has been merged, the device is supported with the BROKEN marker in the master branch.
BROKEN because enabling 5GHz results in frequent reboots (possibly OOM related) in some airtime-noisy environments (e.g. in many urban areas)
Hi! Sorry for my english...
Does anyone know about the pinouts for serial access on the Archer C25?
I can't find any image on Google, I tried OpenWRT and LEDE wiki's, but it seems this router is a brand new one... :(
The first one close to the network sockets is 3.3v, the next gnd, then rx, then tx.
Hey guys. I just read the discussion here and, since the knowledge base doesn't have anything about that I thought to ask here.
1) Is the firmware usable right now? Even with some issues (e.g. "don't enable 5hz wifi")
2) If I found a major issue that doesn't let me use the wifi, is there a way to go back to the stock rom?
On 11/15/2017 18:54, Thiago Bellini wrote:
Hey guys. I just read the discussion here and, since the knowledge base doesn't have anything about that I thought to ask here.
1) Is the firmware usable right now? Even with some issues (e.g. "don't enable 5hz wifi")
exactly.. runs stable here. enabling 5GHz leads to crashes/reboots. a timely login via ssh (needs to be enabled), 'wifi down', disabling 5GHz wifi, 'reboot', stabilizes the box again.
2) If I found a major issue that doesn't let me use the wifi, is there a way to go back to the stock rom?
yes.. tftp recovery. similarily as described for the wr841
https://wiki.openwrt.org/toh/tp-link/tl-wr841nd#tftp_recovery_via_bootloader_for_v8_v9_v10_v11_v12
get a stock firmware and just rename the file to 'ArcherC25v1_recovery.bin'. works the w/ a factory lede/gluon image as well.
..ede
@edeso thanks for the explanation!
Is the 5GHz issue being worked on already? If not, is there an issue that I can use to follow-up?
Also, what do you think of everything comparing to the stock rom? I was used to custom firmwares on my last router (used ddwrt on it) and this was my first time in a while using the original firmware. One issue that I'm having is that the router will reboot itself when the connection drops. Sometimes it drops for 10 seconds, but the reboot takes more than a minute and that is very bad for gaming =P
On 16.11.2017 16:51, Thiago Bellini wrote:
@edeso https://github.com/edeso thanks for the explanation!
nP
Is the 5GHz issue being worked on already? If not, is there an issue that I can use to follow-up?
can't tell. even the lede forum linked to the freifunk ticket. they seemed to be the driving force behind the port.
didn't really look for a lede ticket wrt. to the 5GHz issue though.
Also, what do you think of everything comparing to the stock rom? I was used to custom firmwares on my last router (used ddwrt on it) and this was my first time in a while using the original firmware. One issue that I'm having is that the router will reboot itself when the connection drops. Sometimes it drops for 10 seconds, but the reboot takes more than a minute and that is very bad for gaming =P
sorry. immediately flashed the box w/ gluon when it came. so i can't tell you anything about the stock firmware ;)
..ede
@hackedbellini as the problem with 5GHz most likely is in the binary firmware, the only one who can fix this is the vendor - and they most certainly won't do that.
interestingly enough, at my place even 5GHz works with this device, but everyone else reports problems.
further questions would be better on the LEDE mailing list or Forum, as your question don't have to do anything with Gluon ;-)
further questions would be better on the LEDE mailing list or Forum, as your question don't have to do anything with Gluon ;-)
I'll do that! Thanks
any method of reproducing the alleged 5GHz-issue? (i have one on my desk and it's meshing 5GHz to an R6120 and serving AP clients )
Most helpful comment
Got sysupgrade working, as well:
https://github.com/jannic/gluon/commit/f60b3c7a5e1520f52745075b70225caf2e1a4382