Skip to content

Instantly share code, notes, and snippets.

@anees042
Last active October 1, 2024 10:17
Show Gist options
  • Select an option

  • Save anees042/54ff8f9d716389f1889d1e9abc86dce0 to your computer and use it in GitHub Desktop.

Select an option

Save anees042/54ff8f9d716389f1889d1e9abc86dce0 to your computer and use it in GitHub Desktop.
Install hp probook 450 g9 wifi / other drivers Ubuntu 20.04 / 22.04
$ sudo ubuntu-drivers autoinstall
$ lspci
00:00.0 Host bridge: Intel Corporation Device 4601 (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Device 46a8 (rev 0c)
00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 04)
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 04)
00:06.2 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #2 (rev 04)
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 04)
00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 04)
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation Device 51be (rev 01)
00:1c.7 PCI bridge: Intel Corporation Alder Lake PCH-P PCI Express Root Port #9 (rev 01)
00:1e.0 Communication controller: Intel Corporation Alder Lake PCH UART #0 (rev 01)
00:1e.2 Serial bus controller: Intel Corporation Device 51aa (rev 01)
00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
00:1f.3 Multimedia audio controller: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
01:00.0 3D controller: NVIDIA Corporation Device 25aa (rev a1)
02:00.0 Non-Volatile memory controller: KIOXIA Corporation Device 000c
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
$ hostnamectl
$ sudo apt install git
$ sudo apt install build-essential
git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be/
make -j8
sudo make install
sudo modprobe 8852be
OR
if the driver is Intel Wi-Fi6 AX201 then;
$ sudo dmesg | grep iwlwifi
look for the loaded microcode version .ucode
$ sudo mv /lib/firmware/iwlwifi-QuZ-a0-jf-b0-66.ucode /lib/firmware/iwlwifi-QuZ-a0-jf-b0-66.ucode.bak
and backward until you find the wifi driver and wifi starts working
@hamzaz-bin-sajid
Copy link

if There is an intel driver then we have to do this

sudo dmesg | grep iwlwifi

sudo mv /lib/firmware/iwlwifi-QuZ-a0-jf-b0-59.ucode /lib/firmware/iwlwifi-QuZ-a0-jf-b0-59.ucode.bak

move to backeward until wife is working

@anees042
Copy link
Author

anees042 commented Jun 7, 2023

updated the gist

@azeemirshad
Copy link

Hi there
I tried the installation on Ubuntu 22.04
I am getting these errors

ap_single’? [-Werror=implicit-function-declaration]
   39 |                 *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
      |                             ^~~~~~~~~~~~~~
      |                             dma_map_single
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/pci_intf.c:513:22: error: implicit declaration of function ‘pci_set_dma_mask’ [-Werror=implicit-function-declaration]
  513 |                 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
      |                      ^~~~~~~~~~~~~~~~
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6233:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6233 |                 *ht = 0;
      |                 ~~~~^~~
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6235:9: note: here
 6235 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
   50 |                 pci_unmap_single(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~
      |                 dma_unmap_single
cc1: some warnings being treated as errors
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/pci_intf.c:514:31: error: implicit declaration of function ‘pci_set_consistent_dma_mask’ [-Werror=implicit-function-declaration]
  514 |                         err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/pci_intf.c: At top level:
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/pci_intf.c:821:11: warning: no previous prototype for ‘rtw_pci_primary_adapter_init’ [-Wmissing-prototypes]
  821 | _adapter *rtw_pci_primary_adapter_init(struct dvobj_priv *dvobj, struct pci_dev *pdev)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:243: /home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/ioctl_cfg80211.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/osdep_service_linux.o] Error 1
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
   97 |                 pci_free_consistent(pdev, size, vir_addr, *bus_addr);
      |                 ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be/os_dep/linux/pci_intf.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-45-generic/Makefile:1925: /home/northbay/office/niftonic/alltrueistic/ALLTRUEistic/backend/alltrue-api/rtl8852be] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-45-generic'
make: *** [Makefile:637: modules] Error 2

@anees042
Copy link
Author

anees042 commented Oct 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment