[Bug 220879] Add support for Huawai E398 4G modem

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220879

Hans Petter Selasky  changed:

   What|Removed |Added

 CC||hsela...@freebsd.org

--- Comment #2 from Hans Petter Selasky  ---
What is the origin of this ID? Can you show the dump from usbconfig for device
and configuration descriptors?

Thank you!

--HPS

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220879] Add support for Huawai E398 4G modem

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220879

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220879] Add support for Huawai E398 4G modem

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220879

Ed Maste  changed:

   What|Removed |Added

 CC||ema...@freebsd.org

--- Comment #1 from Ed Maste  ---
Something seems odd here: 0x12d1 is Huawei's Vendor ID, and I haven't found any
 reference to 12d1:12d1. I can find references to E398 with a USB ID of
12d1:1505, which is the same as E392 already in usbdevs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220879] Add support for Huawai E398 4G modem

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220879

Bug ID: 220879
   Summary: Add support for Huawai E398 4G modem
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: usb
  Assignee: freebsd-usb@FreeBSD.org
  Reporter: ja...@alvermark.net

Index: sys/dev/usb/serial/u3g.c
===
--- sys/dev/usb/serial/u3g.c(revision 321286)
+++ sys/dev/usb/serial/u3g.c(working copy)
@@ -241,6 +241,7 @@
U3G_DEV(HP, HS2300, 0),
U3G_DEV(HP, UN2420_QDL, 0),
U3G_DEV(HP, UN2420, 0),
+   U3G_DEV(HUAWEI, E398, U3GINIT_HUAWEI),
U3G_DEV(HUAWEI, E1401, U3GINIT_HUAWEI),
U3G_DEV(HUAWEI, E1402, U3GINIT_HUAWEI),
U3G_DEV(HUAWEI, E1403, U3GINIT_HUAWEI),
Index: sys/dev/usb/usbdevs
===
--- sys/dev/usb/usbdevs (revision 321286)
+++ sys/dev/usb/usbdevs (working copy)
@@ -2368,6 +2368,7 @@
 product HUAWEI MOBILE  0x1001  Huawei Mobile
 product HUAWEI E2200x1003  HSDPA modem
 product HUAWEI E220BIS 0x1004  HSDPA modem
