Hello, I have been working on my WNDR4300 this weekend.
I have selected most usb support from kernel and nls but, I still cannot mount my usb flash drive.
The kernel log shows 2 errors
one is
[ 6.911714] ehci-platform ehci-platform: can't request region for resource [mem 0x1b000000-0x1b000fff]
[ 6.921205] ehci-platform: probe of ehci-platform failed with error -16
this is why I believe the usb drive are not working
the other error message is more strange
[ 16.238578] ath9k ar934x_wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[ 16.247196] ath9k ar934x_wmac: Falling back to user helper
and I could't figure out why and how to fix these issues.
i am also having this issue. did you find anything out? i am running wndr3700v4.
i have tried all of these builds: r6363+1, r6395+1, r6400+1, r6476+1, r6489+15, r6489+16, r6520, r6548+5
whats strange is i have a build from Mar 8 2018 02:41:18 on 6397 which works fine but the new builds of r6363 and r6395 don't seem to be working right.
[ 8.310582] ehci-platform ehci-platform: can't request region for resource [mem 0x1b000000-0x1b000fff]
[ 8.320081] ehci-platform: probe of ehci-platform failed with error -16
########
[ 14.530796] ath9k ar934x_wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[ 14.539432] ath9k ar934x_wmac: Falling back to user helper
########
[ 14.731385] ath9k 0000:00:00.0: Direct firmware load for pci_wmac0.eeprom failed with error -2
[ 14.740194] ath9k 0000:00:00.0: Falling back to user helper
it seems to work just fine with this patch on top of trunk (instead of reverting the other).
# OpenWrt SNAPSHOT r6548+2-8e1065d681
[ 0.000000] Linux version 4.9.87 (beep@boop) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6485+1-5d3fbd5996) ) #0 Sat Mar 24 17:53:15 2018
########
[ 8.304777] ehci-platform: EHCI generic platform driver
[ 8.310202] ehci-platform ehci-platform: EHCI Host Controller
[ 8.316103] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 8.326231] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 8.361446] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
preforming a dirclean then going to rebuild and i'll post results again (with your patch applied on top again, of course)
after dirclean (using your patch) it also starts correctly for me:
# OpenWrt SNAPSHOT r6549+3-287f5ebd2f
[ 0.000000] Linux version 4.9.87 (beep@boop) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6549+3-287f5ebd2f) ) #0 Sat Mar 24 18:14:20 2018
########
[ 8.307679] ehci-platform: EHCI generic platform driver
[ 8.313140] ehci-platform ehci-platform: EHCI Host Controller
[ 8.318998] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 8.329147] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 8.361453] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
that being said the Direct firmware load for soc_wmac.eeprom failed with error -2 and Direct firmware load for pci_wmac0.eeprom failed with error -2 are still present but im assuming unrelated to this issue since usb is now fine.
on lede 17.01.4 the wmac related error will disappear after setting up wireless configuration and a reboot. I am not sure about the latest snapshot build though
ok, i reverted the patch from @pepe2k and applied your patch (it didn't take automatically for some reason so i did it manually), then i merged trunk and compiled it. it also appears to work just fine. thanks
# OpenWrt SNAPSHOT r6555+6-01b835970a
Linux version 4.9.87 (beep@boop) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6549+3-287f5ebd2f) ) #0 Wed Mar 28 20:30:50 2018
#######
[ 8.305945] ehci-platform: EHCI generic platform driver
[ 8.311376] ehci-platform ehci-platform: EHCI Host Controller
[ 8.317276] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 8.327411] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 8.361765] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
the patch:
Date: Wed, 28 Mar 2018 16:17:26 -0400
Subject: [PATCH] ar71xx: fix ar934x usb controller resource conflict
Use the right size for the EHCI block
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
.../ar71xx/patches-4.9/920-usb-chipidea-AR933x-platform-support.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ar71xx/patches-4.9/920-usb-chipidea-AR933x-platform-support.patch b/target/linux/ar71xx/patches-4.9/920-usb-chipidea-AR933x-platform-support.patch
index fc6a088932..b33bf755e9 100644
--- a/target/linux/ar71xx/patches-4.9/920-usb-chipidea-AR933x-platform-support.patch
+++ b/target/linux/ar71xx/patches-4.9/920-usb-chipidea-AR933x-platform-support.patch
@@ -85,7 +85,7 @@
+ irq, &ci_pdata, sizeof(ci_pdata));
+ else
+ ath79_usb_register("ehci-platform", -1,
-+ AR933X_EHCI_BASE, AR933X_EHCI_SIZE,
++ AR934X_EHCI_BASE, AR934X_EHCI_SIZE,
+ irq, &ath79_ehci_pdata_v2,
+ sizeof(ath79_ehci_pdata_v2));
+
--
2.16.2