Support for rtl8821CU wifi driver

Tried, doesn’t work.

Can you post a dmesg please?

dmesg | grep usb
[ 0.271727@0] usbcore: registered new interface driver usbfs
[ 0.271815@0] usbcore: registered new interface driver hub
[ 0.271920@0] usbcore: registered new device driver usb
[ 0.335615@1] usbcore: registered new interface driver smsc95xx
[ 0.336497@1] usbcore: registered new interface driver usb-storage
[ 0.336699@1] usbcore: registered new interface driver usbserial
[ 0.336785@1] usbcore: registered new interface driver usbserial_generic
[ 0.336865@1] usbserial: USB Serial support registered for generic
[ 0.336945@1] usbcore: registered new interface driver pl2303
[ 0.337018@1] usbserial: USB Serial support registered for pl2303
[ 0.337477@1] amlogic-new-usb2 d0078000.usb2phy: USB2 phy probe:phy_mem:0xd0078000, iomap phy_base:0xffffff8000388000
[ 0.337644@1] amlogic-new-usb3 d0078080.usb3phy: This phy has no usb port
[ 0.337671@1] amlogic-new-usb3 d0078080.usb3phy: USB3 phy probe:phy_mem:0xd0078080, iomap phy_base:0xffffff800038a080
[ 0.342338@1] usbcore: registered new interface driver usbhid
[ 0.342348@1] usbhid: USB HID core driver
[ 1.987853@2] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.987860@2] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.987866@2] usb usb1: Product: xHCI Host Controller
[ 1.987872@2] usb usb1: Manufacturer: Linux 3.14.29 xhci-hcd
[ 1.987877@2] usb usb1: SerialNumber: xhci-hcd.0.auto
[ 1.988786@1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.988794@1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.988800@1] usb usb2: Product: xHCI Host Controller
[ 1.988806@1] usb usb2: Manufacturer: Linux 3.14.29 xhci-hcd
[ 1.988811@1] usb usb2: SerialNumber: xhci-hcd.0.auto
[ 2.261042@3] dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: d0078000, ctrl: 0
[ 2.261054@3] dwc_otg_driver_probe host only, not probe usb_otg!!!
[ 2.308124@2] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2.449352@2] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 2.449363@2] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.449368@2] usb 1-1: Product: USB2.0 Hub
[ 2.618108@3] usb 1-2: new high-speed USB device number 3 using xhci-hcd
[ 2.768388@3] usb 1-2: New USB device found, idVendor=0bda, idProduct=c811
[ 2.768399@3] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.768404@3] usb 1-2: Product: 802.11ac NIC
[ 2.768409@3] usb 1-2: Manufacturer: Realtek
[ 2.768413@3] usb 1-2: SerialNumber: 123456

Full dmesg

@smp
New here but looks like this thread might solve my problem !

I got S905 boxes like x96mini and nexbox/mxq pro oem/clones which I believe can only run 3.14 kernel?
If this is true then my issue is that the SSV 6051P Wifi chipset works fine in station mode but not in AP mode. Is it possible to fix the driver in a nightly?

(I didn’t want to open another thread and lose context. But since Kodi 18.x is now very stable and this forum is about generic S905 support, maybe additional WiFi chip support should be added? SSV 6051P is a cheapo that unluckily is used in many S905 boxes; however the rtl8723 wifi chipset seems OK with AP mode with CE 9.0.)

I can confirm that @smp build works properly with both 9082xs (builtin) and RTL8811CU (usb) wireless adaptors in my Mecool M8S Pro+.

Many thanks for your wonderful job!

2 Likes

I don’t see the driver being started at all, though. I’m not sure what the problem is.
Can you try the following on your build and then on mine?

  1. Unplug the wifi from the box and reboot it
  2. Run dmesg -c
  3. Plug the wifi adapter back
  4. Run dmesg | paste
  5. Post the link to the dmesg here

My build
Your build

In my build I added “RTL8821CU” to “ADDITIONAL_DRIVERS=” in projects/Amlogic/options. Maybe this is the problem?

2 Likes

Possibly, I’ll look.
Thanks.

Edit: The package should be included, as it’s added to ADDITIONAL_DRIVERS in distributions/CoreELEC/options

I also included it in distributions/CoreELEC/options. However, if I remove it from projects/Amlogic/options - the package gets excluded from the build. I think it must be included in projects/Amlogic/options.

Edit: I just tested, it makes no difference if it is included in distributions/CoreELEC/options. It should be included in projects/Amlogic/options, otherwise it is not included in the build.

You’re right I found it too. Anyway, looks like the version of the driver we used isn’t going to cut it for 3.14.
I think we’ll need to add the one you are using instead.

@TheCoolest, @smp

Is the new driver now in the nightlies?
Any hope for including one for ssv6051p too?
Happy long weekend !

It should be. I think @anon88919003 has pushed smp’s version into our repo.

Great. So the rtl8821 CU fix is in 9.0.3 now.

Hopefully “someone” can look at the SSV 6051P issue with lack of WiFi AP activation- maybe just some configuration not necessarily a driver recompile?

If a box etc need be purchased I would be happy to make a small donation. :stuck_out_tongue_winking_eye: Don’t know how to pm- too new account?

Hi,

I’m having an error with my rtl8821cu which was working as it should with last CE 9.0.3.

Today it started to fail, it seems not being recognized by the system, so no networks are shown at all.

Can it be a hardware failure of my dongle?

dmesg.txt (71.9 KB)

Hi,
I’m running an older version, 8.2, with an S905W box. I’ve modified it quite a bit, was wondering if there’s an easy way to inject this module without having to build it from source? I’ve tried adding it to /usr/lib/modules/3.14.29/ but it doesn’t seem to load. Is there more to it?

Thank you!

Upgrade and it will work out of the box :slight_smile:

I would, but I have a particular add-on that loves to crash Kodi :blush: which is okay because LE 8.2 restarts very quickly. But when CE crashes, it takes a good 30 to 60 seconds to restart… is there any way to change that? If so upgrading would be fine. I know the obvious bit is to fix the add-on but I’ve tried everything :man_shrugging:

Which addon?

Plex-for-Kodi. It can be replicated by searching for a movie / tv show, selecting it, returning to the main menu then either exiting the app or selecting something from the home screen. In my experience, on S905, S912 and S905X2 using CoreELEC or LibreELEC, it will 100% crash :frowning: