Install RTL88x2BU driver in Reborn Gnome - OPI5

Hi all,

I’ve installed Reborn OS in a Orange PI 5 - Gnome 43.2.

I need to install rtl88x2BU driver to use my USB WiFi dongle.

I found and downloaded

Package Details: rtl88x2bu-dkms-git 5.13.1.r166.3d25a90-1

And after : makepkg -si

I’ve got this error messages:

DKMS make.log for rtl88x2bu-5.13.1.r179.a2ac3b2 for kernel 5.10.110-rockchip-rk3588 (aarch64)
sáb 28 jan 2023 00:47:38 -03
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.110-rockchip-rk3588/build M=/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build  modules
make[1]: Entrando no diretório '/usr/lib/modules/5.10.110-rockchip-rk3588/build'

  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/monitor/rtw_radiotap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/wds/rtw_wds.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_btcoex_wifionly.o
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.c: In function 'rtw_mfree_stainfo':
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.c:391:27: warning: the comparison will always evaluate as 'true' for the address of 'lock' will never be NULL [-Waddress]
error, forbidden warning:rtw_sta_mgt.c:391
  391 |         if (&(psta->lock) != NULL)
      |                           ^~
In file included from /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/include/drv_types.h:112,
                 from /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/include/sta_info.h:267:17: note: 'lock' declared here
  267 |         _lock   lock;
      |                 ^~~~
make[2]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.o] Error 1
make[2]: ** Apagando arquivo '/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_sta_mgt.o'
make[2]: ** Esperando que outros processos terminem.
In function '__nat25_add_pppoe_tag',
    inlined from 'nat25_db_handle' at /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.c:893:11:
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.c:113:9: warning: 'memcpy' reading between 2052 and 9220 bytes from a region of size 40 [-Wstringop-overread]
error, forbidden warning:rtw_br_ext.c:113
  113 |         memcpy((unsigned char *)ph->tag, tag, data_len);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.c: In function 'nat25_db_handle':
/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.c:862:63: note: source object 'tag_buf' of size 40
  862 |                                                 unsigned char tag_buf[40];
      |                                                               ^~~~~~~
make[2]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.o] Error 1
make[2]: ** Apagando arquivo '/var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build/core/rtw_br_ext.o'
make[1]: *** [Makefile:1920: /var/lib/dkms/rtl88x2bu/5.13.1.r179.a2ac3b2/build] Error 2
make[1]: Saindo do diretório '/usr/lib/modules/5.10.110-rockchip-rk3588/build'

make: *** [Makefile:2455: modules] Error 2

What can I do to have this driver installed.

Thanks,

You may need to make some modifications to the source (just the Makefile) before building/packaging…

Reproduced from their GitHub page:

Edit Makefile:

Ln142 - CONFIG_PLATFORM_I386_PC = y to CONFIG_PLATFORM_I386_PC = n

Ln143 - CONFIG_PLATFORM_RPI_ARM = n to CONFIG_PLATFORM_RPI_ARM = y for ARM

or

Ln144 - CONFIG_PLATFORM_RPI_ARM64 = n to CONFIG_PLATFORM_RPI_ARM64 = y for ARM64

Has to be the arm64line can you tell us if that works so I can build the package and add it to the repo

Hi All,

here is no ARM64 or RPI_ARM64 in this makefile.

Or may I include this line??? I think not a good idea.

I simple dont know what to do to have this driver working.

I am used to Ubuntu or Debian, but Arch I am a solely Newbie.

Thanks.

@curyjorge98 Check lines 142 to 205: rtl88x2bu/Makefile at 144932a0a4e1a9631cb7aab10802cf4efc5c5a7b · ivanovborislav/rtl88x2bu · GitHub

Thanks shivanandvp for your hint,

Now I have a fresh install of Reborn OS Gnome.

But I am still having problems when make is executed:

me@gnome-reborn ~/D/rtl88x2bu (main)> make
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.110-rockchip-rk3588/build M=/home/me/Downloads/rtl88x2bu modules
make[1]: Entrando no diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

