I purchased a few NewerTech USB-Ethernet adapters recently, and have had some difficulties getting them to work correctly with FreeBSD. I am told by the manufactuers' support tech that it uses a USB 3.0 Type-A (Realtek RTL8153) chipset, and the only driver they can provide is for MacOS (the Windows driver is installed by default, I guess)
I am running FreeBSD on an older (...but beefier...) MacBook Pro. When I plug in the USB-ethernet adapter, it works fine at first. However, certain types of network activity cause it to suddenly stop working. It seems that larger data transfers and literally anything SMB-related (even just browsing/listing directory contents) causes the interface to go down. The only way to get it working again is to unplug it and then plug it back in.
When I type "ifconfig" on the command line, the working adapter shows this output:
After it stops working, ifconfig shows the following output for the not working adapter:
....The notable difference being the change in the 'media' and 'status' lines.
Do you have any idea what is going on here or what can be done to solve it?
Note that I was using this exact same adapter recently on a MacBook Air running Ubuntu Linux with no issues. I did have some issues getting the adapter to work with a different MacBook Air running Windows 10, but was able to solve this by resetting SMC and PRAM (at the support-tech's suggestion). I already did the SMC & PRAM reset for the MacBook Pro running FreeBSD, but it hasn't had any effect on the issue.
EDIT:
Here are the outputs of two usbconfig commands. Maybe this info will help identify the issues? Not sure?
I am running FreeBSD on an older (...but beefier...) MacBook Pro. When I plug in the USB-ethernet adapter, it works fine at first. However, certain types of network activity cause it to suddenly stop working. It seems that larger data transfers and literally anything SMB-related (even just browsing/listing directory contents) causes the interface to go down. The only way to get it working again is to unplug it and then plug it back in.
When I type "ifconfig" on the command line, the working adapter shows this output:
Code:
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:50:b6:17:f2:76
inet 192.168.241.1 netmask 0xffffff00 broadcast 192.168.241.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
After it stops working, ifconfig shows the following output for the not working adapter:
Code:
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:50:b6:17:f2:76
inet 192.168.241.1 netmask 0xffffff00 broadcast 192.168.241.255
media: Ethernet autoselect (none <half-duplex>)
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
....The notable difference being the change in the 'media' and 'status' lines.
Do you have any idea what is going on here or what can be done to solve it?
Note that I was using this exact same adapter recently on a MacBook Air running Ubuntu Linux with no issues. I did have some issues getting the adapter to work with a different MacBook Air running Windows 10, but was able to solve this by resetting SMC and PRAM (at the support-tech's suggestion). I already did the SMC & PRAM reset for the MacBook Pro running FreeBSD, but it hasn't had any effect on the issue.
EDIT:
Here are the outputs of two usbconfig commands. Maybe this info will help identify the issues? Not sure?
Code:
# usbconfig
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.2: <vendor 0x8087 product 0x0024> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x0024> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.3: <Apple Inc. FaceTime HD Camera (Built-in)> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen2.3: <vendor 0x0424 product 0x2513> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA)
ugen2.4: <Apple Inc. BRCM20702 Hub> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (94mA)
ugen2.7: <Apple Inc. Bluetooth USB Host Controller> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen2.8: <Apple Computer, Inc. IR Receiver> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen2.9: <Apple Inc. Apple Internal Keyboard / Trackpad> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (40mA)
ugen0.2: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA)
Code:
# usbconfig -u 0 -a 2 dump_device_desc
ugen0.2: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0300
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0009
idVendor = 0x0bda
idProduct = 0x8153
bcdDevice = 0x3000
iManufacturer = 0x0001 <Realtek>
iProduct = 0x0002 <USB 10/100/1000 LAN>
iSerialNumber = 0x0006 <000001000000>
bNumConfigurations = 0x0002