Where is the source code for mttcan driver?

Hello,

I use the mttcan driver of JP6.0 on AGX Orin. Where can I find the source code for this driver?
I failed to find the code in https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/sources/public_sources.tbz2 .

Please point the right direction to me. Thanks.

Hi rx.wen218,

Are you using the devkit or custom board for AGX Orin?

m_ttcan_linux.c is the driver for mttcan, which should be included in kernel source.
Please refer to Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation to download and build kernel image.

Thanks.

I’m using devkit.
I downloaded the "Driver Package(BSP) sources. But I can’t find the m_ttcan_linux.c file in the extracted kernel_src.tgz2 file. Is this the right source package?

public_sources.tbz2

Linux_for_Tegra/source/kernel_oot_modules_src.tbz2

Linux_for_Tegra/source/nvidia-oot/drivers/net/can/mttcan/native/m_ttcan_linux.c

1 Like

You can also use script to clone the source.

$ cd <Linux_for_Tegra>/source
$ ./source_sync.sh -k -t jetson_36.3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.