realtek_rtwifi
realtek_rtwifi copied to clipboard
Unable to compile on Ubuntu 22.04 LTS (5.15.0-25-generic) - nothing happens
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.