Adding USB network adapter (was: OpenWrt 18.06.1 on Raspberry Pi 3 Model B Rev 1.2)

Hi,

i have installed a usb to ethernet adaptor on my raspberry with OpenWrt for configure one more interface but OpenWrt didn't recongnize it.

Can you help me?
I tried to install drivers for usb but the problem persist.
Here some dubugging command that i have tried:

root@OpenWrt:~# lsusb

Bus 001 Device 005: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:~# lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 2: Dev 5, If 1, Class=CDC Data, Driver=, 480M
|__ Port 2: Dev 5, If 0, Class=Communications, Driver=, 480M
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr B8:27:EB:AF:35:20
inet addr:192.168.178.144 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fdf7:3d51:e847::1/60 Scope:Global
inet6 addr: fe80::ba27:ebff:feaf:3520/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104901 errors:0 dropped:0 overruns:0 frame:0
TX packets:32882 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32749525 (31.2 MiB) TX bytes:9622867 (9.1 MiB)

eth0 Link encap:Ethernet HWaddr B8:27:EB:AF:35:20
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:103468 errors:0 dropped:0 overruns:0 frame:0
TX packets:32799 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32698271 (31.1 MiB) TX bytes:9102070 (8.6 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2097 errors:0 dropped:0 overruns:0 frame:0
TX packets:2097 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:205451 (200.6 KiB) TX bytes:205451 (200.6 KiB)

wlan0 Link encap:Ethernet HWaddr B8:27:EB:FA:60:75
inet6 addr: fe80::ba27:ebff:fefa:6075/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3617 errors:0 dropped:0 overruns:0 frame:0
TX packets:6915 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:376872 (368.0 KiB) TX bytes:2798868 (2.6 MiB)

root@OpenWrt:~# dmesg
[ 144.473173] usb 1-1.2: USB disconnect, device number 4
[ 146.562510] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[ 146.694304] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8153
[ 146.703622] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 146.713345] usb 1-1.2: Product: USB 10/100/1000 LAN
[ 146.720481] usb 1-1.2: Manufacturer: Realtek
[ 146.726945] usb 1-1.2: SerialNumber: 000001

Thank you in advanced

Which drivers? What does lsmod show for USB Ethernet drivers?

I see drivers for an 8150 and 8152 in the package table, but didn't immediately see one for the 8153 (this doesn't mean that it isn't supported by one of those two).

1 Like

here the output:

root@OpenWrt:~# lsmod
brcmfmac              156584  0
brcmutil                4736  1 brcmfmac
cdc_ether               4608  1 rndis_host
cfg80211              211792  1 brcmfmac
compat                  4864  2 brcmfmac,cfg80211
crc_ccitt               1152  1 ppp_async
dwc2                   98048  0
ehci_hcd               34828  1 ehci_platform
ehci_platform           4736  0
evdev                  10752  0
fat                    44088  1 vfat
hid                    84504  2 usbhid,hid_generic
hid_generic              896  0
ip_tables               9828  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables              9496  2 ip6table_mangle,ip6table_filter
ip6t_REJECT             1152  2
ip6table_filter          896  1
ip6table_mangle         1152  0
ipt_MASQUERADE           896  1
ipt_REJECT              1024  2
iptable_filter          1024  1
iptable_mangle          1152  0
iptable_nat             1152  1
libcomposite           27408  1 usb_f_ecm
mcs7830                 4608  0
nf_conntrack           58948  9 nf_conntrack_ipv6,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_conntrack_rtcache
nf_conntrack_ipv4       5888  9
nf_conntrack_ipv6       6144  4
nf_conntrack_rtcache    2688  0
nf_defrag_ipv4          1024  1 nf_conntrack_ipv4
nf_defrag_ipv6         21384  1 nf_conntrack_ipv6
nf_log_common           2560  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3328  0
nf_log_ipv6             3328  0
nf_nat                  9738  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3586  1 iptable_nat
nf_nat_masquerade_ipv4    1540  1 ipt_MASQUERADE
nf_nat_redirect         1024  1 xt_REDIRECT
nf_reject_ipv4          2048  1 ipt_REJECT
nf_reject_ipv6          2304  1 ip6t_REJECT
nls_cp437               5632  1
nls_iso8859_1           4096  1
nls_utf8                1024  0
ppp_async               6532  0
ppp_generic            21664  3 pppoe,ppp_async,pppox
pppoe                   8448  2
pppox                   1440  1 pppoe
rndis_host              4992  0
slhc                    4096  1 ppp_generic
snd                    43320  8 snd_compress,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
snd_compress            6912  0
snd_hwdep               4872  0
snd_mixer_oss          12672  1 snd_pcm_oss
snd_pcm                59536  2 snd_pcm_dmaengine,snd_pcm_oss
snd_pcm_dmaengine       2432  0
snd_pcm_oss            31008  0
snd_rawmidi            15264  0
snd_seq_device          2440  1 snd_rawmidi
snd_timer              15416  1 snd_pcm
soundcore               3984  1 snd
u_ether                 8064  1 usb_f_ecm
udc_core                8584  4 usb_f_ecm,u_ether,libcomposite,dwc2
usb_f_ecm               4864  0
usbhid                 22824  0
vfat                    7424  1
x_tables               11784 23 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xhci_hcd               81680  1 xhci_plat_hcd
xhci_plat_hcd           5376  0
xt_CT                   2816  0
xt_LOG                  1024  0
xt_REDIRECT              896  0
xt_TCPMSS               2688  0
xt_comment               768107
xt_conntrack            2304 12
xt_limit                1284 20
xt_mac                   896  0
xt_mark                  896  0
xt_multiport            1408  0
xt_nat                  1536  0
xt_state                 896  0
xt_tcpudp               2048  8
xt_time                 1664  0
1 Like

I suspect that installing package for the 8152 (kmod-usb-net-rtl8152) may resolve things for you. I don't see any USB Ethernet drivers there, but then again, my coffee hasn't kicked in...

3 Likes

I have installed kmod-usb-net-rtl8152 and now the interface is working fine!
Thank you very much jeff!!

3 Likes

@Chuck8 If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.