kimocoder / realtek_rtwifi

Realtek RTL8xxxU
https://www.aircrack-ng.org
69 stars 14 forks source link

Unable to compile on Ubuntu 22.04 LTS (5.15.0-25-generic) - nothing happens #32

Open Cvolton opened 2 years ago

Cvolton commented 2 years ago

I've been trying to install the driver on Ubuntu 22.04 but it seems that make simply doesn't want to do anything. This is what I've done to get from a fresh installation to the state I'm in right now:

$ sudo apt install build-essential git
$ git clone https://github.com/kimocoder/realtek_rtwifi
$ cd realtek_rtwifi/
$ make

and here's the output of the make command after freshly cloning the repository or after doing make clean

make -C /lib/modules/5.15.0-25-generic/build M=/home/cvolton/realtek_rtwifi modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-25-generic'
  MODPOST /home/cvolton/realtek_rtwifi/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-25-generic'

Obviously nothing gets compiled by this and therefore sudo make install fails as well.

# make install
make -C /lib/modules/5.15.0-25-generic/build M=/home/cvolton/realtek_rtwifi modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-25-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-25-generic'
#gzip -f rtwifi.ko
sudo cp -f rtwifi.ko  /lib/modules/5.15.0-25-generic/kernel/drivers/net/wireless/realtek/
cp: cannot stat 'rtwifi.ko': No such file or directory
make: *** [Makefile:20: install] Error 1

Kernel headers are installed straight out of the box as evidenced by

$ ls /usr/src/linux-headers-5.15.0-25-generic
arch  block  certs  crypto  Documentation  drivers  fs  include  init  ipc  Kbuild  Kconfig  kernel  lib  Makefile  mm  Module.symvers  net  samples  scripts  security  sound  tools  ubuntu  usr  virt

This is consistent behavior on my fresh installation of Ubuntu 22.04 LTS with kernel version 5.15.0-25-generic and a different installation of Ubuntu 20.04 LTS with kernel version 5.13.0-40-generic.

Cvolton commented 2 years ago

Also managed to replicate the exact same behavior on Arch btw

MiningInMySleep commented 2 years ago

Had the same issue but #24 fixed it and along with some other changes mentioned in #30 it compiled for me.

ZerBea commented 1 year ago
$ lsusb
ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

$ iw list
    Supported interface modes:
         * managed
         * monitor
$ lsusb
ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

$ iw list
    Supported interface modes:
         * managed
         * monitor
$ lsusb
ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

$ iw list
    Supported interface modes:
         * managed
         * monitor