Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ArciAndres opened this issue Jul 12, 2023 · 7 comments · Fixed by #53
Open

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

ArciAndres opened this issue Jul 12, 2023 · 7 comments · Fixed by #53

Comments

@ArciAndres
Copy link

ArciAndres commented Jul 12, 2023

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
Copy link
Owner

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
Copy link
Author

The output of the uname -m command is: aarch64

@lwfinger
Copy link
Owner

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
Copy link
Contributor

mela93 commented Jul 30, 2023

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
Copy link
Owner

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
Copy link
Contributor

mela93 commented Jul 31, 2023

image image

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

image image

@mela93 mela93 mentioned this issue Jul 31, 2023
lwfinger added a commit that referenced this issue Jul 31, 2023
@lwfinger lwfinger reopened this Jul 31, 2023
@lwfinger
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants