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
ath79: add support for TP-Link WDR3500 v1 #2298
Conversation
I need some help with the WAN/LAN LEDs here. Data from ar71xx:
Current implementation:
|
The register offset for pinctrl-single,bits needs to be 4-byte aligned, so '0x13' is invalid and it won't work. You need to split that into two entries. |
So, I could do it this way? (Ignoring names for now)
? |
er... (0x12%4)!=0 so 0x12 won't work either. You need 0x10 and 0x14 instead. |
Ah, sorry, was tricked into decimal numbers... |
Okay, narrowed it down to
|
@kofec If you have time to test, please do so with the current state of this PR (I can also provide images if required). |
Hi, |
Well, have a nice holiday then. I think there is plenty of time for this PR ... |
Update:
|
update test results with the branches state from about 10 hours ago:
@adrianschmutzler what do i need to do or put which kmods/packages into my own build to be able to test 5GHz and USB? |
@rotanid Thanks for testing. |
i'm not sure if i need to include specific packages in my build, or should the default .config for the device work? USB: when i insert a USB testing device, it gets power at least. When i insert a USB Flashdrive, nothing appears in "dmesg" about any USB activity and the LED also doesn't light up. 5GHz wifi: no sign of it in LUCI or /etc/config/wireless - maybe the following lines from the dmesg output help?
|
@rotanid |
Normally, all necessary packages should be included automatically by DEVICE_PACKAGES etc. |
5 GHz Wifi works now. |
@blocktrron @981213 I tried
and
? |
@rotanid Can you provide a full dmesg? |
@rotanid Maybe you should install kmod-usb-storage ? |
hm, just looked at it seems, "DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport" is ignored?
already have that. result: |
On mine wdr3600 so it looks like the modules are missing:
|
@rotanid First set of images: Those are with the supposedly wrong hub setup. I included 3600 and 4300, so do not wonder about the size ... |
https://www.adrianschmutzler.net/upload/wdr3500-0820-nohub.zip That's the version as discussed with 981213. |
Will also test again on my 4300 tonight or tomorrow. |
with this, the LED does not work, but when connecting a usb flash drive it still says in dmesg "new high-speed USB device [...]"
with this the LED works and when connecting a usb flash drive it says in dmesg "new high-speed USB device [...]" can you update this PR/branch to this one? |
@rotanid Updated. |
probably, although i still don't know what i'm doing wrong.
without this ^ the packages are not there in the wdr3500 sysupgrade image |
@rotanid Both packages are not even present in my config.seed. |
@blocktrron @981213 |
@rotanid
Note that I always used "CONFIG_TARGET_PER_DEVICE_ROOTFS=y", which actually should have an influence on how packages are selected. |
thanks, working now! |
Hi, |
IMO, this is ready for merge. |
I've updated this PR and taken the chance to remove kmod-usb-core treewide, so no more copy/paste additions :-) |
Don't know where this comes from, but could you remove the executable flag from |
Done. |
Hardware: SoC: AR9344 CPU: 560 MHz Flash: 8 MiB RAM: 128 MiB WiFi: Atheros AR9340 2.4GHz 802.11bgn Atheros AR9300 5GHz 802.11an Ethernet: AR934X built-in switch, WAN on separate physical interface USB: 1x 2.0 Flash instruction (WebUI): Download *-factory.bin image and upload it via the firmwary upgrade function of the stock firmware WebUI. Flash instruction (TFTP): 1. Set PC to fixed ip address 192.168.0.66 2. Download *-factory.bin image and rename it to wdr3500v1_tp_recovery.bin 3. Start a tftp server with the image file in its root directory 4. Turn off the router 5. Press and hold Reset button 6. Turn on router with the reset button pressed and wait ~15 seconds 7. Release the reset button and after a short time the firmware should be transferred from the tftp server 8. Wait ~30 second to complete recovery. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Removed the double newline, but I do not think it's worth cherry-picking only for that again. |
Merged to my staging tree - will push to master later: https://git.openwrt.org/?p=openwrt/staging/blocktrron.git;a=commit;h=b221659277ab1c5de3f877fdf401b5af4eb4ecea |
Is it worth to backport this to 19.07 ? As this will not be release ? |
Well, normally device support is not backported to stable branches. In 19.07, wdr3500 is supported in ar71xx. |
Patch 1/2 is just a copy of #2284 as it's needed as dependency here.Device testing complete for WDR3500.
Working:
(Outdated) forum discussion (in German):
https://forum.freifunk.net/t/ath79-support-for-tp-link-wdr3500/20961/8