Error running cross-compiled sample


I have updated the PX2 with Driveinstall provided in the Download Section.

After that, I set up Nsight to cross-compile. The samples run on the Host PC but do not on the PX2.
I get the following error when running the Hello World Sample

-bash: ./sample_hello_world: cannot execute binary file: Exec format error

I found a threat with similar issue, that could be resolved by updating the Firmware of the PX2.
But as mentioned before I have done that already.

Is there a way to check the firmware version of the PX2?
Running the precompiled Hello World Sample gave me the following output:

Welcome to Driveworks SDK
Initialize DriveWorks SDK v0.3.422
Release build with GNU 4.9.2 from v0.3.1-rc2-0-g0475f26 against PDK v4.1.6.3 [...]

Does that mean I am on Version and not 4.1.8 that DriveInstall should have flashed?
If that is the case, can I manually update the Tegras?

Thank you

Hi david.nass
Can you please check the format of hello world executable. Please use file command. It should be ELF 64-bit LSB execubale, ARM aarch64.

Yes that seems to be the problem. Thank you
The format is:
ELF 64-bit LSB executable, x86-64

How do I change it to ARM aarch64?

Dear david.nass
You are trying to run a host compiled executable on DrivePX2. For cross compiling please refer to DriveWorks Samples -> buidling Samples -> Cross-compiling for DrivePx2 in the /doc/nvdwx_html/index.html