Re: USB ethernet adapter?

2022-06-30 Thread Nenhum_de_Nos
> Hi,
>
> My PCEngines APU died and I need to rebuild my router.
>
> I'm throwing together an old desktop, but ultimately I'd like to use a
> Raspberry Pi that I bought to play with.
>
> My network configuration needs 2 wired interfaces.  I don't have a switch
> that will do vlans, and I don't want to have to configure all of that.
>
> This is only for a 20 Meg (bi directional) connection, so not stressing
> things too much.
>
> What would be a good USB to ethernet (RJ45) adapter that is supported by
> OpenBSD?
>
> Thanks,
> Steve W.

Hi Steve,

this bandwidth will be fine even on a RPI3 (tried here on old link, it was
fine up to 50Mbps without queuing).

I have now a RPI4 4GB and an USB Trendnet usb3 adapter:

rpi4_obsd /bsd: axen0 at uhub0 port 3 configuration 1 interface 0 "ASIX
Elec. Corp. AX88179" rev 3.00/1.00 addr 3
rpi4_obsd /bsd: axen0: AX88179, address xx
rpi4_obsd /bsd: rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5

that despite some messages like this:

rpi4_obsd /bsd: axen0: checksum err (pkt#1)

will do fine. Nowadays the link is 200/80 Mbps and I use queuing fine. For
20Mbps even the usb2 Linksys 100Mbps ethernet will do for you.

att,

matheus




Re: USB ethernet adapter?

2022-06-29 Thread Roman Samoilenko

Hi.

I have old TP-Link UE300 (USB3.0 GigabitEthernet) and UE330 (USB3.0 
GigabitEthernet + USB3.0 3-port hub).

Both work fine with Openbsd on Raspberry PI 4.

rtl8153 (driver ure)

200-250 mbit/s


Regards,
Roman

On 30.06.22 00:16, Steve Williams wrote:

Hi,

My PCEngines APU died and I need to rebuild my router.

I'm throwing together an old desktop, but ultimately I'd like to use a
Raspberry Pi that I bought to play with.

My network configuration needs 2 wired interfaces.  I don't have a switch
that will do vlans, and I don't want to have to configure all of that.

This is only for a 20 Meg (bi directional) connection, so not stressing
things too much.

What would be a good USB to ethernet (RJ45) adapter that is supported by
OpenBSD?

Thanks,
Steve W.




USB ethernet adapter?

2022-06-29 Thread Steve Williams
Hi,

My PCEngines APU died and I need to rebuild my router.

I'm throwing together an old desktop, but ultimately I'd like to use a
Raspberry Pi that I bought to play with.

My network configuration needs 2 wired interfaces.  I don't have a switch
that will do vlans, and I don't want to have to configure all of that.

This is only for a 20 Meg (bi directional) connection, so not stressing
things too much.

What would be a good USB to ethernet (RJ45) adapter that is supported by
OpenBSD?

Thanks,
Steve W.


Re: USB Ethernet adapter

2018-09-27 Thread Bogdan Kulbida
This is a great suggestion. Thanks Stuart. Much appreciated

-b.

On Thu, Sep 27, 2018 at 14:57 Stuart Longland 
wrote:

> On 25/09/18 10:00, Bogdan Kulbida wrote:
> > Please don’t judge that hard, but I’m trying to see if I can set-up a
> > network gateway with one of the old’ish servers I have here. It was
> running
> > OBSD just fine for a looong time but has only one network interface.
> >
> > It does have few extra USB ports, ta-da...
> > Anyway, what USB network interface would you recommend that would run
> > smoothly with the OBSD 6.3?
>
> Another possibility is if you don't need the full link speed, you can
> use a managed switch and set up 802.1Q.
>
> Make the ports at both ends trunk ports and multiplex as many Ethernet
> segments as you like.
>
> I use this approach with a TS-7670 industrial PC which has only one
> 100Mbps Ethernet interface to have it route between a DMZ and a
> management network, and of course, indirectly two of my OpenBSD-based
> virtual machines do this (with the Linux host doing the 802.1Q stuff).
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.
>
> --
---
Best regards,
Bogdan Kulbida
Founder and CEO, Konstankino LLC 
+1.802.793.8295


Re: USB Ethernet adapter

2018-09-27 Thread Stuart Longland
On 25/09/18 10:00, Bogdan Kulbida wrote:
> Please don’t judge that hard, but I’m trying to see if I can set-up a
> network gateway with one of the old’ish servers I have here. It was running
> OBSD just fine for a looong time but has only one network interface.
> 
> It does have few extra USB ports, ta-da...
> Anyway, what USB network interface would you recommend that would run
> smoothly with the OBSD 6.3?

Another possibility is if you don't need the full link speed, you can
use a managed switch and set up 802.1Q.

Make the ports at both ends trunk ports and multiplex as many Ethernet
segments as you like.

I use this approach with a TS-7670 industrial PC which has only one
100Mbps Ethernet interface to have it route between a DMZ and a
management network, and of course, indirectly two of my OpenBSD-based
virtual machines do this (with the Linux host doing the 802.1Q stuff).
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: USB Ethernet adapter

2018-09-25 Thread Bogdan Kulbida
Thank you for your help. Much appreciated.

On Tue, Sep 25, 2018 at 03:35 Stephane HUC "PengouinBSD" <
b...@stephane-huc.net> wrote:

> Hi, Bogdan
>
> I'm using every day, the Wii USB Lan Ethernet Adapter RVL-015; it's
> managed by axe driver:
>
> $ dmesg | grep axe
>
> axe0 at uhub0 port 1 configuration 1 interface 0 "ASIX Electronics
> AX88772" rev 2.00/0.01 addr 2
> axe0: AX88772, address 00:**:**:**:**:**
> ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI
> 0x000ec6, model 0x0001
>
> see https://man.openbsd.org/OpenBSD-current/man4/axe.4
>
> I maintain a webpage information about USB-Eth Adaptateur (in French),
> here: https://wiki.obsd4a.net/hardware:network:usb_eth ;)
>
>
> Le 09/25/18 à 02:00, Bogdan Kulbida a écrit :
> (...)
> > Anyway, what USB network interface would you recommend that would run
> > smoothly with the OBSD 6.3?
> > (...)
> --
> ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<
> 
> Stephane HUC as PengouinBSD or CIOTBSD
> b...@stephane-huc.net
>
> --
---
Best regards,
Bogdan Kulbida
Founder and CEO, Konstankino LLC 
+1.802.793.8295


Re: USB Ethernet adapter

2018-09-25 Thread Stephane HUC "PengouinBSD"
Hi, Bogdan

I'm using every day, the Wii USB Lan Ethernet Adapter RVL-015; it's
managed by axe driver:

$ dmesg | grep axe

axe0 at uhub0 port 1 configuration 1 interface 0 "ASIX Electronics
AX88772" rev 2.00/0.01 addr 2
axe0: AX88772, address 00:**:**:**:**:**
ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI
0x000ec6, model 0x0001

see https://man.openbsd.org/OpenBSD-current/man4/axe.4

I maintain a webpage information about USB-Eth Adaptateur (in French),
here: https://wiki.obsd4a.net/hardware:network:usb_eth ;)


Le 09/25/18 à 02:00, Bogdan Kulbida a écrit :
(...)
> Anyway, what USB network interface would you recommend that would run
> smoothly with the OBSD 6.3?
> (...)
-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinBSD or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: USB Ethernet adapter

2018-09-25 Thread Marcus MERIGHI
i...@konstankino.com (Bogdan Kulbida), 2018.09.25 (Tue) 02:00 (CEST):
> It does have few extra USB ports, ta-da...
> Anyway, what USB network interface would you recommend that would run
> smoothly with the OBSD 6.3?

Works for years already, not a single hickup that I know of:

axe0 at uhub0 port 4 configuration 1 interface 0 "ASIX Electronics
AX88772A" rev 2.00/0.01 addr 2

If I enter "AX88772A" at my favourit hardware page I get, e.g.:
"Digitus DN-10050-1, RJ-45, USB-A 2.0"

Marcus



USB Ethernet adapter

2018-09-24 Thread Bogdan Kulbida
Dear Community,

Please don’t judge that hard, but I’m trying to see if I can set-up a
network gateway with one of the old’ish servers I have here. It was running
OBSD just fine for a looong time but has only one network interface.

It does have few extra USB ports, ta-da...
Anyway, what USB network interface would you recommend that would run
smoothly with the OBSD 6.3?

Much appreciated all your efforts.

Thank you.
-- 
---
Best regards,
Bogdan Kulbida
Founder and CEO, Konstankino LLC 
+1.802.793.8295


USB ethernet adapter: ure0: usb errors on rx: IOERROR

2018-08-04 Thread Maximilian Pichler
On my machine the Rankie USB ethernet adapter sometimes stops working,
usually after a period of inactivity. The following messages appear in
the log:

ure0: usb errors on rx: IOERROR
uhid0 detached
uhidev0 detached
ugen0 detached
sd1 detached
scsibus2 detached
umass0 detached
sd2 detached
scsibus3 detached
umass1 detached
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ukbd0 detached
uhidev1 detached
wsmouse1 detached
ums0 detached
uhid1 detached
uhid2 detached
uhid3 detached
uhid4 detached
uhidev2 detached
wskbd2: disconnecting from wsdisplay0
wskbd2 detached
ukbd1 detached
uhidev3 detached
wsmouse2 detached
ums1 detached
uhid5 detached
uhid6 detached
uhid7 detached
uhidev4 detached
uhid8 detached
uhid9 detached
uhid10 detached
uhid11 detached
uhidev5 detached
uhub2 detached
rgephy0 detached
ure0 detached
ucom0 detached
uticom0 detached
uhub1 detached
uhub1 at uhub0 port 1 configuration 1 interface 0 "Texas Instruments
product 0x8142" rev 2.10/1.00 addr 2
uhidev0 at uhub1 port 1 configuration 1 interface 1 "Texas Instruments
Inc. Texas Instruments USB Billboard Device" rev 2.01/1.00 addr 3
uhidev0: iclass 3/0
uhid0 at uhidev0: input=64, output=64, feature=2
ugen0 at uhub1 port 1 configuration 1 "Texas Instruments Inc. Texas
Instruments USB Billboard Device" rev 2.01/1.00 addr 3
uhub2 at uhub1 port 2 configuration 1 interface 0 "Generic 4-Port USB
2.0 Hub" rev 2.10/1.21 addr 4
umass0 at uhub2 port 1 configuration 1 interface 0 "Sony MRW-S1" rev
2.10/0.04 addr 5
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0:  SCSI4 0/direct
removable serial.054c0c5d0004
sd1: 29520MB, 512 bytes/sector, 60456960 sectors
umass1 at uhub2 port 2 configuration 1 interface 0 "Seagate Expansion"
rev 2.10/0.00 addr 6
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
xhci0: wrong trb index (-51337728) max is 255
xhci0: wrong trb index (-51337728) max is 255
xhci0: wrong trb index (-51337728) max is 255
xhci0: wrong trb index (-51337728) max is 255
xhci0: wrong trb index (-51337728) max is 255
xhci0: wrong trb index (-51337728) max is 255
WARNING !wm_changed failed at /usr/src/sys/dev/pci/drm/i915/intel_pm.c:3609
WARNING !wm_changed failed at /usr/src/sys/dev/pci/drm/i915/intel_pm.c:3609

This is the adapter:
(https://www.amazon.com/Rankie-Network-Adapter-Gigabit-White/dp/B01N3K0N43
It is attached to the monitor, which serves as a USB hub. There is
another USB hub with a hard disk, an SD card, reader, keyboard and
mouse attached to it.

What might cause this? Is there a way to get more details than just "IOERROR"?

Thanks


Full dmesg:

OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17037766656 (16248MB)
avail mem = 16514322432 (15749MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xeb350 (31 entries)
bios0: vendor American Megatrends Inc. version "UX390UAK.312" date 04/25/2017
bios0: ASUSTeK COMPUTER INC. UX390UAK
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT ECDT MCFG FIDT SSDT MSDM SSDT HPET
UEFI SSDT LPIT WSMT SSDT SSDT DBGP DBG2 BGRT DMAR TPM2
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2594.97 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 23MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2593.92 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2593.92 MH

Re: add support for usb ethernet adapter

2011-06-17 Thread Luiz Gustavo S. Costa
Thanks David.

diff -r 18f25adaa9dd dev/usb/if_udav.c
--- a/dev/usb/if_udav.c Fri Jun 17 10:39:30 2011 -0300
+++ b/dev/usb/if_udav.c Fri Jun 17 10:43:51 2011 -0300
@@ -167,7 +167,8 @@
{{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0 },
{{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ZT6688 }, 0 },
{{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515 }, 0 },
-   {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 }
+   {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 },
+   {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_JP1082 }, 0 }
 };
 #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p))

diff -r 18f25adaa9dd dev/usb/usbdevs
--- a/dev/usb/usbdevs   Fri Jun 17 10:39:30 2011 -0300
+++ b/dev/usb/usbdevs   Fri Jun 17 10:43:51 2011 -0300
@@ -3744,6 +3744,7 @@

 /* Unknown vendor 4 */
 product UNKNOWN4 DM96010x8101 DM9601
+product UNKNOWN4 JP1082 0x9700 JP1082

 /* Unknown vendor 5 */
 product UNKNOWN5 NF_RIC0x0001  NF RIC
diff -r 18f25adaa9dd dev/usb/usbdevs.h
--- a/dev/usb/usbdevs.h Fri Jun 17 10:39:30 2011 -0300
+++ b/dev/usb/usbdevs.h Fri Jun 17 10:43:51 2011 -0300
@@ -3751,6 +3751,7 @@

 /* Unknown vendor 4 */
 #defineUSB_PRODUCT_UNKNOWN4_DM9601 0x8101  /* DM9601 */
+#define USB_PRODUCT_UNKNOWN4_JP1082 0x9700  /* DM9601 */

 /* Unknown vendor 5 */
 #defineUSB_PRODUCT_UNKNOWN5_NF_RIC 0x0001  /* NF RIC */



2011/6/17 David Coppa :
> On Fri, Jun 17, 2011 at 3:57 PM, Luiz Gustavo S. Costa
>  wrote:
>
>> [demime 1.01d removed an attachment of type text/x-patch which had a name
of udav-9700.diff]
>
> misc@ strips attachments: re-send your patch inline, please.
>
> Ciao,
> David
>



--
  /\ Luiz Gustavo S. Costa
 /  \Programmer at BSD Perimeter
/\ /\/\/\Visit the pfSense Project
/  \\ \   http://www.pfsense.org
-
BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv)
Contatos: luizgust...@luizgustavo.pro.br / lgco...@pfsense.org
Blog: http://www.luizgustavo.pro.br



Re: add support for usb ethernet adapter

2011-06-17 Thread David Coppa
On Fri, Jun 17, 2011 at 3:57 PM, Luiz Gustavo S. Costa
 wrote:

> [demime 1.01d removed an attachment of type text/x-patch which had a name of 
> udav-9700.diff]

misc@ strips attachments: re-send your patch inline, please.

Ciao,
David



add support for usb ethernet adapter

2011-06-17 Thread Luiz Gustavo S. Costa
Hi list,

I created a diff to add support to the adapter listed in the link below:

http://www.luizgustavo.pro.br/~lgcosta/jp1080/

Resume:
udav: vendor 0x0fe6, product: 0x9700

If someone can test it on other platforms.

i386 and amd64 functioning normally

thanks

--
  /\ Luiz Gustavo S. Costa
 /  \Programmer at BSD Perimeter
/\ /\/\/\Visit the pfSense Project
/  \\ \   http://www.pfsense.org
-
BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv)
Contatos: luizgust...@luizgustavo.pro.br / lgco...@pfsense.org
Blog: http://www.luizgustavo.pro.br

[demime 1.01d removed an attachment of type text/x-patch which had a name of 
udav-9700.diff]