Jump to content

Linux header arch folder "aarch64" or "arm64"?


Pablo J. Cabrera Muñoz

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines