Hello,
Im quite new to this world of openwrt and linux in general.
The past week ive atleast learned how to make my own firmware with imagebuilder and some troubleshooting etc.
Im an IT guy since 20years but always ran windows and a basic homerouter, usually with asuswrt merlin or whatever.
But now i decided its time to enter the dark zone
I got myself 2x 2.5Gbit USB->ethernet, both use realtek 8156 drivers from what ive gathered.
I took the chance to see if kmod-usb-net-rtl8152 might work, and im trying to make it work, i just got them today.
- x86_64 custom firmware with kmod-usb-net-rtl8152 embedded
- The hardware has 2x 2.0 USB and 2x 3.0 USB
- Qotom Q570G6 mini-PC hardware
I made my firmware from an imagebuilder (19.07.3 stable x86_64) with the following included:
wireguard luci-app-wireguard vpn-policy-routing luci-app-vpn-policy-routing kmod-usb-net-rtl8152 hostapd ath10k-firmware-qca988x kmod-ath10k dnsmasq-full luci-app-openvpn openvpn-openssl openssl-util wget luci-app-sqm wget luci-ssl luci-app-statistics collectd-mod-wireless collectd-mod-thermal collectd-mod-sensors nano ca-certificates"
I got it all setup, until today when i got these USB>Ethernet devices.
- On My windows PC connected to my router with the USB->Ethernet connected in both ends, windows says its 2.5Gbit
- lsusb shows
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:8156 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- lsusb -t shows
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 1: Dev 2, If 0, Class=Communications, Driver=, 5000M
|__ Port 1: Dev 2, If 1, Class=CDC Data, Driver=, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
- lsmod show a bunch of things, but whats interesting i think(?) is
r8152 45056 0
- cat /sys/kernel/debug/usb/devices lists
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 3
P: Vendor=0bda ProdID=8156 Rev=30.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1G/2.5G LAN
S: SerialNumber=000000001
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=512mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=128ms
C:* #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=512mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=(none)
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
C: #Ifs= 2 Cfg#= 3 Atr=a0 MxPwr=512mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
- It finds the devices as "Realtek 10/100/1G/2.5G LAN"
- dmesg | grep usb shows
[ 0.921204] usbcore: registered new interface driver usbfs
[ 0.921216] usbcore: registered new interface driver hub
[ 0.932458] usbcore: registered new device driver usb
[ 2.130045] usbcore: registered new interface driver usb-storage
[ 3.313509] usbcore: registered new interface driver usbhid
[ 3.313510] usbhid: USB HID core driver
[ 3.475833] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 9.794723] usbcore: registered new interface driver r8152
Im not sure how to proceed? Any help would be most helpful, remember im a linux newbie, but can use google i guess.
EDIT: Sorry i guess i didnt really ask a question.
The problem is that the adapter doesnt show up in ifconfig -a for example, i cant choose it, openwrt doesnt find it
Thank you all