Open s-fairchild opened 3 years ago
Below are the commands ran after cloning the github repository, and the contents of make.log.
What can I do to compile on Fedora 33 aarch64 raspberry pi 3B+?
[pi@localhost rtl8821CU]$ sudo cp /lib/modules/$(uname -r)/build/arch/arm64/Makefile /lib/modules/$(uname -r)/build/arch/arm64/Makefile.$(date +%Y%m%d%H%M) [pi@localhost rtl8821CU]$ sudo sed -i 's/-mgeneral-regs-only//' /lib/modules/$(uname -r)/build/arch/arm64/Makefile [pi@localhost rtl8821CU]$ sudo ./dkms- dkms-install.sh dkms-remove.sh [pi@localhost rtl8821CU]$ sudo ./dkms-remove.sh About to run dkms removal steps... ------------------------------ Deleting module version: 5.4.1 completely from the DKMS tree. ------------------------------ Done. Finished running dkms removal steps. [pi@localhost rtl8821CU]$ sudo ./dkms-install.sh About to run dkms install steps... Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source -> /usr/src/rtl8821CU-5.4.1 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' KVER=5.9.11-200.fc33.aarch64....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.9.11-200.fc33.aarch64 (aarch64) Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' KVER=5.9.11-200.fc33.aarch64....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.9.11-200.fc33.aarch64 (aarch64) Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information. Finished running dkms install steps. [pi@localhost rtl8821CU]$ cat /var/lib/dkms/rtl8821CU/5.4.1/build/make.log DKMS make.log for rtl8821CU-5.4.1 for kernel 5.9.11-200.fc33.aarch64 (aarch64) Mon Dec 7 06:41:57 PM EST 2020 make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.9.11-200.fc33.aarch64/build M=/var/lib/dkms/rtl8821CU/5.4.1/build modules make[1]: Entering directory '/usr/src/kernels/5.9.11-200.fc33.aarch64' Makefile:685: arch/aarch64/Makefile: No such file or directory make[1]: *** No rule to make target 'arch/aarch64/Makefile'. Stop. make[1]: Leaving directory '/usr/src/kernels/5.9.11-200.fc33.aarch64' make: *** [Makefile:2214: modules] Error 2 [pi@localhost rtl8821CU]$
ARCH might be 'arm64', not 'aarch64'?
Below are the commands ran after cloning the github repository, and the contents of make.log.
What can I do to compile on Fedora 33 aarch64 raspberry pi 3B+?