RTW88 driver missing out of the 5.3 kernel

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Post Reply
themouseNZ
Baby Hen
Posts: 13
Joined: Tue Oct 09, 2018 23:38

RTW88 driver missing out of the 5.3 kernel

Post by themouseNZ » Sat Nov 23, 2019 9:30

I have a realtek 8822be wifi chip in my notebook but the latest kernel does not work with it. I found the rtw88 driver is missing out of the drivers folder but yet its in git under the 5.3 kernel. Can someone shed light either why its missing or how I add it? Thanks

themouseNZ
Baby Hen
Posts: 13
Joined: Tue Oct 09, 2018 23:38

Re: RTW88 driver missing out of the 5.3 kernel

Post by themouseNZ » Sat Nov 23, 2019 10:46

I did have kernel 5.3.7 but 5.2 didnt work either. 5.1 works ok but does have the older rtl8822 driver. I did try the newer 5.3.11 in sabayon-limbo but that also does not have the new driver.

User avatar
sabayonino
Sagely Hen
Posts: 3391
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: RTW88 driver missing out of the 5.3 kernel

Post by sabayonino » Sat Nov 23, 2019 12:05

Running kernel 5.3 , RTW88 is not set

Code: Select all

# zcat /proc/config.gz | grep RTW88
 CONFIG_RTW88 is not set
Please file a bug to set RTW88 drivers

[edit] In the meantime you can build RTW88 modules by tyourself as explaned here.

Just install sabayon-sources:5.3 package and GCC

Code: Select all

# equo i @build-essentials sabayon-sources:5.3

Code: Select all

# cd /usr/src/linux
RTW88 drivers are located at drivers/net/wireless/realtek/rtw88

Run :

Code: Select all

make SUBDIRS=drivers/net/wireless/realtek/rtw88 modules
Run xconfig (or menuconfig) to enable RTW modules

Code: Select all

make xconfig
(save the config)

Code: Select all

 CONFIG_RTW88_8822BE:                                                                                                                                                                                                                                                    │  
  │                                                                                                                                                                                                                                                                         │  
  │ Select this option will enable support for 8822BE chipset                                                                                                                                                                                                               │  
  │                                                                                                                                                                                                                                                                         │  
  │ 802.11ac PCIe wireless network adapter                                                                                                                                                                                                                                  │  
  │                                                                                                                                                                                                                                                                         │  
  │ Symbol: RTW88_8822BE [=y]                                                                                                                                                                                                                                               │  
  │ Type  : bool                                                                                                                                                                                                                                                            │  
  │ Prompt: Realtek 8822BE PCI wireless network adapter                                                                                                                                                                                                                     │  
  │   Location:                                                                                                                                                                                                                                                             │  
  │     -> Device Drivers                                                                                                                                                                                                                                                   │  
  │       -> Network device support (NETDEVICES [=y])                                                                                                                                                                                                                       │  
  │         -> Wireless LAN (WLAN [=y])                                                                                                                                                                                                                                     │  
  │           -> Realtek devices (WLAN_VENDOR_REALTEK [=y])                                                                                                                                                                                                                 │  
  │             -> Realtek 802.11ac wireless chips support (RTW88 [=m])                                                                                                                                                                                                     │  
  │   Defined at drivers/net/wireless/realtek/rtw88/Kconfig:19                                                                                                                                                                                                              │  
  │   Depends on: NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_REALTEK [=y] && RTW88 [=m] && PCI [=y]                                                                                                                                                                        │  
  │   Selects: RTW88_CORE [=m] && RTW88_PCI [=m]                        


Code: Select all

make prepare

Code: Select all

make SUBDIRS=drivers/net/wireless/realtek/rtw88 modules
Install RTW88 modules

Code: Select all

make SUBDIRS=drivers/net/wireless/realtek/rtw88 modules_install
You'll have

Code: Select all

Makefile:213: ================= WARNING ================
Makefile:214: 'SUBDIRS' will be removed after Linux 5.3
Makefile:215: 
Makefile:216: If you are building an individual subdirectory
Makefile:217: in the kernel tree, you can do like this:
Makefile:218: $ make path/to/dir/you/want/to/build/
Makefile:219: (Do not forget the trailing slash)
Makefile:220: 
Makefile:221: If you are building an external module,
Makefile:222: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:223: ==========================================
  INSTALL drivers/net/wireless/realtek/rtw88/rtw88.ko
  INSTALL drivers/net/wireless/realtek/rtw88/rtwpci.ko
  DEPMOD  5.3.0-sabayon
Copy the drivers

Code: Select all

rsync -av drivers/net/wireless/realtek/rtw88 /lib/modules/5.3.0-sabayon/kernel/drivers/net/wireless/realtek/
load the RTW88 module

Code: Select all

# modprobe rtw88
check if the RTW88 drivers are loaded

Code: Select all

lsmod | grep rtw
rtw88                 417792  0
mac80211              503808  1 rtw88
cfg80211              356352  2 mac80211,rtw88
Check your wifi

or reboot your system and check if your WIFI works

themouseNZ
Baby Hen
Posts: 13
Joined: Tue Oct 09, 2018 23:38

Re: RTW88 driver missing out of the 5.3 kernel

Post by themouseNZ » Sun Nov 24, 2019 2:48

I followed your instructions, there was one bit I had to do a little differently but yes now I have a working wifi card. Thanks. I have submitted a bug report so hopefully it will get sorted

Post Reply