Jetson TX2 M_TTCAN fails

Hi,

I’m using JetPack 4.4 - L4T R32.4.2. I’m trying to enable mttcan from kernel configuration menu in order to use canbus.

During the rebuild of kernel, i’m getting this error;

/usr/src/kernel/nvidia/drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.c:22:10: fatal error: m_ttcan.h: No such file or directory
#include “m_ttcan.h”
^~~~~
compilation terminated.
scripts/Makefile.build:335: recipe for target ‘drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.o’ failed
make[5]: * [drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.o] Error 1
scripts/Makefile.build:649: recipe for target ‘drivers/net/can/mttcan/ivc’ failed
make[4]: * [drivers/net/can/mttcan/ivc] Error 2
make[4]: * Waiting for unfinished jobs…
CC drivers/net/can/mttcan/native/m_ttcan_sys.o
CC drivers/net/can/mttcan/native/…/hal/m_ttcan.o
CC drivers/net/can/mttcan/native/…/hal/m_ttcan_intr.o
CC drivers/net/can/mttcan/native/…/hal/m_ttcan_list.o
CC drivers/net/can/mttcan/native/…/hal/m_ttcan_ram.o
CC drivers/net/can/mttcan/native/…/hal/m_ttcan_tt.o
LD drivers/net/can/mttcan/native/mttcan.o
LD drivers/net/can/mttcan/native/built-in.o
scripts/Makefile.build:649: recipe for target ‘drivers/net/can/mttcan’ failed
make[3]: * [drivers/net/can/mttcan] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/net/can’ failed
make[2]: * [drivers/net/can] Error 2
make[2]: * Waiting for unfinished jobs…
scripts/Makefile.build:649: recipe for target ‘drivers/net’ failed
make[1]: * [drivers/net] Error 2
make[1]: * Waiting for unfinished jobs…
Makefile:1104: recipe for target ‘drivers’ failed
make: * [drivers] Error 2

real 0m33,510s
user 0m39,304s
sys 0m21,936s
Make did not build
Retrying …
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.o
/usr/src/kernel/nvidia/drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.c:22:10: fatal error: m_ttcan.h: No such file or directory
#include “m_ttcan.h”
^~~~~
compilation terminated.
scripts/Makefile.build:335: recipe for target ‘drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.o’ failed
make[5]: * [drivers/net/can/mttcan/ivc/m_ttcan_linux_ivc.o] Error 1
scripts/Makefile.build:649: recipe for target ‘drivers/net/can/mttcan/ivc’ failed
make[4]: * [drivers/net/can/mttcan/ivc] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/net/can/mttcan’ failed
make[3]: * [drivers/net/can/mttcan] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/net/can’ failed
make[2]: * [drivers/net/can] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/net’ failed
make[1]: * [drivers/net] Error 2
Makefile:1104: recipe for target ‘drivers’ failed
make: * [drivers] Error 2
Make did not successfully build
Please fix issues and retry build

Any suggestion would be appreciated.
Thanks and Best Regards,
Gencer

Hi,
mttcan is already enabled in kernel. Did you check that?
And from above, looks like “m_ttcan.h” is missing.This header is not present. Have you taken our kernel source code?

Thanks,
Shubhi

Actually, I fixed the problem by disabling M_TTCAN IVC. However, if I enable it again, problem still occurs. I can use canbus without a problem now.