Driver Realtek RTL8156B

jentoso
Posts: 5
youtube meble na wymiar Warszawa
Joined: Fri Aug 20, 2021 1:25 pm
Location: Russian

Driver Realtek RTL8156B

Post by jentoso »

Hello.
You can ask you to build a driver for the Asus USB-C2500 on the Realtek RTL8156B chip (https://dlcdnets.asus.com/pub/ASUS/wire ... _C2500.zip)?
I read your post about building the driver for CH34x (viewtopic.php?f=240&t=11533) and bypassing the kernel version with "x" (viewtopic.php?f=27&t=11287&p=36632&hilit=uname#p36632), but my experience is not enough for this.
Thank you.
Last edited by jentoso on Mon Aug 30, 2021 3:23 am, edited 1 time in total.
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Relatek RTL8156B

Post by father.mande »

Hi,

In ADM 3.x or 4.x r8152.ko (r8152 is the name you retrieve in linux.zip in the file your URL target) is provide in /lib/modules/[kernel_version]/r8152.ko

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
jentoso
Posts: 5
Joined: Fri Aug 20, 2021 1:25 pm
Location: Russian

Re: Driver Realtek RTL8156B

Post by jentoso »

father.mande wrote:Hi,

In ADM 3.x or 4.x r8152.ko (r8152 is the name you retrieve in linux.zip in the file your URL target) is provide in /lib/modules/[kernel_version]/r8152.ko

Philippe.
The driver is present, but for some reason ASUS USB-C2500 is not detected. Another device with RTL8156 chip is working correctly.
Last edited by jentoso on Mon Aug 30, 2021 3:24 am, edited 1 time in total.
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Relatek RTL8156B

Post by father.mande »

Hi,

I have only few free time ... so I can't be sure to have time to verify (basic loading) if I generate the module.

Perhaps, the problem is that the ID of the device is not recognized (id include vendor / device class ... )
to check do a lsusb (usb wifi connected ) to be able to verify if id is known by the module.

also check system log (dmesg command) just after plugging your device.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
jentoso
Posts: 5
Joined: Fri Aug 20, 2021 1:25 pm
Location: Russian

Re: Driver Realtek RTL8156B

Post by jentoso »

lsusb

Code: Select all

Bus 002 Device 005: ID 0b05:1976 ASUSTek Computer, Inc.:unknown device 1976
dmesg

Code: Select all

[88049.811655] usb 2-3: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[88049.831363] usb 2-3: New USB device found, idVendor=0b05, idProduct=1976, bcdDevice=31.05
[88049.839837] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[88049.847221] usb 2-3: Product: USB 10/100/1G/2.5G LAN
[88049.852419] usb 2-3: Manufacturer: Realtek
[88049.856693] usb 2-3: SerialNumber: 501000001
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Realtek RTL8156B

Post by father.mande »

Hi,

Device is not known by usb.ids list in ADM ?

... be sure to load module BEFORE plugin the usb wifi, verify using lsmod | grep r8152

... do you know if your usb wifi is in the Asustor compatibility list (if not you habe to require to add it from the support) ... if it is not, not sure, even kernel identify your wifi usb... that ADM was able to use it ???
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
jentoso
Posts: 5
Joined: Fri Aug 20, 2021 1:25 pm
Location: Russian

Re: Driver Realtek RTL8156B

Post by jentoso »

father.mande wrote:Hi,

Device is not known by usb.ids list in ADM ?

... be sure to load module BEFORE plugin the usb wifi, verify using lsmod | grep r8152

... do you know if your usb wifi is in the Asustor compatibility list (if not you habe to require to add it from the support) ... if it is not, not sure, even kernel identify your wifi usb... that ADM was able to use it ???
Philippe.
ASUS USB-C2500 lacks compatibility, but it's the same ASUSTOR AS-U2.5G2.
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Realtek RTL8156B

Post by father.mande »

Hi,

Ask the support ... perhaps device id are different EVEN same chip, so not recognized by A.D.M. ???
the "normal" usage is ... connect usb key, ADM recognize the model and load the module r8152 ... so kernel identify and use the device.

If you generate your own module, you must also manage to load it in place of the existing module ... but this is cleared at boot ... so it's a little more complex and require to know dependency if needed.
if I get the info for the module r8152 provide by Asustor ... the list of compatible USB (vendor / device) don't contains 0B05/1976 (in ADM 4.x but I think same in ADM 3.x)

Code: Select all

filename:       r8152.ko
author:         Realtek nic sw <nic_swsd@realtek.com>
description:    Realtek RTL8152/RTL8153 Based USB Ethernet Adapters
license:        GPL
version:        v2.13.0 (2020/04/20)
alias:          usb:v13B1p0041d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v13B1p0041d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v13B1p0041d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0955p09FFd*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0955p09FFd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0955p09FFd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v2357p0601d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v2357p0601d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v2357p0601d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFpA387d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFpA387d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFpA387d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFpA359d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFpA359d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFpA359d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp721Ed*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp721Ed*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp721Ed*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7214d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp7214d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7214d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp720Bd*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp720Bd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp720Bd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp720Ad*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp720Ad*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp720Ad*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7205d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp7205d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7205d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3082d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3082d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3082d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3069d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3069d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3069d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3062d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3062d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3062d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3057d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3057d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3057d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3054d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3054d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3054d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3052d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp3052d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3052d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v04E8pA101d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v04E8pA101d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v04E8pA101d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8156d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0BDAp8156d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8156d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8155d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0BDAp8155d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8155d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*ic02isc0Dip00in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*icFFisc*ip*in*
srcversion:     B118870984E2E7F4366524E
depends:
vermagic:       5.4.x SMP mod_unload modversions
I am not sure to be able to generate the module before one or two weeks (I am in travel) ... but Asustor support (open a ticket) can do it and add in the compatibility list.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Realtek RTL8156B

Post by father.mande »

Hi,

complement to my previous message ...

after verification, the module (original from 4.14 and provide by Asustor) don't have the vendor/device for your model ...

But the source of the module (get via your URL) have it ... ask Asustor ... or wait for somebody able (before me in one or two week) to provide you a running module and some help to permit to ADM to use it.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Driver Realtek RTL8156B

Post by father.mande »

Hi,

Few minutes before leaving, I have compiled the version of r8152 with the USB ID corresponding to your USB WiFi key (in fact only Asus C2500 seem to be configured ? )
EDIT "others stick with same chip are configured but not listed as Alias ... list of VENDOR_ID and model are in the r8152.c"

Code: Select all

modinfo r8152.ko
filename:       r8152.ko
description:    ASUS USB-C2500
author:         Realtek nic sw <nic_swsd@realtek.com>
license:        GPL
vermagic:       4.14.x SMP mod_unload modversions
depends:
... extract tar in some share
... load it using insmod (tested on AS5202T with ADM 3.5 ... ) NOTHING SURE that this work ... just basic, basic test ...
... look at dmesg ...

THIS can't solve some points :
... how ADM was able to use it (if you don't configure yourself manually) perhaps it is not auto-define in ADM ... ?
... how reload it after a reboot
... etc.
I have no time to analyse how ADM works with WiFi (for my own I used WiFi bridge on Ethernet) ... but other can help you.

Philippe.
r8152.tar
good file
(1.2 MiB) Downloaded 220 times
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “ADM general”