Error when compiling EMS usb driver


we are trying to compile ems_usb.c from but i get the following error: gcc: error: unrecognized command line option ‘-mgeneral-regs-only’. The goal is to use the driver together with this CAN/USB interface

We think the error occurs because we are trying to compile with a 32 bit compiler while the kernel is 64 bit. We have read the following thread and made a quick try on cross-compiling but do to lack of experience and time(internship) it is probably not an option.

Has anyone else out there solved the problem? Maybe NVIDIA crew has already solved the problem? :)

Can you install R24.1 64-bit SDK in your Jetson board and have another try?

To compile kernel module, 64-bit gcc should be used.

gcc -v
Using built-in specs.
Target: aarch64-linux-gnu

Otherwise you may have to do cross-compile in host PC (still need 64-bit cross-compiler.)