Need to install RTL88x2bu driver (wireless)

Hi all,

I’m running rolling, need to compile and install the RTL88x2bu driver (wireless), I should make it in a podman container, right?

I know podman is already installed, I’m already using one container, followed this thread:
https://www.reddit.com/r/vyos/comments/ti9hxr/analyzing_netflow_with_ntopng_on_vyos/

VyOS sees the wireless adapter, just need the driver for it.

root@vyos:~# dmesg

[    0.000000] Linux version 5.10.108-amd64-vyos (vyos_bld@4e4fcd3d6704) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Wed Mar 23 09:24:20 UTC 2022

[    2.063771] usb 1-2: new high-speed USB device number 3 using xhci_hcd
[    2.191605] usb 1-2: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
[    2.191625] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.191639] usb 1-2: Product: 802.11ac NIC
[    2.191650] usb 1-2: Manufacturer: Realtek
[    2.191660] usb 1-2: SerialNumber: 123456

root@vyos:~# lsusb

Bus 001 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

The drivers that came with the adapter are really old and need compiled, so I think I found the latest drivers here:

The installation commands from the last example on this page look good to me:

Out of curiosity, I tried to set a config description for the wlan0 interface, too get the error message:

vyos@vyos# set interfaces wireless wlan0 description "this"
[edit]
vyos@vyos# commit
[ interfaces wireless wlan0 ]
VyOS had an issue completing a command.

Report time:      2022-03-26 08:29:29
Image version:    VyOS 1.4-rolling-202203240317
Release train:    sagitta

Built by:         autobuild@vyos.net
Built on:         Thu 24 Mar 2022 03:17 UTC
Build UUID:       f3ea29c4-8937-4760-9628-660b251ccd5c
Build commit ID:  58a0abbc8ba732

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:
Hardware model:   J3160-4L
Hardware S/N:     Default string
Hardware UUID:    03000200-0400-0500-0006-000700080009

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 282, in <module>
    generate(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 221, in generate
    with open('/sys/class/ieee80211/{physical_device}/addresses'.format(**wifi), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/ieee80211/phy0/addresses'



[[interfaces wireless wlan0]] failed
Commit failed
[edit]
vyos@vyos#

Not yet sure about how to setup a container for compiling the driver, will be working on this today. I already backed up my vyos config files, so if I blow it up, I can always wipe the drive and do a fresh install.

fyi: vyos is running on this pc:

I removed the built-in pcie wireless card, it was only 802.11n (not ac). I tried replacing it with a pcie 802.11ac card, but the motherboard doesn’t like wireless adapters that also have bluetooth.

I bought this external usb wireless adapter, VyOS sees it, but need the driver:

I think I’m on the right path. I’d appreciate any suggestions.

Thanks for reading.

podman giving me warnings, just trying to list images:

vyos@vyos:~$ podman images
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to login using an user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1002` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to login using an user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1002` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
REPOSITORY  TAG     IMAGE ID  CREATED  SIZE
vyos@vyos:~$

Hesitant to install the debian image with these warnings.

I get the same podman warning on a different computer, running latest debian bullseye.

I think I’ll build this driver on a separate Debian server. Don’t want to screw up my router.