Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

make issue #51

Open
GarethHards opened this issue Feb 2, 2021 · 6 comments
Open

make issue #51

GarethHards opened this issue Feb 2, 2021 · 6 comments

Comments

@GarethHards
Copy link

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

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

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

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

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

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

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

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

No branches or pull requests

1 participant