-
Notifications
You must be signed in to change notification settings - Fork 139
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
Arm64 cross-compiling #81
Comments
Hi @gorghino You likely cannot use the installation script but that is no big deal. For manually compiling, since I have made alterations to autodetect the platform, you will need to turn the autodetection off. Find the below lines in Makefile: CONFIG_PLATFORM_AUTODETECT = y Change them to the following: CONFIG_PLATFORM_AUTODETECT = n Try what you did again and let me know what happens. I did not test this but I do need to document what to do for cross-compiling so if we can work it out, I will document it. |
Hi @morrownr
This is the same command with
The kernel_out folder has changed, but both contains Linux Kernel-5.10 sources |
I am going to reach out to another user that cross compiles to see if we can get some guidance. My to-do list is long right now so my time is limited. Will let you know. |
Tnks, no rush |
Here is the reply from @disaster123
If I had time right now, I would make a short guide for those using this and the drivers here. I think it could be specific to host x86 and target arm64. Would either or both of you gents like to work on it? |
Hi! I'm trying to cross-compile your drivers for my Jetson NX (arm64). I cannot directly use neither the install script nor the manual compilation on-board, since I'm testing the RealTime kernel.
On my host (x64 - Ubuntu 20.04.5 - gcc 9.4.0) I downloaded Nvidia's kernel sources and I compiled them.
The jetson NX has Ubuntu 20.04 (Jetpack 5.1) and I used toolchain 2020.08 (9.3.0) to compile the kernel sources in /media/gorgo/PopOS/home/gorgo/NX_5_1_HYAI/Linux_for_Tegra/source/public/kernel_out.
According to the Nvidia's documentation I shall be able to cross compile with
after setting CROSS_COMPILE accordingly.
I tried:
Make stops after creating 4 files only (two are 0B):
In this log I retried the command with -d.
makefile.log
Thank you
The text was updated successfully, but these errors were encountered: