В Tue, 25 Oct 2011 14:04:18 +0200 Daniel Golle <dgo...@allnet.de> пишет:
> On 10/25/2011 01:30 PM, Alexander Gordeev wrote: > > Can you please send the log of usb_modeswitch and dmesg when the > > problem occurs? > > Probably it can be fixed easier and much more reliable in the > > usb_modeswitch code. Also other platforms will benefit from it. > Unfortunately I returned the collection of 3G-dongles to where it came from > after I got all of them working... > However, it seems to be more of a libusb problem than directly related to > usb_modeswitch. > Most of the time, I get > Response reading got error -145 > at the first time running usb_modeswitch. Occasonally, it also complained > about > Device is gone, skipping any further commands > after trying to send the message and then quits with exit(0) though the device > didn't actually perform any switching. > > When calling usb_modeswitch manually it seems to work every time, also when > hotplugging the device everything goes well. The problem only occurs when the > device is already plugged in during a cold boot (I already made sure > /proc/bus/usb is mounted before usb_modeswitch gets called). > > Depending on the 3G-dongle used, usb_modeswitch finally succeeds on the 3rd, > 4th > or 5th time being called by the hotplug script... > > Possible reasons may be: > - high system load during boot makes a USB-related race-condition go wrong > (dwc_otg on Ralink Rt3052F in my case, so that's not that unlikely) > - USB-Dongle didn't finish booting it's firmware but already offers the > storage EPs. > > However, besides usb_modeswitch there is no USB-related problem, I tried > connecting a crapy USB-hub to the single USB-port of the Rt3052, connect to > the > internet through 3G and simultanously share a pendrive with samba and all > works > well even under high load. This is very bad IMO. This workaround just hides the real problem and you are not going to fix it (cause you don't have the hardware anymore) so it's going to stay for a long time. -- Alexander _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel