whitebatman2 / rtl8821CU

Realtek 802.11ac USB WLAN driver
GNU General Public License v2.0
311 stars 178 forks source link

make issue #51

Open GarethHards opened 3 years ago

GarethHards commented 3 years ago

i followed the steps on : https://thepihut.com/blogs/raspberry-pi-tutorials/how-to-setup-a-rtl881cu-usb-wifi-adapter-with-the-raspberry-pi-4 and in the file folder tried make and this was the result:

pi@raspberrypi:~/usbwifi $ cd rtl8821CU pi@raspberrypi:~/usbwifi/rtl8821CU $ make make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.11-v7l+/build M=/home/pi/usbwifi/rtl8821CU modules make[1]: /lib/modules/5.10.11-v7l+/build: No such file or directory. Stop. make: [Makefile:1923: modules] Error 2 pi@raspberrypi:~/usbwifi/rtl8821CU $

GarethHards commented 3 years ago

######### Notify SDIO Host Keep Power During Syspend ########## CONFIG_RTW_SDIO_PM_KEEP_POWER = y ###################### MP HW TX MODE FOR VHT ####################### CONFIG_MP_VHT_HW_TX_MODE = n ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ARM_RPI = y CONFIG_PLATFORM_ARM_RPI3 = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_ANDROID_INTEL_X86 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n CONFIG_PLATFORM_ARM_PXA2XX = n CONFIG_PLATFORM_ARM_S3C6K4 = n CONFIG_PLATFORM_MIPS_RMI = n CONFIG_PLATFORM_RTD2880B = n CONFIG_PLATFORM_MIPS_AR9132 = n CONFIG_PLATFORM_RTK_DMP = n CONFIG_PLATFORM_MIPS_PLM = n

i got upto here and edit the file like the blog said i should

GarethHards commented 3 years ago

pi@raspberrypi:~ $ DRV_NAME=rtl8821CU pi@raspberrypi:~ $ DRV_VERSION=5.2.5.3 pi@raspberrypi:~ $ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION} pi@raspberrypi:~ $ git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION} fatal: not a git repository (or any of the parent directories): .git tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors pi@raspberrypi:~ $ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION} Error! Could not locate dkms.conf file. File: /usr/src/rtl8821CU-5.2.5.3/dkms.conf does not exist. pi@raspberrypi:~ $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION} Error! Could not locate dkms.conf file. File: /usr/src/rtl8821CU-5.2.5.3/dkms.conf does not exist. pi@raspberrypi:~ $ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION} Error! Could not locate dkms.conf file. File: /usr/src/rtl8821CU-5.2.5.3/dkms.conf does not exist. pi@raspberrypi:~ $

GarethHards commented 3 years ago

pi@raspberrypi:~ $ cd usbwifi pi@raspberrypi:~/usbwifi $ cd rtl8821CU pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt-get install dkms Reading package lists... Done Building dependency tree
Reading state information... Done dkms is already the newest version (2.6.1-4). The following packages were automatically installed and are no longer required: gconf-service gconf2-common libexiv2-14 libgconf-2-4 libgfortran3 libgmime-2.6-0 libncurses5 libssl1.0.2 rpi-eeprom-images uuid-dev Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_NAME=rtl8821CU pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_VERSION=5.2.5.3 pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION} mkdir: cannot create directory ‘/usr/src/rtl8821CU-5.2.5.3’: File exists pi@raspberrypi:~/usbwifi/rtl8821CU $ git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION} pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}

Creating symlink /var/lib/dkms/rtl8821CU/5.2.5.3/source -> /usr/src/rtl8821CU-5.2.5.3

DKMS: add completed. pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION} Error! echo Your kernel headers for kernel 5.10.11-v7l+ cannot be found at pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION} Error! echo Your kernel headers for kernel 5.10.11-v7l+ cannot be found at /lib/modules/5.10.11-v7l+/build or /lib/modules/5.10.11-v7l+/source. pi@raspberrypi:~/usbwifi/rtl8821CU $

GarethHards commented 3 years ago

pi@raspberrypi:~ $ sudo apt install raspberrypi-kernel-headers Reading package lists... Done Building dependency tree
Reading state information... Done raspberrypi-kernel-headers is already the newest version (1.20210108-1). raspberrypi-kernel-headers set to manually installed. The following packages were automatically installed and are no longer required: gconf-service gconf2-common libexiv2-14 libgconf-2-4 libgfortran3 libgmime-2.6-0 libncurses5 libssl1.0.2 rpi-eeprom-images uuid-dev Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. pi@raspberrypi:~ $

GarethHards commented 3 years ago

pi@raspberrypi:~/usbwifi/rtl8821CU $ ls clean core dkms.conf hal ifcfg-wlan0 include Kconfig LICENSE Makefile os_dep platform README.md rtl8821c.mk runwpa wlan0dhcp pi@raspberrypi:~/usbwifi/rtl8821CU $

GarethHards commented 3 years ago

5.10.11-v8+ is my last folder in lib modules and the one with the issue is the one above