lwfinger / rtw88

A backport of the Realtek Wifi 5 drivers from the wireless-next repo.
602 stars 175 forks source link

module launch error #93

Open TreeFall1 opened 2 years ago

TreeFall1 commented 2 years ago
  1. When I try to run the rtw_8723de module, I get an error: sudo modprobe rtw_8723de modprobe: ERROR: could not insert 'rtw_8723de': Exec format error

  2. The output of lspci -k says that the module is loaded, but not the driver: 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter DeviceName: Tiffany Subsystem: Hewlett-Packard Company Device 8319 Kernel modules: rtw_8723de How i can fix it?

TreeFall1 commented 2 years ago

Forgot to add: Arch linux (Manjaro) on kernel 5.4.209-1

lwfinger commented 2 years ago

The reason for it not loading will be given in the dmesg log. Are you using secure boot? If so, the modules need to be signed.

TreeFall1 commented 2 years ago

The reason for it not loading will be given in the dmesg log. Are you using secure boot? If so, the modules need to be signed. Im not using secure boot. dmesg.txt

lwfinger commented 2 years ago

The clue is the line: [ 12.655384] rtw_core: version magic '5.4.209-1-lts54 SMP mod_unload ' should be '5.4.209-1-MANJARO SMP preempt mod_unload modversions '

You have built the driver with different headers than the kernel uses. The 'version magic' must match.

TreeFall1 commented 2 years ago

And how fix it?

lwfinger commented 2 years ago

Install the correct headers.

shanmukhateja commented 1 year ago

Hello,

I ran into the same issue. Can we somehow detect this at compile time and throw error?

lwfinger commented 1 year ago

Not really. If your distro is doing things right, then installing the kernel headers should get the correct ones. If it does not, complain to them.