Re: [patch] Huawei E1750 support

2011-07-21 Thread Chris Turner

On 07/20/11 13:52, David Coppa wrote:


Please, can you provide us a dmesg with your patch applied?
Is the device working with ppp?


Doh -

My bad on sending to bugs@ rather than misc@ - looks like I missed your
commit of this diff by like 1h - please see my mail of 2011-07-20


Subject: umsm(4) patch for Huawei E181


basically same thing - add the usbdev entry for the gizmo and it sends the magic
device stuff to switch from driver disk to serial port - figguring you need
to see the same thing r.e. dmesg  ppp confirmation -

umsm0 at uhub0 port 2 configuration 1 interface 0 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 2 configuration 1 interface 1 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 2 configuration 1 interface 2 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 2 configuration 1 interface 3 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
umsm4 at uhub0 port 2 configuration 1 interface 4 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
umsm5 at uhub0 port 2 configuration 1 interface 5 HUAWEI Technology HUAWEI Mobi
le rev 2.00/0.00 addr 2
ucom3 at umsm5

this one is a DEV_HUAWEI type gizmo (full patch on the bugs@ list)

ditto ppp working on /dev/{tty,cua}U0



Re: [patch] Huawei E1750 support

2011-07-20 Thread David Coppa
On Wed, Jul 20, 2011 at 8:34 PM, bsd user bsd.u...@mail.ru wrote:
 Hi,
 I got E1750 with O2 and noticed it's not working with -current. Here is the 
 little patch, that should do the trick.
 Without this patch, device shows up as a sdX (just the flash part of device, 
 and /dev/cuaU0 is not set up)
 Cheers,
 Jurij

Please, can you provide us a dmesg with your patch applied?
Is the device working with ppp?

ciao,
David



Re: [patch] Huawei E1750 support

2011-07-20 Thread David Coppa
On Wed, Jul 20, 2011 at 9:20 PM, bsd user bsd.u...@mail.ru wrote:
 20 I@LQ 2011, 23:00 OT David Coppa dco...@gmail.com:
  On Wed, Jul 20, 2011 at 8:34 PM, bsd user bsd.u...@mail.ru wrote:
   Hi,
   I got E1750 with O2 and noticed it's not working with -current. Here is
the
  little patch, that should do the trick.
   Without this patch, device shows up as a sdX (just the flash part of
device,
  and /dev/cuaU0 is not set up)
   Cheers,
   Jurij
 
  Please, can you provide us a dmesg with your patch applied?

 I've snipped dmesg from unimportant things (hope that's not problem)
 dmesg before patching:
 ---
 umsm0 at uhub0 port 3 configuration 1 interface 0 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 umsm1 at uhub0 port 3 configuration 1 interface 1 HUAWEI Technologies
HUAWEI Mobile Modem rev 2.00/0.00 addr 2
 umsm0 detached
 umsm1 detached
 umass0 at uhub0 port 3 configuration 1 interface 3 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus2 at umass0: 2 targets, initiator 0
 sd2 at scsibus2 targ 1 lun 0: HUAWEI, SD Storage, 2.31 SCSI2 0/direct
removable
 ugen0 at uhub0 port 3 configuration 1 HUAWEI Technology HUAWEI Mobile rev
2.00/0.00 addr 2
 --

 and dmesg after patching:
 --
 umsm0 at uhub0 port 3 configuration 1 interface 0 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 umsm1 at uhub0 port 3 configuration 1 interface 1 HUAWEI Technologies
HUAWEI Mobile Modem rev 2.00/0.00 addr 2
 umsm0 detached
 umsm1 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 ucom1 at umsm1
 umsm2 at uhub0 port 3 configuration 1 interface 2 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 ucom2 at umsm2
 umsm3 at uhub0 port 3 configuration 1 interface 3 HUAWEI Technology HUAWEI
Mobile rev 2.00/0.00 addr 2
 --

  Is the device working with ppp?
 Yes, it's working with ppp as /dev/cuaU0

Nice.

If I'll have another ok, I'll commit your patch..

Thanks!
David



Re: [patch] Huawei E1750 support

2011-07-20 Thread Stuart Henderson
On 2011-07-20, bsd user bsd.u...@mail.ru wrote:
 Index: dev/usb/usbdevs
===
 RCS file: /cvs/src/sys/dev/usb/usbdevs,v
 retrieving revision 1.548
 diff -u -p -r1.548 usbdevs
 --- dev/usb/usbdevs   8 Jul 2011 23:09:06 -   1.548
 +++ dev/usb/usbdevs   20 Jul 2011 17:22:34 -
 @@ -1963,6 +1963,7 @@ product HUAWEI E220 0x1003  HUAWEI Mobil
  product HUAWEI Mobile0x1008  HUAWEI Mobile Modem
  product HUAWEI E180  0x140c  HUAWEI Mobile E180
  product HUAWEI E510  0x1411  HUAWEI Mobile E510
 +product HUAWEI E1750 0x1406  HUAWEI Mobile Modem
  product HUAWEI E1752 0x1417  HUAWEI Mobile Modem
  product HUAWEI E182  0x1429  HUAWEI Mobile Modem
  product HUAWEI E161  0x1446  HUAWEI Mobile Modem

This should be sorted by product ID.