lwfinger / rtl8852au

307 stars 75 forks source link

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

Open ArciAndres opened 1 year ago

ArciAndres commented 1 year ago

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.

lwfinger commented 1 year ago

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.

ArciAndres commented 1 year ago

The output of the uname -m command is: aarch64

lwfinger commented 1 year ago

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.

mela93 commented 1 year ago

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
lwfinger commented 1 year ago

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'?

mela93 commented 1 year ago
image image

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

image image
lwfinger commented 1 year ago

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