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

2019-12-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

Jesper Schmitz Mouridsen  changed:

   What|Removed |Added

 CC||j...@freebsd.org

--- Comment #11 from Jesper Schmitz Mouridsen  ---
(In reply to Bipin Chandra from comment #10)

It works on 12.1-RELEASE by kldunload if_cdce.ko, after the Zero has booted.

-- 
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-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #10 from Bipin Chandra  ---
as per one of the members at pfsense i was told the below:

"It still concerns me that the device created is cdce0 and not urndis0. It
looks to me as though it's not even using the urndis driver"

-- 
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-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

--- Comment #9 from Bipin Chandra  ---
tried the patch but the behavior is still same

-- 
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

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

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

Hans Petter Selasky  changed:

   What|Removed |Added

 CC||hsela...@freebsd.org

--- Comment #3 from Hans Petter Selasky  ---
Could you dump the USB messages when this device is connected under FreeBSD:

Note the numbers after ugenX.Y:

Before plugging the device, run:

usbdump -i usbusX -F Y -s 65536 -vvv > log.txt

After plugging CTRL+C the usbdump.

Likely the Linux OTG module is storing the MAC address in a way that is
currently not compatible. This should be easy to figure out by code inspection.

-- 
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-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

Ed Maste  changed:

   What|Removed |Added

 CC||ema...@freebsd.org

--- Comment #2 from Ed Maste  ---
Do you get the same MAC on macOS / Windows / Linux?

Independent of obtaining the "proper" MAC address the current approach for
generating a randomized MAC (from r184610) is somewhat bogus and should also be
revisited.

-- 
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-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

Bipin Chandra  changed:

   What|Removed |Added

   Hardware|amd64   |Any

--- Comment #1 from Bipin Chandra  ---
ugen0.2:  at usbus0,
cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0002  
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0525
  idProduct = 0xa4a2
  bcdDevice = 0x0409
  iManufacturer = 0x0001  
  iProduct = 0x0002  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0002

-- 
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-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220852

Bug ID: 220852
   Summary: [cdce] [usb] raspberry pi or anything that can emulate
Ethernet gadget over usb mac id not read
   Product: Base System
   Version: 11.0-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: usb
  Assignee: freebsd-usb@FreeBSD.org
  Reporter: bi...@xbipin.com

raspberry pi zero have a kernel module which allows it to use the OTG port to
generate a virtual USB Ethernet adapter (RNDIS Gadget) and we can define its
host and device mac id and it works fine connecting the pi to mac OS, windows
or Linux but when you connect it to pfsense or any FreeBSD based system then
those ignore the supplied mac id and they always generate a random mac id
making it almost useless to be able to use on pfsense etc. I had reported this
on the pfsense bug request portal and i was told to report it here.

when the pi is connected to pfsense using USB the below is generated

ugen0.2:  at usbus0
cdce0: on usbus0
cdce0: No valid alternate setting found
device_attach: cdce0 attach returned 6
cdce0: on usbus0
cdce0: faking MAC address
ue0: on cdce0
ue0: Ethernet address: 2a:3f:38:a3:80:00

-- 
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"