RTL8156 USB Ethernet Adapter not Recognized in OpenWRT

Hello everyone,

I'm having trouble getting my RTL8156 USB Ethernet adapter to work with OpenWRT. I've installed the kmod-usb-net-r8152 package, and lsmod shows that the r8152 module is loaded. However, when I run ifconfig -a or ip addr, the adapter does not appear in the list of interfaces.

Is there something specific I should check or do to get the RTL8156 adapter recognized? Are there additional drivers or configurations I might need to apply? Any guidance or suggestions would be greatly appreciated.

Thank you!

Show lsusb
And if possible check what kmod fedora or ubuntu luads

Openwrt won't auto add it, you need to add a new interface.

1 Like

It is not an interface: it is a device.

Look in LuCI Network/Interfaces->devices.

If it isnot there we need to find the correct drivers.

Interfaces:

Devices:

1 Like

Hey brada,

this is the output of lsusb:

Bus 001 Device 004: ID 1532:007a Razer USA, Ltd
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 005: ID 1532:0228 Razer USA, Ltd
Bus 001 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit 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

lsmod | grep r8152:

r8152                  28288  0

thanks for your fast reaply.

Hey RedDog,
Unfortunately, my Ethernet adapter doesn't appear there, and I don't have a Devices tab.

and it won't be, until you add it yourself, you've already been told this once.

Hey frollic,
I have tried it, but it dosen't appear in the "add new interface":

thanks for your reaply!

pull the USB ethernet device, run logread -f via ssh, see what the log says once you plug it back in.

this is the output:

Mon Jun 24 20:03:51 2024 kern.info kernel: [  173.961514] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.103409] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=8153
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.121304] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.139534] usb 1-1.4: Product: USB 10/100/1000 LAN
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.155280] usb 1-1.4: Manufacturer: Realtek
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.170316] usb 1-1.4: SerialNumber: 001000000
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.281538] usb 1-1.4: reset high-speed USB device number 6 using dwc_otg
Mon Jun 24 20:03:51 2024 kern.info kernel: [  174.422917] r8152 1-1.4:1.0 (unnamed net_device) (uninitialized): Unknown version 0x6010
Mon Jun 24 20:03:51 2024 kern.err kernel: [  174.441829] r8152 1-1.4:1.0 (unnamed net_device) (uninitialized): Unknown Device

You do not have this tab?
dh

Inexplicable...

What version of OpenWrt is the user running?

@Appeltree,

What is the output of

ubus call system board

1 Like

I was saying I cannot explaine that.

Did it read different?

The explanation may be the OP is running an old version of OpenWrt (i.e. that didn't have the "Devices" tab). That's why I inquired what version of OpenWrt the user is running.

1 Like

Hey lleachii,
this is the output of ubus call system board

{
        "kernel": "4.9.184",
        "hostname": "OpenWrt",
        "model": "Raspberry Pi 3 Model B Rev 1.2",
        "board_name": "raspberrypi,3-model-b",
        "release": {
                "distribution": "OpenWrt",
                "version": "18.06.4",
                "revision": "r7808-ef686b7292",
                "target": "brcm2708\/bcm2710",
                "description": "OpenWrt 18.06.4 r7808-ef686b7292"
        }
}
1 Like

Great call!

1 Like

So. @lleachii has found the sabo in the cog: the version you are running is EOL and Few of us even know how to config it.

Luckily, you can keep your current setup and learn the most current OpenWrt on a different sd card.
If you have issues, you can pop the old sd card back in and post issues you may have configuring the latest version.

Thanks for the suggestion.

I have now installed the latest version, but I'm encountering a new issue. I am unable to open the web interface and connect via SSH as I could before.

Additionally, I cannot ping anything from my Raspberry Pi except for 192.168.1.1.

Yes the problem here is that you have a version of the chip that did not exist back in '18 when the driver was written. Upgrading the driver requires replacing the whole OS with a new version, which you did.

But do not attempt to save settings on a major upgrade. You can export the settings from the old version for reference but don't try to use the files as-is on a new version.

Use the 23.05.3 version not snapshot.

2 Likes