rtl8852au icon indicating copy to clipboard operation
rtl8852au copied to clipboard

[Jetson] *** No rule to make target 'arch/aarch64/Makefile'. Stop.

Open ArciAndres opened this issue 1 year ago • 7 comments

Hello! I am trying to install the ASUS AX1800 WiFi adapter in an Nvidia Jetson Xavier NX developer card. It has the following specs: Architecture: AARCH64 Kernel: 5.10.104-tegra. Operative system: Ubuntu 20.04 (focal)

I am encountering the following error when executing the make command:

ubuntu@ubuntu:~/drivers/rtl8852au$ make
#rm -f .symvers.8852au
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.104-tegra/build M=/home/leolabs/drivers/rtl8852au  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10'
Makefile:712: 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/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10'
make: *** [Makefile:638: modules] Error 2

It might be related to this issue.

Any advice is highly appreciated. Thank you in advance.

ArciAndres avatar Jul 12 '23 14:07 ArciAndres

Sorry, it is not related to your reference. There is code in the Makefile that is supposed to turn aarch64 to arm64, which is where the headers are found.

Please run the command 'uname -m' and post the result.

lwfinger avatar Jul 12 '23 15:07 lwfinger

The output of the uname -m command is: aarch64

ArciAndres avatar Jul 13 '23 15:07 ArciAndres

I think that you do not have the latest version of the code. So a 'git pull' and try again. Did that help?

One other test - run the following command:

uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;"

and report the output. That will test your copy of sed.

lwfinger avatar Jul 13 '23 17:07 lwfinger

I am also get this Error

radxa@rock-5a:~/Downloads/rtl8852au$ make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.110-6-rockchip/build M=/home/radxa/Downloads/rtl8852au  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.110-6-rockchip'
Makefile:708: 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/linux-headers-5.10.110-6-rockchip'
make: *** [Makefile:636: modules] Error 2
radxa@rock-5a:~/Downloads/rtl8852au$ uname -m
aarch64
radxa@rock-5a:~/Downloads/rtl8852au$ uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;"
arm64

mela93 avatar Jul 30 '23 11:07 mela93

Line 26 of the Makefile sets the SUBARCH using the statement that you ran above. Does your version of Makefile do that?

If it does not, then your code version does not match mine. What happens when you do a 'git pull'?

lwfinger avatar Jul 30 '23 15:07 lwfinger

image image

Yes, line 26 is ARCH ?= $(SUBARCH) and 'git pull' show Already up to date.

image image

mela93 avatar Jul 31 '23 01:07 mela93

You have screwed up your local copy of the repository. Delete the current code and redo the clone command. It should be OK then.

lwfinger avatar Jul 31 '23 16:07 lwfinger