bash: CONFIG_MTTCAN: command not found

I want use can bus in TX2.and I find some answer from here: 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

Hi,

Please use below command to insert mttcan:
$ modprobe mttcan

Thanks,
Shubhi

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

Hi,
Please use sudo :
$ sudo modprobe mttcan

Thanks,
Shubhi

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

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

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.

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