Hi Alexander, Thanks for the pointer. :-) I did as you have suggested and here's the results. It's a good start and I will keep testing.
root@OpenWrt:/# rmmod dwc_otg dwc_otg dwc_otg.0: remove, state 1 usb usb1: USB disconnect, address 1 PortPower off dwc_otg dwc_otg.0: USB bus 1 deregistered dwc_otg module removed root@OpenWrt:/# insmod dwc_otg dwc_otg: version 1.05 Using DMA mode dwc_otg dwc_otg.0: DWC OTG Controller dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1 dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000 Init: Port Power? op_state=a_host Init: Power Port (0) hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected root@OpenWrt:/# ++OTG Interrupt: A-Device Timeout Change++ root@OpenWrt:/# lsusb /bin/ash: lsusb: not found root@OpenWrt:/# cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 2.06 S: Manufacturer=Linux 2.6.36.2 dwc_otg_hcd S: Product=DWC OTG Controller S: SerialNumber=dwc_otg_hcd C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1410 ProdID=2420 Rev= 0.00 S: Manufacturer=Novatel Wireless S: Product=Novatel Wireless HSDPA Modem S: SerialNumber=355380010085421 C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=100mA I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms root@OpenWrt:/# root@OpenWrt:/# Thanks. -Vincent On Fri, Feb 11, 2011 at 8:06 PM, Alexander Gordeev <lasa...@lvk.cs.msu.su>wrote: > В Fri, 11 Feb 2011 18:06:06 +0800 > HP Teoh <hpt...@ceedtec.com> пишет: > > > Hi Alexander, > > > > Thank you very much for the pointer. I downloaded "ago" version from > this > > link https://github.com/ago/openwrt. Both USB support and DWC_OTG now > show > > up in menuconfig as expected. > > "ago" is me :) > > > I was able to compile, build, load the firmware, and bring up the rt305x > > board fine. However, when I plugged in a 3G USB modem, the console > spitted > > out usb descriptor error -32 (broken pipe??). Please see red messages > > below. > > > > Any idea? > > Sorry, I forgot to tell: just reload the module. It doesn't work when > the module is loaded for the first time after reboot. I.e you have to > do like this: > > insmod dwc_otg.ko (done by autoload) > rmmod dwc_otg > insmod dwc_otg.ko > > I'm digging the problem but any help/testing is very much appreciated. > > > NET: Registered protocol family 24 > > nf_conntrack version 0.5.0 (471 buckets, 1884 max) > > dwc_otg: version 1.05 > > Using DMA mode > > dwc_otg dwc_otg.0: DWC OTG Controller > > dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1 > > dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000 > > Init: Port Power? op_state=a_host > > Init: Power Port (0) > > hub 1-0:1.0: USB hub found > > hub 1-0:1.0: 1 port detected > > ++OTG Interrupt: Debounce Done++ > > usbnet: Unknown symbol mii_ethtool_sset (err 0) > > usbnet: Unknown symbol mii_link_ok (err 0) > > usbnet: Unknown symbol mii_nway_restart (err 0) > > usbnet: Unknown symbol mii_ethtool_gset (err 0) > > usbcore: registered new interface driver usbserial > > USB Serial support registered for generic > > usb 1-1: new full speed USB device using dwc_otg and address 2 > > usb 1-1: device descriptor read/64, error -32 > > usb 1-1: device descriptor read/64, error -32 > > usb 1-1: new full speed USB device using dwc_otg and address 3 > > usb 1-1: device descriptor read/64, error -32 > > usb 1-1: device descriptor read/64, error -32 > > usb 1-1: new full speed USB device using dwc_otg and address 4 > > usb 1-1: device not accepting address 4, error -32 > > usb 1-1: new full speed USB device using dwc_otg and address 5 > > usb 1-1: device not accepting address 5, error -32 > > hub 1-0:1.0: unable to enumerate USB device on port 1 > > usbcore: registered new interface driver usbserial_generic > > usbserial: USB Serial Driver core > > hso: drivers/net/usb/hso.c: Option Wireless > > usbcore: registered new interface driver hso > > USB Serial support registered for GSM modem (1-port) > > usbcore: registered new interface driver option > > option: v0.7.2:USB Driver for GSM modems > > USB Serial support registered for Sierra USB modem > > usbcore: registered new interface driver sierra > > sierra: v.1.7.16:USB Driver for Sierra Wireless USB modems > > ramips-wdt: timeout value 60 must be 0 < timeout < 33 > > > > > > Cheers. > > -Vincent > > > > On Fri, Feb 11, 2011 at 10:04 AM, Alexander Gordeev > > <lasa...@lvk.cs.msu.su>wrote: > > > > > В Thu, 10 Feb 2011 11:18:39 +0800 > > > HP Teoh <hpt...@ceedtec.com> пишет: > > > > > > > Hi Alexander, > > > > > > > > I have applied this usb patch and the dwc_otg patches to my trunk but > I > > > > still can't get the USB option to show up in make menuconfig -> > Kernel > > > > modules -> USB Support. > > > > > > Please try to checkout openwrt tree to a new directory and try again > > > there. If it works then 'make clean' in the old clone would help > > > probably. > > > > > > > On Tue, Feb 1, 2011 at 8:08 PM, Alexander Gordeev < > lasa...@lvk.cs.msu.su > > > >wrote: > > > > > > > > > Signed-off-by: Alexander Gordeev <lasa...@lvk.cs.msu.su> > > > > > --- > > > > > target/linux/ramips/files/arch/mips/ralink/Kconfig | 3 +++ > > > > > target/linux/ramips/rt305x/config-2.6.36 | 3 --- > > > > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > > > > > > > diff --git a/target/linux/ramips/files/arch/mips/ralink/Kconfig > > > > > b/target/linux/ramips/files/arch/mips/ralink/Kconfig > > > > > index c30dbe1..cf94798 100644 > > > > > --- a/target/linux/ramips/files/arch/mips/ralink/Kconfig > > > > > +++ b/target/linux/ramips/files/arch/mips/ralink/Kconfig > > > > > @@ -47,6 +47,9 @@ config SOC_RT305X > > > > > select SYS_SUPPORTS_LITTLE_ENDIAN > > > > > select SYS_HAS_EARLY_PRINTK > > > > > select MIPS_MACHINE > > > > > + select USB_ARCH_HAS_EHCI > > > > > + select USB_ARCH_HAS_HCD > > > > > + select USB_ARCH_HAS_OHCI > > > > > > > > > > config RALINK_DEV_GPIO_BUTTONS > > > > > def_bool n > > > > > diff --git a/target/linux/ramips/rt305x/config-2.6.36 > > > > > b/target/linux/ramips/rt305x/config-2.6.36 > > > > > index 456a625..71db4b3 100644 > > > > > --- a/target/linux/ramips/rt305x/config-2.6.36 > > > > > +++ b/target/linux/ramips/rt305x/config-2.6.36 > > > > > @@ -96,8 +96,5 @@ CONFIG_SYS_SUPPORTS_ARBIT_HZ=y > > > > > CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y > > > > > # CONFIG_TINY_RCU is not set > > > > > CONFIG_TREE_RCU=y > > > > > -# CONFIG_USB_ARCH_HAS_EHCI is not set > > > > > -# CONFIG_USB_ARCH_HAS_HCD is not set > > > > > -# CONFIG_USB_ARCH_HAS_OHCI is not set > > > > > CONFIG_USB_SUPPORT=y > > > > > CONFIG_ZONE_DMA_FLAG=0 > > > > > -- > > > > > 1.7.2.3 > > > > > > -- > > > Alexander > > > > > > -- > Alexander >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel