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 Stuart Henderson
On 2011-07-20, bsd user  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.



Re: [patch] Huawei E1750 support

2011-07-20 Thread David Coppa
On Wed, Jul 20, 2011 at 9:20 PM, bsd user  wrote:
>> 20 I@LQ 2011, 23:00 OT David Coppa :
>> > On Wed, Jul 20, 2011 at 8:34 PM, bsd user  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:  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[2]: [patch] Huawei E1750 support

2011-07-20 Thread bsd user
> 20 P8QP;Q 2011, 23:00 P>Q David Coppa :
> > On Wed, Jul 20, 2011 at 8:34 PM, bsd user  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:  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

> > ciao,
> > David
> 
Cheers,
Jurij



Re: [patch] Huawei E1750 support

2011-07-20 Thread David Coppa
On Wed, Jul 20, 2011 at 8:34 PM, bsd user  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



[patch] Huawei E1750 support

2011-07-20 Thread bsd user
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

Index: dev/usb/umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.77
diff -u -p -r1.77 umsm.c
--- dev/usb/umsm.c  8 Jul 2011 23:10:31 -   1.77
+++ dev/usb/umsm.c  20 Jul 2011 17:22:33 -
@@ -140,6 +140,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_K3765_INIT }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_K3765 }, 0},
+   {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1750 }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1752 }, 0},

{{ USB_VENDOR_HYUNDAI,  USB_PRODUCT_HYUNDAI_UM175 }, 0},
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 Mobile  0x1008  HUAWEI Mobile Modem
 product HUAWEI E1800x140c  HUAWEI Mobile E180
 product HUAWEI E5100x1411  HUAWEI Mobile E510
+product HUAWEI E1750   0x1406  HUAWEI Mobile Modem
 product HUAWEI E1752   0x1417  HUAWEI Mobile Modem
 product HUAWEI E1820x1429  HUAWEI Mobile Modem
 product HUAWEI E1610x1446  HUAWEI Mobile Modem
Index: dev/usb/usbdevs.h
===
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.558
diff -u -p -r1.558 usbdevs.h
--- dev/usb/usbdevs.h   8 Jul 2011 23:09:28 -   1.558
+++ dev/usb/usbdevs.h   20 Jul 2011 17:22:34 -
@@ -1970,6 +1970,7 @@
 #defineUSB_PRODUCT_HUAWEI_Mobile   0x1008  /* HUAWEI 
Mobile Modem */
 #defineUSB_PRODUCT_HUAWEI_E180 0x140c  /* HUAWEI Mobile E180 */
 #defineUSB_PRODUCT_HUAWEI_E510 0x1411  /* HUAWEI Mobile E510 */
+#defineUSB_PRODUCT_HUAWEI_E17500x1406  /* HUAWEI Mobile Modem 
*/
 #defineUSB_PRODUCT_HUAWEI_E17520x1417  /* HUAWEI 
Mobile Modem */
 #defineUSB_PRODUCT_HUAWEI_E182 0x1429  /* HUAWEI Mobile Modem 
*/
 #defineUSB_PRODUCT_HUAWEI_E161 0x1446  /* HUAWEI Mobile Modem 
*/
Index: dev/usb/usbdevs_data.h
===
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.552
diff -u -p -r1.552 usbdevs_data.h
--- dev/usb/usbdevs_data.h  8 Jul 2011 23:09:28 -   1.552
+++ dev/usb/usbdevs_data.h  20 Jul 2011 17:22:36 -
@@ -4010,6 +4010,10 @@ const struct usb_known_product usb_known
"HUAWEI Mobile E510",
},
{
+   USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750,
+   "HUAWEI Mobile Modem",
+   },
+   {
USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1752,
"HUAWEI Mobile Modem",
},