+product HUAWEI E3980x12d1  4G modem
 product HUAWEI E1401   0x1401  3G modem
 product HUAWEI E1402   0x1402  3G modem
 product HUAWEI E1403   0x1403  3G modem

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220852] [cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #8 from Bipin Chandra  ---
(In reply to Hans Petter Selasky from comment #6)

i wont be able to test this patch because im using pfsense and im trying to
make this work with that and secondly im not a developer so its out of my
scope. Ill ask some1 on pfsense forum if they can give it a try

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220852] [cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #7 from Bipin Chandra  ---
(In reply to Hans Petter Selasky from comment #5)

usbconfig -d 0.2 dump_curr_config_desc

ugen0.2:  at usbus0,
cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)


 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x004b
bNumInterfaces = 0x0002
bConfigurationValue = 0x0002
iConfiguration = 0x  
bmAttributes = 0x00c0
bMaxPower = 0x0001

Additional Descriptor

bLength = 0x08
bDescriptorType = 0x0b
bDescriptorSubType = 0x00
 RAW dump:
 0x00 | 0x08, 0x0b, 0x00, 0x02, 0x02, 0x06, 0x00, 0x06


Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0001
  bInterfaceClass = 0x0002  
  bInterfaceSubClass = 0x0002
  bInterfaceProtocol = 0x00ff
  iInterface = 0x0004  

  Additional Descriptor

  bLength = 0x05
  bDescriptorType = 0x24
  bDescriptorSubType = 0x00
   RAW dump:
   0x00 | 0x05, 0x24, 0x00, 0x10, 0x01


  Additional Descriptor

  bLength = 0x05
  bDescriptorType = 0x24
  bDescriptorSubType = 0x01
   RAW dump:
   0x00 | 0x05, 0x24, 0x01, 0x00, 0x01


  Additional Descriptor

  bLength = 0x04
  bDescriptorType = 0x24
  bDescriptorSubType = 0x02
   RAW dump:
   0x00 | 0x04, 0x24, 0x02, 0x00


  Additional Descriptor

  bLength = 0x05
  bDescriptorType = 0x24
  bDescriptorSubType = 0x06
   RAW dump:
   0x00 | 0x05, 0x24, 0x06, 0x00, 0x01


 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082  
bmAttributes = 0x0003  
wMaxPacketSize = 0x0008
bInterval = 0x0009
bRefresh = 0x
bSynchAddress = 0x


Interface 1
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0001
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x000a  
  bInterfaceSubClass = 0x
  bInterfaceProtocol = 0x
  iInterface = 0x0005  

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220852] [cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #6 from Hans Petter Selasky  ---
Created attachment 184536
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=184536=edit
USB RNDIS

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


[Bug 220852] [cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read

2017-07-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #4 from Bipin Chandra  ---
i use the below command in the rpi cmdline.txt file to load the module which
also sets both the device and host mac id and yes i get the same host mac id on
macos/windows/linux

modules-load=dwc2,g_ether g_ether.use_eem=0 g_ether.dev_addr=8e:7a:7e:37:6f:bb
g_ether.host_addr=8e:7a:7e:37:6f:aa


usbdump -i usbus0 -f 2 -s 65536 -vvv > log.txt

10:02:39.038743 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 00 01 00 00 12 00  -- -- -- -- -- -- -- --  ||
 frame[1] READ 18 bytes
 flags 0x10 
 status 0xca1a3

10:02:39.040632 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 18 bytes
   12 01 00 02 02 00 00 40  25 05 A2 A4 09 04 01 02  |...@%...|
 0010  00 02 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..  |
 flags 0x10 
 status 0xca1a1

10:02:39.043696 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 00 03 00 00 02 00  -- -- -- -- -- -- -- --  ||
 frame[1] READ 2 bytes
 flags 0x10 
 status 0xca1a3

10:02:39.045496 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 2 bytes
   04 03 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..  |
 flags 0x10 
 status 0xca1a1

10:02:39.045546 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  ||
 frame[1] READ 4 bytes
 flags 0x10 
 status 0xea1a3

10:02:39.046485 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 4 bytes
   04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  ||
 flags 0x10 
 status 0xea1a1

10:02:39.046535 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 01 03 09 04 02 00  -- -- -- -- -- -- -- --  ||
 frame[1] READ 2 bytes
 flags 0x10 
 status 0xca1a3

10:02:39.047472 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 2 bytes
   40 03 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |@.  |
 flags 0x10 
 status 0xca1a1

10:02:39.047521 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 01 03 09 04 40 00  -- -- -- -- -- -- -- --  |..@.|
 frame[1] READ 64 bytes
 flags 0x10 
 status 0xea1a3

10:02:39.048467 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=64,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 64 bytes
   40 03 4C 00 69 00 6E 00  75 00 78 00 20 00 34 00  |@.L.i.n.u.x. .4.|
 0010  2E 00 39 00 2E 00 33 00  37 00 2B 00 20 00 77 00  |..9...3.7.+. .w.|
 0020  69 00 74 00 68 00 20 00  32 00 30 00 39 00 38 00  |i.t.h. .2.0.9.8.|
 0030  30 00 30 00 30 00 30 00  2E 00 75 00 73 00 62 00  |0.0.0.0...u.s.b.|
 flags 0x10 
 status 0xea1a1

10:02:39.048523 usbus0.2 SUBM-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
   80 06 02 03 09 04 02 00  -- -- -- -- -- -- -- --  ||
 frame[1] READ 2 bytes
 flags 0x10 
 status 0xca1a3

10:02:39.049466 usbus0.2
DONE-CTRL-EP=0080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 2 bytes
   2C 03 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |,.  |
 flags 0x10 
 status 0xca1a1