-
Notifications
You must be signed in to change notification settings - Fork 327
ath79: add support for Comfast CF-EW71 v2 #3531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Is there a MAC label on the device and does it match to any interface on a regular OpenWrt release? |
Yes, it matches eth1 which would be the WAN interface |
@GoliathLabs Do I understand correctly: When you flash a regular OpenWrt 24.10 image, the Label-MAC matches WAN. |
Co-authored-by: Jan-Niklas Burfeind <[email protected]>
Co-authored-by: Jan-Niklas Burfeind <[email protected]>
My bad apparently. The WAN interface is eth1, and its MAC address (e0:e1:a9:0c:75:27) doesn't align with what’s expected based on the packaging (which corresponds to eth0 and br-lan). At least the interfaces are consistent across both OpenWrt & Gluon. I suppose I'd need to patch the primary MAC. Here's the relevant output of ip a from OpenWrt:
On Gluon, the MAC addresses are consistent with the OpenWrt config: eth0: e0:e1:a9:0c:75:26
|
I hope I got it now: @GoliathLabs Have you tried registering your device in this section? |
regarding the LED: what does |
@AiyionPrime I've patched the primary MAC.
When adding support, I've used both openwrt/openwrt#2822 and the vendors sources (fall513/openwrt@1e1e29e) as per openwrt/openwrt#14459 |
Successfully, I hope? :)
Bummer. There was a similar case a few years back, Given your options please use If you did that, please let me know if the wifi LED does than show the blinking pattern in setup-mode. |
Regarding the non blinking wifi LED I'm a bit lost, I am afraid.
Maybe you're lucky and @neocturne has an idea in the next days. |
@AiyionPrime I went and tried to verify my initial OpenWrt PR findings. Yes, the WAN and WLAN LEDs are so dim that you can't really see them. However, you can control them via GPIO. The pin layout seems different to the DTS provided by the vendor.
I initially used that file as a reference for my dts fall513/openwrt@1e1e29e#diff-9fa411a30a8c939a511db1a30ad8a9d99a93a994fea950bb75efb929667dff9c. Maybe I misinterpreted the vendor config? |
It seems like the power led can't be software controlled. Tried all GPIO pins but I can't switch the LED |
Maybe I phrased that poorly. |
I've provided a patch for the LED GPIO mapping (openwrt/openwrt#19665). I've also included your WLAN LED patch for setup mode. I'll test this out in the coming days. |
Congrats on the merge :) |
Thank you! As I haven't worked with OpenWrt patches in Gluon yet, do you know how I can incorporate the patch into my Gluon testing? This would allow us to have proper LED mapping in the tests until the PR is backported. |
Did you prepare a backport in OpenWRT already? |
Not yet :/ I suppose that would work by preparing a PR with my changes against 24.10? Or should I cherry-pick the merged commit and open a PR with that? |
sysupgrade [-n]
,firstboot
)(
lua -e 'print(require("platform_info").get_image_name())'
) --> comfast-cf-ew71-v2(https://gluon.readthedocs.io/en/latest/dev/hardware.html#hardware-support-in-packages)
Uses br-client MAC (https://map.ffmuc.net/#!/en/map/e0e1a90c7529)
factory reset must be performed before checking the primary MAC address, as
the setting from the old version is not reset otherwise.
(https://gluon.readthedocs.io/en/latest/features/configmode.html)
Doesn't blink, even with vendor firmare installed
Doesn't blink
Partically: LAN does blink
is_outdoor_device
function inpackage/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
Added board name tois_cellular_device
function inpackage/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
Added board name with modem setup functionsetup_ncm_qmi
topackage/gluon-core/luasrc/lib/gluon/upgrade/250-cellular
docs/user/supported_devices.rst