Re: Huawei E3272 tester needed

2014-09-17 Thread Milan Obuch
On Tue, 16 Sep 2014 22:43:34 +0200
Maciej Milewski m...@dat.pl wrote:

 On 16.09.2014 22:18, Milan Obuch wrote:
  On Tue, 16 Sep 2014 21:55:50 +0200
  Maciej Milewski m...@dat.pl wrote:
 
  On 16.09.2014 16:52, Milan Obuch wrote:
  On Tue, 16 Sep 2014 09:40:45 +0200
  Nick Hibma n...@van-laarhoven.org wrote:
 
  Hi,
 
  Is there someone who is able to test support for the Huawei E3272
  card with CURRENT after 269584? I have not been able to confirm
  that it works.
 
  Thanks in advance.
 
  Nick
 
  Hi,
 
  I did fresh svn update, rebuilt world+kernel, but it does not work
  for me...
  [ snip ]
 
  I tried attach/detach device beore and after loading u3g (just in
  case...) and if_cdce kernel modules, but I saw no changes.
 
  From 'usbconfig dump_device_desc':
 
  ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0
  md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
 
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x1f01
bcdDevice = 0x0102
iManufacturer = 0x0002  HUAWEI Technology
iProduct = 0x0001  HUAWEI Mobile
iSerialNumber = 0x0004  
bNumConfigurations = 0x0001
 
  If anything else is important, let me know.
 
  Regards,
  Milan
  Try ejecting first this cd2 drive by cdcontrol eject or camcontrol
  eject. I had such scenario with other usb device and that helped.
 
  Nothing.
 
  # camcontrol eject cd2
  Unit stopped successfully, Media ejected
 
  That's all. No new device created, neither in /dev directory nor in
  ifconfig listing. Nothing in console log.
 
  From 'usbconfig dump_all_config_desc':
 
  ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST
  spd=HIGH (480Mbps) pwr=ON (500mA)
 
   Configuration index 0
 
  bLength = 0x0009 
  bDescriptorType = 0x0002 
  wTotalLength = 0x0020 
  bNumInterfaces = 0x0001 
  bConfigurationValue = 0x0001 
  iConfiguration = 0x0003  Huawei Configuration
  bmAttributes = 0x0080 
  bMaxPower = 0x00fa 
 
  Interface 0
bLength = 0x0009 
bDescriptorType = 0x0004 
bInterfaceNumber = 0x 
bAlternateSetting = 0x 
bNumEndpoints = 0x0002 
bInterfaceClass = 0x0008 
bInterfaceSubClass = 0x0006 
bInterfaceProtocol = 0x0050 
iInterface = 0x  no string
 
   Endpoint 0
  bLength = 0x0007 
  bDescriptorType = 0x0005 
  bEndpointAddress = 0x0001  OUT
  bmAttributes = 0x0002  BULK
  wMaxPacketSize = 0x0200 
  bInterval = 0x 
  bRefresh = 0x 
  bSynchAddress = 0x 
 
   Endpoint 1
  bLength = 0x0007 
  bDescriptorType = 0x0005 
  bEndpointAddress = 0x0081  IN
  bmAttributes = 0x0002  BULK
  wMaxPacketSize = 0x0200 
  bInterval = 0x 
  bRefresh = 0x 
  bSynchAddress = 0x 
 
  Regards,
  Milan
 Your device has different idProduct than this added in patch. It might
 be caused by different configuration of the device/different provider
 who sells devices.
 I know that some devices might show up as HiLink mode(cdce) or serial
 mode(u3g). And this might be changed by flashing different firmware or
 sometimes by using usb_modeswitch(under linux not sure if it works
 under freebsd).
 Example is here:
 https://forum.pfsense.org/index.php?topic=48780.20;wap2
 

Thanks, that's working, verbatim:

usb_modeswitch -v 12d1 -p 1f01 -V 012d1 -P 014db -M 
55534243123456780a11062100 -W

After that, if_cdce and uether kernel modules are automatically loaded
and dhclient ue0 successfully acquires IP address.

And it is working in 9.2-STABLE, 10.0-STABLE systems I tested with no
modification to sources, so this is a good solution for me.

Regards,
Milan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-17 Thread Milan Obuch
On Wed, 17 Sep 2014 07:11:26 +0200
Hans Petter Selasky h...@selasky.org wrote:

 On 09/16/14 22:52, Milan Obuch wrote:
  On Tue, 16 Sep 2014 22:35:19 +0200
  Hans Petter Selasky h...@selasky.org wrote:
 
  On 09/16/14 22:18, Milan Obuch wrote:
  On Tue, 16 Sep 2014 21:55:50 +0200
  Maciej Milewski m...@dat.pl wrote:
 
  On 16.09.2014 16:52, Milan Obuch wrote:
  On Tue, 16 Sep 2014 09:40:45 +0200
  Nick Hibma n...@van-laarhoven.org wrote:
 
  Hi,
 
  Is there someone who is able to test support for the Huawei
  E3272 card with CURRENT after 269584? I have not been able to
  confirm that it works.
 
  Thanks in advance.
 
  Nick
 
  Hi,
 
  I did fresh svn update, rebuilt world+kernel, but it does not
  work for me...
 
  [ snip ]
 
 
  Hi,
 
  According to the modeswitch:
 
  usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2
 
  Then re-plug the device.
 
  --HPS
 
 
  Well, again, no change:
 
  #usbconfig -d 1.3 add_quirk UQ_MSC_EJECT_HUAWEISCSI2
  Adding quirk 'UQ_MSC_EJECT_HUAWEISCSI2' failed, continuing.
 
  Did I do it right? Something is surely wrong. By the way, from
  uname:
 
  11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271671M
 
  The only modified file is modules/drm2/Makefile because for some
  reason radeonkms does not currently build, so I excluded is as a
  fast workaround.
 
 
 Hi,
 
 Did you kldload usb_quirk
 
 And does:
 
 usbconfig dump_quirk_names yield something?
 
 --HPS


Well, I missed somehow usb_quirk module, but even with this module
loaded, no change in behavior was seen. Thanks to other suggestion I
verified solution with usb_modeswitch working, even on stock 9.2 and
10.0 systems.

Anyway, if you would like me to test something else, just drop me a
note.

Regards,
Milan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-17 Thread Hans Petter Selasky

On 09/17/14 09:06, Milan Obuch wrote:

On Wed, 17 Sep 2014 07:11:26 +0200
Hans Petter Selasky h...@selasky.org wrote:


On 09/16/14 22:52, Milan Obuch wrote:

On Tue, 16 Sep 2014 22:35:19 +0200
Hans Petter Selasky h...@selasky.org wrote:


On 09/16/14 22:18, Milan Obuch wrote:

On Tue, 16 Sep 2014 21:55:50 +0200
Maciej Milewski m...@dat.pl wrote:


On 16.09.2014 16:52, Milan Obuch wrote:

On Tue, 16 Sep 2014 09:40:45 +0200
Nick Hibma n...@van-laarhoven.org wrote:


Hi,

Is there someone who is able to test support for the Huawei
E3272 card with CURRENT after 269584? I have not been able to
confirm that it works.

Thanks in advance.

Nick


Hi,

I did fresh svn update, rebuilt world+kernel, but it does not
work for me...


[ snip ]



Hi,

According to the modeswitch:

usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2

Then re-plug the device.

--HPS



Well, again, no change:

#usbconfig -d 1.3 add_quirk UQ_MSC_EJECT_HUAWEISCSI2
Adding quirk 'UQ_MSC_EJECT_HUAWEISCSI2' failed, continuing.

Did I do it right? Something is surely wrong. By the way, from
uname:

11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271671M

The only modified file is modules/drm2/Makefile because for some
reason radeonkms does not currently build, so I excluded is as a
fast workaround.



Hi,

Did you kldload usb_quirk

And does:

usbconfig dump_quirk_names yield something?

--HPS



Well, I missed somehow usb_quirk module, but even with this module
loaded, no change in behavior was seen. Thanks to other suggestion I
verified solution with usb_modeswitch working, even on stock 9.2 and
10.0 systems.

Anyway, if you would like me to test something else, just drop me a
note.



Hi,

This quirk should be done by the u3g module. Can you make a patch for 
U3G in sys/dev/usb/serial/u3g.c ? See existing quirks. Else we'll add 
the one from modeswitch.


