Support for RTL88x2BU

In May I opened an issue over on GitHub to add the driver for RTL88x2BU.

As per Sam’s request, I’m opening this topic to work toward getting this implemented.

1 Like

Adding a bump for this, would be awesome to have it included in OSMC.

I bought a couple of these https://www.aliexpress.com/item/KEBIDU-1200Mbps-Wireless-WiFi-USB-Adapter-Dual-Band-2-4-5Ghz-with-Aerial-802-11AC-Network/32967936678.html?spm=a2g0s.9042311.0.0.385c4c4dHpBx2j, so I’d also love this !

I am willing to help as I’ve manually compiled the driver on my desktop, pi3 and pi and am very happily using them.

To do so I followed the instructions on : https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959

and to get by the (osmc specific) kernel header issues that came up at compile time
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory
I followed instructions from :
https://discourse.osmc.tv/t/has-anybody-tried-to-install-wireguard/73506/27

Here is what I actually did:

OSMCVERS=$(uname -r)
VANILLAVERS=$(uname -r | sed "s/-.*//")
RBP=rbp2 #valid for pi2 and and pi3... for pi use RBP=rbp1

#Setup build environnment (might install more packages such as gcc, ...)
sudo apt-get install git bc build-essential

#Get kernel headers and kernel source
sudo apt-get install $RBP-headers-$OSMCVERS $RBP-source-$OSMCVERS
  
#Replace osmc faulty kernel headers
wget http://www.mirrorservice.org/pub/linux/kernel/v4.x/linux-$VANILLAVERS.tar.gz        
tar -xvzf linux-$VANILLAVERS.tar.gz
sudo mv /usr/src/$RBP-headers-$OSMCVERS/include/linux /usr/src/$RBP-headers-$OSMCVERS/include/linux_original
sudo cp -ar linux-$VANILLAVERS/include/linux /usr/src/$RBP-headers-$OSMCVERS/include/linux
sudo ln -s /usr/src/$RBP-headers-$OSMCVERS /lib/modules/$OSMCVERS/build

#Get driver
git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git

#Compile driver
cd rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
sed "s/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g" -i Makefile
sed "s/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g" -i Makefile
sudo make
sudo make install
sudo modprobe 88x2bu

When I get a bit of time, I’ll look in to this.
We’re hoping to wind down on out of tree Realtek drivers a bit though.

Sam

Hi, what is the status here?
I have an AC1L/rtl88x2bu from BrosTrend.
They have a website regarding OSMC online:

At least my +1 for the support for rtl88x2bu!
Cheers

Because it’s my first post I have to say thank you so much for OSMC it works and feels great!

The issues they reported were fixed a long time ago in OSMC. You may want to reach out to them for instructions on how to build the driver.

We will launch an officially supported WiFi dongle soon in the near future. This will work out of the box and stay maintained across OSMC updates, so you won’t need to build this module after every kernel update.

1 Like

I’ve reached out and it looks like I would have to use the aarch64-toolchain-osmc and chroot, correct?
They’ve mentioned this thread:

Yes.

I’ll give up because it’s not an easy not well documented task and a soon obsolete problem anyway.
I’m looking forward to your WLAN device!