1

I am quite new in the Ubuntu world and while installing 22.04. on my new HP G9 Free Dos laptop I got similar issue as described in this thread: wifi Adapter not found realtek RTL8852BE WiFi 6 802.11ax PCIe in ubuntu 22.04

I am just not sure if I can do the same or not as I have a HP not Lenovo

The result of my terminal command lspci -nnk | grep 0280 -A3 is:

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    DeviceName: WLAN
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)

Thanks - command make was not available so I did install it via sudo apt install make then running make said:

/bin/sh: 1: cc: not found
(standard_in) 1: syntax error
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-50-generic/build M=/home/administrator/rtl8852be  modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-50-generic“ wird betreten
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: Datei oder Verzeichnis nicht gefunden
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           
/bin/sh: 1: gcc: not found
(standard_in) 1: syntax error
  CC [M]  /home/administrator/rtl8852be/platform/platform_linux_pc_pci.o
/bin/sh: 1: gcc: not found
make[2]: *** [scripts/Makefile.build:297: /home/administrator/rtl8852be/platform/platform_linux_pc_pci.o] Fehler 127
make[1]: *** [Makefile:1900: /home/administrator/rtl8852be] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-50-generic“ wird verlassen
make: *** [Makefile:637: modules] Fehler 2

Sorry for the german words - any easy way to switch to english?

1 Answers1

0

You have compiled the driver for your currently running kernel version only. When a newer kernel version is installed as offered by Software Updater, you must recompile:

cd rtl8852be
make clean
git pull
make
sudo make install
sudo modprobe 8852be

In order to avoid recompiling, the DKMS process is used. https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support However, the HRex39 repository has no dkms.conf file nor does the README.md mention any DKMS procedure.

The probable successor here also has no DKMS mechanism: https://github.com/lwfinger/rtw8852be

chili555
  • 60,188