# bash: CONFIG\_MTTCAN: command not found

**URL:** <https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814>\
**Category:** Jetson TX2\
**Created:** [August 29, 2019, 7:00am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814 "2019-08-29T07:00:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![1092561946](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1092561946](https://forums.developer.nvidia.com/u/1092561946)\
**Post date:** [August 29, 2019, 7:00am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/1 "2019-08-29T07:00:17Z")

</div>

I want use can bus in TX2.and I find some answer from here: [how can I use CAN bus in TX2? - Jetson TX2 - NVIDIA Developer Forums](https://devtalk.nvidia.com/default/topic/1006762/jetson-tx2/how-can-i-use-can-bus-in-tx2-/3) It is mentioned that:  
These are the steps can be followed to enable and check CAN on TX2.

1. Enable kernel support for mttcan(Other required modules are already supported)  
​ CONFIG\_MTTCAN = m (Here mttcan is compiled as a module)

2. Insert CAN BUS subsystem support module.  
modprobe can  
…  
so I enter the command:CONFIG\_MTTCAN = m in the terminal and feedback this:  
bash: CONFIG\_MTTCAN: command not found  
I want know how to use this command?thanks

---

<div class="post-metadata">

**Author:** ![shgarg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shgarg/32/9748_2.png) [@shgarg](https://forums.developer.nvidia.com/u/shgarg)\
**Post date:** [August 29, 2019, 7:17am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/2 "2019-08-29T07:17:43Z")

</div>

Hi,

Please use below command to insert mttcan:  
$ modprobe mttcan

Thanks,  
Shubhi

---

<div class="post-metadata">

**Author:** ![1092561946](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1092561946](https://forums.developer.nvidia.com/u/1092561946)\
**Post date:** [August 29, 2019, 8:20am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/3 "2019-08-29T08:20:38Z")

</div>

Hi,  
I use this command:  
$ modprobe mattcan  
terminal feedback this:  
modprobe: ERROR: could not insert ‘mttcan’: Operation not permitted

---

<div class="post-metadata">

**Author:** ![shgarg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shgarg/32/9748_2.png) [@shgarg](https://forums.developer.nvidia.com/u/shgarg)\
**Post date:** [August 29, 2019, 8:24am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/4 "2019-08-29T08:24:27Z")

</div>

Hi,  
Please use sudo :  
$ sudo modprobe mttcan

Thanks,  
Shubhi

---

<div class="post-metadata">

**Author:** ![1092561946](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1092561946](https://forums.developer.nvidia.com/u/1092561946)\
**Post date:** [August 29, 2019, 8:51am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/5 "2019-08-29T08:51:14Z")

</div>

thanks,it could be work.  
but I have a know problem,I executed the following orders:  
$ sudo modprobe mttcan  
$ sudo modprobe can  
$ sudo modprobe can\_raw  
$ sudo ip link set can1 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on  
$ sudo ip link set up can1  
then I use ifconfig could find can1.I want use this port send command to another equipment.bitrate also set as 500000.i use CAN transceiver to connect can1 and external equipment and run command:  
$ cansend can1 101#001E00100001 #no action no feedback  
$ sudo cansend can1 101#001E00100001 #no action no feedback  
so I excuted command:  
$ ip -s -d link show can1  
feedback this:  
12: can1: \<NO-CARRIER,NOARP,UP,ECHO\> mtu 72 qdisc pfifo\_fast state DOWN mode DEFAULT group default qlen 10  
link/can promiscuity 0  
can \<BERR-REPORTING,FD\> state BUS-OFF (berr-counter tx 248 rx 0) restart-ms 0  
bitrate 500000 sample-point 0.875  
tq 25 prop-seg 34 phase-seg1 35 phase-seg2 10 sjw 1  
mttcan: tseg1 2…255 tseg2 0…127 sjw 1…127 brp 1…511 brp-inc 1  
dbitrate 2000000 dsample-point 0.750  
dtq 25 dprop-seg 7 dphase-seg1 7 dphase-seg2 5 dsjw 1  
mttcan: dtseg1 1…31 dtseg2 0…15 dsjw 1…15 dbrp 1…15 dbrp-inc 1  
clock 40000000  
re-started bus-errors arbit-lost error-warn error-pass bus-off  
0 2 0 1 1 0  
RX: bytes packets errors dropped overrun mcast  
40 5 2 0 0 0  
TX: bytes packets errors dropped carrier collsns  
0 0 0 0 0 0

---

<div class="post-metadata">

**Author:** ![shgarg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shgarg/32/9748_2.png) [@shgarg](https://forums.developer.nvidia.com/u/shgarg)\
**Post date:** [August 29, 2019, 9:00am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/6 "2019-08-29T09:00:29Z")

</div>

Hi,

Can you please explain me your connections? How did you connect CAN0 & CAN1 from TX2?  
On CAN BUS, minimum two CAN nodes should be present to transmit msg on CAN BUS

---

<div class="post-metadata">

**Author:** ![1092561946](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1092561946](https://forums.developer.nvidia.com/u/1092561946)\
**Post date:** [August 29, 2019, 9:32am UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/7 "2019-08-29T09:32:47Z")

</div>

I have a CAN transceiver model.I connected one end to the CAN pin of J26 and the other end to the external device.Hardware connection should be ok，because if I use can1 as a can receiver equipment:I excuted command:  
$ candump can1  
then I can receiver message from external device to TX2.I just don’t konw how to send command from TX2 to my external device.

---

<div class="post-metadata">

**Author:** ![1092561946](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1092561946](https://forums.developer.nvidia.com/u/1092561946)\
**Post date:** [August 30, 2019, 12:32pm UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/8 "2019-08-30T12:32:44Z")

</div>

maybe I has sovle the this problem bu I don’t do anything .I set it up once as before, but today is OK.It’s very strange

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:33pm UTC](https://forums.developer.nvidia.com/t/bash-config-mttcan-command-not-found/80814/9 "2021-10-18T18:33:44Z")

</div>

Closed on October 18, 2021, 6:33pm UTC


