Hi,
I got Nvidia Jetson Orin Nano dev kit and was trying to get slcan module working. I customised kernel and added slcan module to defconfig (CONFIG_CAN_SLCAN=m, CONFIG_TTY=y ), built the kernel and flashed it. Jetson booting normally and everything’s working well.
When I type on jetson:
$ zcat /proc/config.gz | grep -E "CONFIG_CAN_SLCAN|CONFIG_TTY"
I get:
CONFIG_CAN_SLCAN=m
CONFIG_TTY=y
#CONFIG_TTY_PRINTK is not set
I can load slcan and can properly:
$ sudo apt-get install can-utils
$ sudo modprobe can
$ sudo modprobe can_raw
$ sudo modprobe slcan
I tried creating a virtual can and tried with can dump and all and it’s working.
I connected my can-usb canable module to jetson and through dmesg, I saw it connecting but recognised as simple usb module.
Anyway, I got it as /dev/ttyACM0. I tried doing:
$sudo slcand -o -c -f -s6 /dev/ttyACM0 slcan1 # existing can0 seem to be part of mttcan, so I selected slcan1 as name
It executed. Then I did:
$ sudo ip link set can1 type can bitrate 1000000 loopback off
It gave error:
RTNETLINK answers: Operation not supported
Same commands are working normally on my ubuntu PC when connecting same usb-can device (and did sudo ifconfig slcan1 up at last) and able to connect and do all with the module on PC.
Earlier I got more weird messages on jetson like when enabling slcan on my tty device like Input/Output error, baud rate not correct(0), etc.
I need help sorting it all out.
My l4t version: 36.4.4
Jetson Orin Nano Dev kit
Used this page to install all requirements: Kernel Customization — NVIDIA Jetson Linux Developer Guide
and followed generally flashing for sd-card inserted in jetson: sudo ./flash.sh jetson-orin-nano-devkit mmcblk0p1
Let me know if need any other details
Thanks