Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Cvolton opened this issue Apr 22, 2022 · 3 comments

Comments

@Cvolton
Copy link

Cvolton commented Apr 22, 2022

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
Copy link
Author

Cvolton commented Apr 28, 2022

Also managed to replicate the exact same behavior on Arch btw

@MiningInMySleep
Copy link

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

@ZerBea
Copy link

ZerBea commented Jan 24, 2023

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants