Usb to ethernet adapter

I have a usb to ethernet adapter attached to my router and it is seen in dmesq:

[2807386.049036] usb 1-5: new high-speed USB device number 2 using ehci-pci
root@APU_orange: ~ $

how do i configure it in Luci to make it availble as an ethernet Interface, please?

If OpenWrt sees is it is in devices.

or you need to install the required packages.
lsusb will help here.

See USB 2.0 to Ethernet Adapter driver for OpenWRT

root@APU_orange: ~ $ lsusb
-ash: lsusb: not found
root@APU_orange: ~ $

also i do not see it in devices
εικόνα

and in the ```
cat /sys/kernel/debug/usb/devices

i have 


root@APU_orange: ~ $ cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:12.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=07a6 ProdID=8515 Rev= 1.01
S: Manufacturer=ADMtek
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=224mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=125us

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:13.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:16.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=058f ProdID=6366 Rev= 1.00
S: Manufacturer=Generic
S: Product=Flash Card Reader/Writer
S: SerialNumber=058F63666485
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ohci_hcd
S: Product=OHCI PCI host controller
S: SerialNumber=0000:00:12.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ohci_hcd
S: Product=OHCI PCI host controller
S: SerialNumber=0000:00:13.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 4
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 5.10
S: Manufacturer=Linux 5.10.146 ohci_hcd
S: Product=OHCI PCI host controller
S: SerialNumber=0000:00:16.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
root@APU_orange: ~ $

Then load all the packages suggested.

which are?
how do i find out which modules do i have to load?

You will need to read the link from @AndrewZ and @frollic will need to help with their suggestion.

@frollic lsusb is not present
@LilRedDog i have seen the thread you mentioned, but i cannot identify which module i have to install

This is your adapter. Just google for these details and at some point you should find that you need exactly the same driver that was mentioned in the old thread.

Edit: Apologies for my negligence. That driver supports a similar(?) device with the same Product Id and Manufacturer name, but different Vendor Id (0x0a46).
I would try manually adding this device to the dm9601 driver and see.

i got it installed and rebooted the router. Unfortunately i do not see any new device available in the Network>interfaces>devices.

I never mentioned it should be there. Please read what I posted in the old thread:

The interface name comes from the log.

@AndrewZ i went through the old thread, but i cannot find what is missing. i installed the kmod-usb-net-dm9601-ether, rebooted the router, but i do not see any new device in my router

logread | grep dm9601

Need to install it, as any other non default binary.

Even though it is installed as in


it is not shown in CLI
εικόνα

:astonished: what should i do then to make it work?

Disconnect the adapter, run logread -f, connect the adapter back, show the output.
Please do not use pictures to show text.

root@APU_orange: ~ $ logread -f
Sun Feb 25 11:26:23 2024 kern.info kernel: [  154.421422] usb 1-5: new high-speed USB device num                                                        ber 3 using ehci-pci
root@APU_orange: ~ $

and @frollic the lsusb shows

root@APU_orange: ~ $ lsusb
Bus 003 Device 002: ID 058f:6366 Generic Flash Card Reader/Writer
Bus 002 Device 001: ID 1d6b:0002 Linux 5.10.146 ehci_hcd EHCI Host Controller
Bus 004 Device 001: ID 1d6b:0001 Linux 5.10.146 ohci_hcd OHCI PCI host controller
Bus 006 Device 001: ID 1d6b:0001 Linux 5.10.146 ohci_hcd OHCI PCI host controller
**Bus 001 Device 003: ID 07a6:8515 ADMtek**
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.146 ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.10.146 ehci_hcd EHCI Host Controller
Bus 005 Device 001: ID 1d6b:0001 Linux 5.10.146 ohci_hcd OHCI PCI host controller
root@APU_orange: ~ $

my usb to ethernet is the highlighted in bold.

Try loading kmod-usb-net-pegasus

Your device is defined in this driver:

#define	VENDOR_ADMTEK	0x07a6
PEGASUS_DEV("ADMtek ADM8515 \"Pegasus II\" USB-2.0 Ethernet",
		VENDOR_ADMTEK, 0x8515,

after installing it, i ended up with a non booting router
:face_exhaling: :face_with_thermometer: