On Mon, 23 May 2016 15:54:36 +0200 Martin Pieuchot <[email protected]> wrote:
> On 23/05/16(Mon) 15:37, Gerhard Roth wrote:
> > I have this stuff around quite a while now, but since patrick@ asked
> > me repeatedly, I think it is time to share this now.
> > 
> > This is a patch that adds support for the "Mobile Broadband Interface
> > Model" (MBIM) from http://www.usb.org/. It allows to attach UMTS/LTE
> > USB devices as a network interface.
> 
> That's great!
> 
> > I'm not asking for OKs at this time, but hope that some people will
> > give it test. I tested with two different Sierra Wireless modules
> > (EM8805, MC8305) and each one behaved a little bit different.
> > 
> > In order to configure the network interface, this is what you do:
> > 
> >     # ifconfig mbim0 pin 1234 apn internet.t-mobile
> 
> I'd like to bikeshed early, we're trying to prefix all new USB driver
> name with 'u'.  So I'd suggest a rename when this goes in tree.

Of course no problem. Will fix that with the next version of the patch.


> 
> >     # ifconfig mbim0 inet 0.0.0.1 0.0.0.2
> >     # route delete default
> >     # route add -ifp mbim0 default 0.0.0.2
> >     # ifconfig mbim0 up
> >
> > The mbim interface is a point-to-point type interface and will
> > update the default route, once it is registered in the network.
> 
> Can't you insert the route later instead of updating it?

Have to try. I fact this part of the code is more or less copied from
sppp_update_gw() in if_spppsubr.c


> 
> > [...] uhub.c may be needed: some modules appear at the usb bus just
> > to detach themselves again and then reappear shortly after.
> 
> Do you know why?  On which controller?

Oh, I don't think this is a problem of the controller. It's the device
itself that just detaches and re-attaches again. Guess the firmware has
a bug. Here's an example:

usbd_fill_iface_data: bad max packet size
usbd_fill_iface_data: bad max packet size
ugen2 at uhub4 port 2 "Sierra Wireless, Incorporated EM8805" rev 2.00/0.00 addr 
3
ugen2: setting configuration index 0 failed
ugen2 detached
mbim1 at uhub4 port 2 "Sierra Wireless, Incorporated EM8805" rev 2.00/0.06 addr 
3


Gerhard

Reply via email to