--HPS

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-17 Thread Maciej Milewski
On 17.09.2014 09:02, Milan Obuch wrote:
 On Tue, 16 Sep 2014 22:43:34 +0200
 Maciej Milewski m...@dat.pl wrote:

 On 16.09.2014 22:18, Milan Obuch wrote:
 Your device has different idProduct than this added in patch. It might
 be caused by different configuration of the device/different provider
 who sells devices.
 I know that some devices might show up as HiLink mode(cdce) or serial
 mode(u3g). And this might be changed by flashing different firmware or
 sometimes by using usb_modeswitch(under linux not sure if it works
 under freebsd).
 Example is here:
 https://forum.pfsense.org/index.php?topic=48780.20;wap2

 Thanks, that's working, verbatim:

 usb_modeswitch -v 12d1 -p 1f01 -V 012d1 -P 014db -M 
 55534243123456780a11062100 -W

 After that, if_cdce and uether kernel modules are automatically loaded
 and dhclient ue0 successfully acquires IP address.

 And it is working in 9.2-STABLE, 10.0-STABLE systems I tested with no
 modification to sources, so this is a good solution for me.

 Regards,
 Milan
Glad to hear that helped, can you follow Hans suggestion for trying
already defined quirks? It's posiible that there is one working.

-- 
Pozdrawiam,
Maciej Milewski


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Huawei E3272 tester needed

2014-09-16 Thread Nick Hibma
Hi,

Is there someone who is able to test support for the Huawei E3272 card with 
CURRENT after 269584? I have not been able to confirm that it works.

Thanks in advance.

Nick


The change:

Author: n_hibma
Date: Tue Aug  5 12:08:50 2014
New Revision: 269584
URL: http://svnweb.freebsd.org/changeset/base/269584

Log:
 Add support for Huawei E3272 modems which are supported by the CDC
 ethernet class.

 Note: This is untested as I do not have a device like this. That is
 reflected in the MFC timeout.

 PR:192345
 Submitted by:  rozhuk.im gmail.com
 MFC after: 4 weeks

Modified:
 head/sys/dev/usb/net/if_cdce.c
 head/sys/dev/usb/usbdevs
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Milan Obuch
On Tue, 16 Sep 2014 09:40:45 +0200
Nick Hibma n...@van-laarhoven.org wrote:

 Hi,
 
 Is there someone who is able to test support for the Huawei E3272
 card with CURRENT after 269584? I have not been able to confirm that
 it works.
 
 Thanks in advance.
 
 Nick


Hi,

I did fresh svn update, rebuilt world+kernel, but it does not work for
me...

From log:

