On Mon, 2011-04-04 at 16:22 -0400, Daniel Dickinson wrote: > On Mon, 04 Apr 2011 15:03:23 +0200 > "D.S. Ljungmark" <[email protected]> wrote: > > > Hi, > > I'm having some issues with usb-modeswitch + Huawei modems which are > > somewhat perplexing. > > > > Running OpenWRT ( Backfire from svn ) and hooking the modem up all > > works. Modeswitch happens, magic works, all three modem devices > > appear. > > > > Soft-rebooting the machine (so that the USB port is never without > > power) works, modem comes back online afterwards. > > > > However, cold-booting the machine makes the hot/cold-plug events never > > happen, (or maybe it's racing against other kernel modules?) and I end > > up with an unusable 3g-modem. Re-seating the hardware makes the > > hotplug event happen properly. > > > > Now, I want to actually solve this, not just magically patch around it > > in /etc/rc.local by calling the proper usb_modeswitch invocation. > > > > So, where do I go from here, how do I get the usb-coldplug to actually > > function properly in OpenWRT? > > Do you happen to be using block-extroot? If so the USB drivers are > probably being loaded during preinit, and at present we don't coldplug > during regular init. The fix is somewhat involved and it'd going to be > some time before we have a solution.
Moving this thread to -devel then. And yes, I'm using block-extroot. Since I'm the one going to be maintaining this in the future, I really do not want to add ugly hacks to this. So if you can point me into the somewhat correct direction of how you _want_ this to be fixed I'll spend a few hours to see if I can sort it out properly. Otherwise, I'll just do an ad-hoc solution of parsing the USB-bus and doing the necessary magic in post-boot environment. Unfortunately, it's the kind of hack that I know will come back and hurt me later on. sidenote: Currently the ext-blockroot solution feels very racy, and the init scripts sometimes end up in a fun state due to being started before overlays are in place and not. ( what is it, S93 and forwards that are "safe" to use? Not much ) Regards, Spid _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
