Pablo J. Cabrera Muñoz Posted October 29 Posted October 29 So I was trying to compile a wifi driver for a somewhat new usb wifi device and it breaks during compilation because it expects a directory named /usr/src/<linux-headers>/arch/aarch64 but on NanoPi NEO3 the directory is named (on NanoPI R4S is the same case btw) /usr/src/<linux-headers>/arch/arm64 In order to make it work, I created a symlink under the "arch" directory called "aarch64" pointing to "arm64" and I was able to compile it. Here is what happens when I try to compile it without the symlink: pablo@callampa:~/repos/github.com/morrownr/rtl8852cu-20240510$ make clean cd phl ; rm -fr */*/*/*/*.mod.c */*/*/*/*.mod */*/*/*/*.o */*/*/*/.*.cmd */*/*/*/*.ko cd phl ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko cd phl ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko cd phl ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko cd phl ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd core ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~ rm -fr .tmp_versions rm -fr MOK.der MOK.priv pablo@callampa:~/repos/github.com/morrownr/rtl8852cu-20240510$ make #rm -f .symvers.8852cu make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/6.6.58-current-rockchip64/build M=/home/pablo/repos/github.com/morrownr/rtl8852cu-20240510 modules make[1]: Entering directory '/usr/src/linux-headers-6.6.58-current-rockchip64' /usr/src/linux-headers-6.6.58-current-rockchip64/Makefile:768: arch/aarch64/Makefile: No such file or directory make[2]: *** No rule to make target 'arch/aarch64/Makefile'. Stop. make[1]: *** [Makefile:234: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.6.58-current-rockchip64' make: *** [Makefile:723: modules] Error 2 pablo@callampa:~/repos/github.com/morrownr/rtl8852cu-20240510$ My question would be, is it correct? Shouldn't it be named "aarch64" in the first place? 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.