CC [M] /home/me/Downloads/rtl88x2bu/core/rtw_br_ext.o
In function ‘__nat25_add_pppoe_tag’,
inlined from ‘nat25_db_handle’ at /home/me/Downloads/rtl88x2bu/core/rtw_br_ext.c:1172:11:
/home/me/Downloads/rtl88x2bu/core/rtw_br_ext.c:120:9: warning: ‘memcpy’ reading between 2052 and 9220 bytes from a region of size 40 [-Wstringop-overread]
error, forbidden warning:rtw_br_ext.c:120
120 | memcpy((unsigned char *)ph->tag, tag, data_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/me/Downloads/rtl88x2bu/core/rtw_br_ext.c: In function ‘nat25_db_handle’:
/home/me/Downloads/rtl88x2bu/core/rtw_br_ext.c:1141:63: note: source object ‘tag_buf’ of size 40
1141 | unsigned char tag_buf[40];
| ^~~~~~~
make[2]: *** [scripts/Makefile.build:273: /home/me/Downloads/rtl88x2bu/core/rtw_br_ext.o] Error 1
make[2]: ** Apagando arquivo ‘/home/me/Downloads/rtl88x2bu/core/rtw_br_ext.o’
make[1]: *** [Makefile:1920: /home/me/Downloads/rtl88x2bu] Error 2
make[1]: Saindo do diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

I am not a driver developer, but maybe it helps to try one other package from the AUR? rtl88x2bu-cilynx-dkms-git

yay -S rtl88x2bu-cilynx-dkms-git

Hi All,

Thanks shivanandvp

I tried this driver just now. But I’ve got some new errors.

Is it caused by incomplete kernel headers?

:: Prosseguir com a instalação? [S/n] s
:: (1/1) Analisando SRCINFO: rtl88x2bu-cilynx-dkms-git
==> Criando o pacote: rtl88x2bu-cilynx-dkms-git r105.e8ad266-2 (sex 10 fev 2023 17:15:31)
==> Obtendo fontes…
→ Clonando repositório rtl88x2bu do tipo git…
Cloning into bare repository ‘/home/me/.cache/yay/rtl88x2bu-cilynx-dkms-git/rtl88x2bu’…
remote: Enumerating objects: 2431, done.
remote: Counting objects: 100% (488/488), done.
remote: Compressing objects: 100% (193/193), done.
remote: Total 2431 (delta 325), reused 431 (delta 294), pack-reused 1943
Receiving objects: 100% (2431/2431), 6.82 MiB | 11.58 MiB/s, done.
Resolving deltas: 100% (1494/1494), done.
==> Validando source arquivos com sha256sums…
rtl88x2bu … Ignorada
==> Criando o pacote: rtl88x2bu-cilynx-dkms-git r105.e8ad266-2 (sex 10 fev 2023 17:15:49)
==> Verificando as dependências de tempo de execução…
==> Verificando as dependências de tempo de compilação…
==> Obtendo fontes…
→ Atualizando repositório rtl88x2bu do tipo git…
==> Validando source arquivos com sha256sums…
rtl88x2bu … Ignorada
==> Removendo diretório $srcdir/ existente…
==> Extraindo fontes…
→ Criando cópia de trabalho do repositório rtl88x2bu do tipo git…
Cloning into ‘rtl88x2bu’…
done.
==> Iniciando pkgver()…
==> Versão atualizada: rtl88x2bu-cilynx-dkms-git r142.549257e-1
==> Os fontes estão prontos.
==> Criando o pacote: rtl88x2bu-cilynx-dkms-git r142.549257e-1 (sex 10 fev 2023 17:16:19)
==> Verificando as dependências de tempo de execução…
==> Verificando as dependências de tempo de compilação…
==> ATENÇÃO: Usando a árvore do $srcdir/ existente
==> Iniciando pkgver()…
==> Entrando no ambiente de fakeroot…
==> Iniciando package()…
==> Organizando a instalação…
→ Removendo arquivos libtool…
→ Expurgando arquivos indesejados…
→ Removendo arquivos de biblioteca estática…
→ Removendo símbolos desnecessários dos executáveis e bibliotecas…
→ Comprimindo páginas de man e info…
==> Verificando problemas de empacotamento…
==> Criando o pacote “rtl88x2bu-cilynx-dkms-git”…
→ Gerando o arquivo .PKGINFO…
→ Gerando o arquivo .BUILDINFO…
→ Gerando o arquivo .MTREE …
→ Compactando o pacote…
==> Saindo do ambiente de fakeroot.
==> Compilação concluída: rtl88x2bu-cilynx-dkms-git r142.549257e-1 (sex 10 fev 2023 17:16:56)
==> Limpando…
→ Repositório git encontrado: GitHub - cilynx/rtl88x2bu: rtl88x2bu driver updated for current kernels.
carregando pacotes…
resolvendo dependências…
procurando pacotes conflitantes…

Pacotes (1) rtl88x2bu-cilynx-dkms-git-r142.549257e-1

Tamanho total instalado: 26,22 MiB

:: Continuar a instalação? [S/n]
(1/1) verificando chaves no chaveiro [----------------------------] 100%
(1/1) verificando integridade do pacote [----------------------------] 100%
(1/1) carregando arquivos do pacote [----------------------------] 100%
(1/1) verificando conflitos de arquivos [----------------------------] 100%
(1/1) verificando espaço em disco disponível [----------------------------] 100%
:: Processando alterações do pacote…
(1/1) instalando rtl88x2bu-cilynx-dkms-git [----------------------------] 100%
:: Executando hooks pós-transação…
(1/2) Arming ConditionNeedsUpdate…
(2/2) Install DKMS modules
==> dkms install --no-depmod rtl88x2bu/r142.549257e -k 5.10.110-rockchip-rk3588
Error! Bad return status for module build on kernel: 5.10.110-rockchip-rk3588 (aarch64)
Consult /var/lib/dkms/rtl88x2bu/r142.549257e/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl88x2bu/r142.549257e -k 5.10.110-rockchip-rk3588’ exited 10
me@gnome-reborn ~>

me@gnome-reborn ~> sudo cat /var/lib/dkms/rtl88x2bu/r142.549257e/build/make.log
DKMS make.log for rtl88x2bu-r142.549257e for kernel 5.10.110-rockchip-rk3588 (aarch64)
sex 10 fev 2023 17:17:02 -03
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.110-rockchip-rk3588/build M=/var/lib/dkms/rtl88x2bu/r142.549257e/build modules
make[1]: Entrando no diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

Makefile:708: arch/aarch64/Makefile: Arquivo ou diretório inexistente
make[1]: *** Sem regra para processar o alvo ‘arch/aarch64/Makefile’ . Pare.
make[1]: Saindo do diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

make: *** [Makefile:2392: modules] Error 2

I am just trying help, not an expert on ARM or own a OPI5.
what is the result of the following:

lsmod | grep rtl

dkms status

modinfo rtl88x2bu

Hi Hi-Phile

me@gnome-reborn ~/D/88x2bu-20210702-main> lsmod | grep rtl
me@gnome-reborn ~/D/88x2bu-20210702-main [0|1]>
me@gnome-reborn ~/D/88x2bu-20210702-main [0|1]> dkms status
rtl88x2bu/5.13.1: added
rtl88x2bu/r142.549257e: added
me@gnome-reborn ~/D/88x2bu-20210702-main>
me@gnome-reborn ~/D/88x2bu-20210702-main> modinfo rtl88x2bu
modinfo: ERROR: Module rtl88x2bu not found.

None of my 3 WiFi dongles are workin in Reborn Os,

I suggest you follow the README.md instructions from here, this is the where the first driver you attempted to build and they have more interaction and RinCat is helpful:

If you have troubles, I would enable the debug level 5 and then post the results when you attempt to make and / or use modprobe 88x2bu when using dkms as per the instructions there.

I’ll create a fresh install of Reborn OS and try again,

Thanks,

Hi All,

I have just opened a issue to driver developer:

as followa:

Error in DKMS install in RebornOS - Orange PI 5

The dongle is:
Bus 001 Device 005: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

installed packages: dkms bc base-devel

I dont know if something is missing.

I just followed install commands:

git clone “GitHub - RinCat/RTL88x2BU-Linux-Driver: Realtek RTL88x2BU WiFi USB Driver for Linux” /usr/src/rtl88x2bu-git
sed -i ‘s/PACKAGE_VERSION=“@PKGVER@”/PACKAGE_VERSION=“git”/g’ /usr/src/rtl88x2bu-git/dkms.conf
dkms add -m rtl88x2bu -v git
dkms autoinstall

And I get the following error messages:

cury@gnome-opi5 ~/D/RTL88x2BU-Linux-Driver (master) [1]> sudo dkms add -m rtl88x2bu -v git
Creating symlink /var/lib/dkms/rtl88x2bu/git/source → /usr/src/rtl88x2bu-git
cury@gnome-opi5 ~/D/RTL88x2BU-Linux-Driver (master)> sudo dkms autoinstall
Sign command: /usr/lib/modules/5.10.110-rockchip-rk3588/build/scripts/sign-file
Binary /usr/lib/modules/5.10.110-rockchip-rk3588/build/scripts/sign-file not found, modules won’t be signed

Building module:
Cleaning build area…
‘make’ -j8 KVER=5.10.110-rockchip-rk3588 KSRC=/lib/modules/5.10.110-rockchip-rk3588/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.110-rockchip-rk3588 (aarch64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
cury@gnome-opi5 ~/D/RTL88x2BU-Linux-Driver (master) [11]>

cury@gnome-opi5 ~/D/RTL88x2BU-Linux-Driver (master)> cat /var/lib/dkms/rtl88x2bu/git/build/make.log
DKMS make.log for rtl88x2bu-git for kernel 5.10.110-rockchip-rk3588 (aarch64)
qui 16 fev 2023 06:14:52 -03
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.110-rockchip-rk3588/build M=/var/lib/dkms/rtl88x2bu/git/build modules
make[1]: Entrando no diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/monitor/rtw_radiotap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/wds/rtw_wds.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_hwmp.o
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c:391:27: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
error, forbidden warning:rtw_sta_mgt.c:391
391 | if (&(psta->lock) != NULL)
| ^~
In file included from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:112,
from /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl88x2bu/git/build/include/sta_info.h:267:17: note: ‘lock’ declared here
267 | _lock lock;
| ^~~~
make[2]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o] Error 1
make[2]: ** Apagando arquivo ‘/var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o’
make[2]: ** Esperando que outros processos terminem.
make[1]: *** [Makefile:1920: /var/lib/dkms/rtl88x2bu/git/build] Error 2
make[1]: Saindo do diretório ‘/usr/lib/modules/5.10.110-rockchip-rk3588/build’

make: *** [Makefile:2455: modules] Error 2
cury@gnome-opi5 ~/D/RTL88x2BU-Linux-Driver (master)>