ugen1.3: HUAWEI Technology at usbus1
umass1: HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3 on 
usbus1
cd2 at umass-sim1 bus 1 scbus7 target 0 lun 0
cd2: HUAWEI Mass Storage 2.31 Removable CD-ROM SCSI-2 device
cd2: 40.000MB/s transfers
cd2: cd present [65536 x 2048 byte records]
cd2: quirks=0x1010_BYTE_ONLY
(cd2:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 ff ff 00 00 01 00
(cd2:umass-sim1:1:0:0): CAM status: SCSI Status Error
(cd2:umass-sim1:1:0:0): SCSI status: Check Condition
(cd2:umass-sim1:1:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read 
error)
(cd2:umass-sim1:1:0:0): Info: 0x
(cd2:umass-sim1:1:0:0): Error 5, Unretryable error
(cd2:umass-sim1:1:0:0): cddone: got error 0x5 back

ugen1.3: HUAWEI Technology at usbus1 (disconnected)
umass1: at uhub1, port 6, addr 3 (disconnected)
cd2 at umass-sim1 bus 1 scbus7 target 0 lun 0
cd2: HUAWEI Mass Storage 2.31 detached
(cd2:umass-sim1:1:0:0): Periph destroyed

I tried attach/detach device beore and after loading u3g (just in
case...) and if_cdce kernel modules, but I saw no changes.

From 'usbconfig dump_device_desc':

ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON (500mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x1f01
  bcdDevice = 0x0102
  iManufacturer = 0x0002  HUAWEI Technology
  iProduct = 0x0001  HUAWEI Mobile
  iSerialNumber = 0x0004  
  bNumConfigurations = 0x0001

If anything else is important, let me know.

Regards,
Milan

 The change:
 
 Author: n_hibma
 Date: Tue Aug  5 12:08:50 2014
 New Revision: 269584
 URL: http://svnweb.freebsd.org/changeset/base/269584
 
 Log:
  Add support for Huawei E3272 modems which are supported by the CDC
  ethernet class.
 
  Note: This is untested as I do not have a device like this. That is
  reflected in the MFC timeout.
 
  PR:  192345
  Submitted by:rozhuk.im gmail.com
  MFC after:   4 weeks
 
 Modified:
  head/sys/dev/usb/net/if_cdce.c
  head/sys/dev/usb/usbdevs

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Maciej Milewski
On 16.09.2014 16:52, Milan Obuch wrote:
 On Tue, 16 Sep 2014 09:40:45 +0200
 Nick Hibma n...@van-laarhoven.org wrote:

 Hi,

 Is there someone who is able to test support for the Huawei E3272
 card with CURRENT after 269584? I have not been able to confirm that
 it works.

 Thanks in advance.

 Nick

 Hi,

 I did fresh svn update, rebuilt world+kernel, but it does not work for
 me...

 From log:

 ugen1.3: HUAWEI Technology at usbus1
 umass1: HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3 
 on usbus1
 cd2 at umass-sim1 bus 1 scbus7 target 0 lun 0
 cd2: HUAWEI Mass Storage 2.31 Removable CD-ROM SCSI-2 device
 cd2: 40.000MB/s transfers
 cd2: cd present [65536 x 2048 byte records]
 cd2: quirks=0x1010_BYTE_ONLY
 (cd2:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 ff ff 00 00 01 00
 (cd2:umass-sim1:1:0:0): CAM status: SCSI Status Error
 (cd2:umass-sim1:1:0:0): SCSI status: Check Condition
 (cd2:umass-sim1:1:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read 
 error)
 (cd2:umass-sim1:1:0:0): Info: 0x
 (cd2:umass-sim1:1:0:0): Error 5, Unretryable error
 (cd2:umass-sim1:1:0:0): cddone: got error 0x5 back

 ugen1.3: HUAWEI Technology at usbus1 (disconnected)
 umass1: at uhub1, port 6, addr 3 (disconnected)
 cd2 at umass-sim1 bus 1 scbus7 target 0 lun 0
 cd2: HUAWEI Mass Storage 2.31 detached
 (cd2:umass-sim1:1:0:0): Periph destroyed

 I tried attach/detach device beore and after loading u3g (just in
 case...) and if_cdce kernel modules, but I saw no changes.

 From 'usbconfig dump_device_desc':

 ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST spd=HIGH 
 (480Mbps) pwr=ON (500mA)

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0200
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x12d1
   idProduct = 0x1f01
   bcdDevice = 0x0102
   iManufacturer = 0x0002  HUAWEI Technology
   iProduct = 0x0001  HUAWEI Mobile
   iSerialNumber = 0x0004  
   bNumConfigurations = 0x0001

 If anything else is important, let me know.

 Regards,
 Milan
Try ejecting first this cd2 drive by cdcontrol eject or camcontrol eject.
I had such scenario with other usb device and that helped.

-- 
Pozdrawiam,
Maciej Milewski

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Milan Obuch
On Tue, 16 Sep 2014 21:55:50 +0200
Maciej Milewski m...@dat.pl wrote:

 On 16.09.2014 16:52, Milan Obuch wrote:
  On Tue, 16 Sep 2014 09:40:45 +0200
  Nick Hibma n...@van-laarhoven.org wrote:
 
  Hi,
 
  Is there someone who is able to test support for the Huawei E3272
  card with CURRENT after 269584? I have not been able to confirm
  that it works.
 
  Thanks in advance.
 
  Nick
 
  Hi,
 
  I did fresh svn update, rebuilt world+kernel, but it does not work
  for me...

[ snip ]

  I tried attach/detach device beore and after loading u3g (just in
  case...) and if_cdce kernel modules, but I saw no changes.
 
  From 'usbconfig dump_device_desc':
 
  ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST
  spd=HIGH (480Mbps) pwr=ON (500mA)
 
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x1f01
bcdDevice = 0x0102
iManufacturer = 0x0002  HUAWEI Technology
iProduct = 0x0001  HUAWEI Mobile
iSerialNumber = 0x0004  
bNumConfigurations = 0x0001
 
  If anything else is important, let me know.
 
  Regards,
  Milan

 Try ejecting first this cd2 drive by cdcontrol eject or camcontrol
 eject. I had such scenario with other usb device and that helped.
 

Nothing.

# camcontrol eject cd2
Unit stopped successfully, Media ejected

That's all. No new device created, neither in /dev directory nor in
ifconfig listing. Nothing in console log.

From 'usbconfig dump_all_config_desc':

ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON (500mA)

 Configuration index 0

bLength = 0x0009 
bDescriptorType = 0x0002 
wTotalLength = 0x0020 
bNumInterfaces = 0x0001 
bConfigurationValue = 0x0001 
iConfiguration = 0x0003  Huawei Configuration
bmAttributes = 0x0080 
bMaxPower = 0x00fa 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0002 
  bInterfaceClass = 0x0008 
  bInterfaceSubClass = 0x0006 
  bInterfaceProtocol = 0x0050 
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

Regards,
Milan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Hans Petter Selasky

On 09/16/14 22:18, Milan Obuch wrote:

On Tue, 16 Sep 2014 21:55:50 +0200
Maciej Milewski m...@dat.pl wrote:


On 16.09.2014 16:52, Milan Obuch wrote:

On Tue, 16 Sep 2014 09:40:45 +0200
Nick Hibma n...@van-laarhoven.org wrote:


Hi,

Is there someone who is able to test support for the Huawei E3272
card with CURRENT after 269584? I have not been able to confirm
that it works.

Thanks in advance.

Nick


Hi,

I did fresh svn update, rebuilt world+kernel, but it does not work
for me...


[ snip ]



Hi,

According to the modeswitch:

usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2

Then re-plug the device.

--HPS
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Maciej Milewski
On 16.09.2014 22:18, Milan Obuch wrote:
 On Tue, 16 Sep 2014 21:55:50 +0200
 Maciej Milewski m...@dat.pl wrote:

 On 16.09.2014 16:52, Milan Obuch wrote:
 On Tue, 16 Sep 2014 09:40:45 +0200
 Nick Hibma n...@van-laarhoven.org wrote:

 Hi,

 Is there someone who is able to test support for the Huawei E3272
 card with CURRENT after 269584? I have not been able to confirm
 that it works.

 Thanks in advance.

 Nick

 Hi,

 I did fresh svn update, rebuilt world+kernel, but it does not work
 for me...
 [ snip ]

 I tried attach/detach device beore and after loading u3g (just in
 case...) and if_cdce kernel modules, but I saw no changes.

 From 'usbconfig dump_device_desc':

 ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST
 spd=HIGH (480Mbps) pwr=ON (500mA)

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0200
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x12d1
   idProduct = 0x1f01
   bcdDevice = 0x0102
   iManufacturer = 0x0002  HUAWEI Technology
   iProduct = 0x0001  HUAWEI Mobile
   iSerialNumber = 0x0004  
   bNumConfigurations = 0x0001

 If anything else is important, let me know.

 Regards,
 Milan
 Try ejecting first this cd2 drive by cdcontrol eject or camcontrol
 eject. I had such scenario with other usb device and that helped.

 Nothing.

 # camcontrol eject cd2
 Unit stopped successfully, Media ejected

 That's all. No new device created, neither in /dev directory nor in
 ifconfig listing. Nothing in console log.

 From 'usbconfig dump_all_config_desc':

 ugen1.3: HUAWEI Mobile HUAWEI Technology at usbus1, cfg=0 md=HOST spd=HIGH 
 (480Mbps) pwr=ON (500mA)

  Configuration index 0

 bLength = 0x0009 
 bDescriptorType = 0x0002 
 wTotalLength = 0x0020 
 bNumInterfaces = 0x0001 
 bConfigurationValue = 0x0001 
 iConfiguration = 0x0003  Huawei Configuration
 bmAttributes = 0x0080 
 bMaxPower = 0x00fa 

 Interface 0
   bLength = 0x0009 
   bDescriptorType = 0x0004 
   bInterfaceNumber = 0x 
   bAlternateSetting = 0x 
   bNumEndpoints = 0x0002 
   bInterfaceClass = 0x0008 
   bInterfaceSubClass = 0x0006 
   bInterfaceProtocol = 0x0050 
   iInterface = 0x  no string

  Endpoint 0
 bLength = 0x0007 
 bDescriptorType = 0x0005 
 bEndpointAddress = 0x0001  OUT
 bmAttributes = 0x0002  BULK
 wMaxPacketSize = 0x0200 
 bInterval = 0x 
 bRefresh = 0x 
 bSynchAddress = 0x 

  Endpoint 1
 bLength = 0x0007 
 bDescriptorType = 0x0005 
 bEndpointAddress = 0x0081  IN
 bmAttributes = 0x0002  BULK
 wMaxPacketSize = 0x0200 
 bInterval = 0x 
 bRefresh = 0x 
 bSynchAddress = 0x 

 Regards,
 Milan
Your device has different idProduct than this added in patch. It might
be caused by different configuration of the device/different provider
who sells devices.
I know that some devices might show up as HiLink mode(cdce) or serial
mode(u3g). And this might be changed by flashing different firmware or
sometimes by using usb_modeswitch(under linux not sure if it works under
freebsd).
Example is here: https://forum.pfsense.org/index.php?topic=48780.20;wap2

-- 
Pozdrawiam,
Maciej Milewski


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Milan Obuch
On Tue, 16 Sep 2014 22:35:19 +0200
Hans Petter Selasky h...@selasky.org wrote:

 On 09/16/14 22:18, Milan Obuch wrote:
  On Tue, 16 Sep 2014 21:55:50 +0200
  Maciej Milewski m...@dat.pl wrote:
 
  On 16.09.2014 16:52, Milan Obuch wrote:
  On Tue, 16 Sep 2014 09:40:45 +0200
  Nick Hibma n...@van-laarhoven.org wrote:
 
  Hi,
 
  Is there someone who is able to test support for the Huawei E3272
  card with CURRENT after 269584? I have not been able to confirm
  that it works.
 
  Thanks in advance.
 
  Nick
 
  Hi,
 
  I did fresh svn update, rebuilt world+kernel, but it does not work
  for me...
 
  [ snip ]
 
 
 Hi,
 
 According to the modeswitch:
 
 usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2
 
 Then re-plug the device.
 
 --HPS


Well, again, no change:

#usbconfig -d 1.3 add_quirk UQ_MSC_EJECT_HUAWEISCSI2
Adding quirk 'UQ_MSC_EJECT_HUAWEISCSI2' failed, continuing.

Did I do it right? Something is surely wrong. By the way, from uname:

11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271671M

The only modified file is modules/drm2/Makefile because for some reason
radeonkms does not currently build, so I excluded is as a fast
workaround.

Milan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Huawei E3272 tester needed

2014-09-16 Thread Hans Petter Selasky

On 09/16/14 22:52, Milan Obuch wrote:

On Tue, 16 Sep 2014 22:35:19 +0200
Hans Petter Selasky h...@selasky.org wrote:


On 09/16/14 22:18, Milan Obuch wrote:

On Tue, 16 Sep 2014 21:55:50 +0200
Maciej Milewski m...@dat.pl wrote:


On 16.09.2014 16:52, Milan Obuch wrote:

On Tue, 16 Sep 2014 09:40:45 +0200
Nick Hibma n...@van-laarhoven.org wrote:


Hi,

Is there someone who is able to test support for the Huawei E3272
card with CURRENT after 269584? I have not been able to confirm
that it works.

Thanks in advance.

Nick


Hi,

I did fresh svn update, rebuilt world+kernel, but it does not work
for me...


[ snip ]



Hi,

According to the modeswitch:

usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2

Then re-plug the device.

--HPS



Well, again, no change:

#usbconfig -d 1.3 add_quirk UQ_MSC_EJECT_HUAWEISCSI2
Adding quirk 'UQ_MSC_EJECT_HUAWEISCSI2' failed, continuing.

Did I do it right? Something is surely wrong. By the way, from uname:

11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271671M

The only modified file is modules/drm2/Makefile because for some reason
radeonkms does not currently build, so I excluded is as a fast
workaround.



Hi,

Did you kldload usb_quirk

And does:

usbconfig dump_quirk_names yield something?

--HPS

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org