Is CAN supported/supportable yet in BSP for i.MX8 Apalis

Using out-of-the-box SD card with Early Access iMX8 card.

root@apalis-imx8:~# ip link set can0 type can bitrate 250000
root@apalis-imx8:~# ip link set can0 up
RTNETLINK answers: Operation not supported

I can set the type and bitrate but the link won’t come up… I’m sure I’m not doing something simple here.

Checked “confidential” to make sure this stays early access, feel free to alter if that’s not needed.

Good question. dmesg says:

[950332.756334] flexcan 5a8d0000.can can0: fd mode must be enabled

for every attempt to bring can0 up.

Thanks. Actually I mean the complete dmesg log from the boot to the sequence when you try to bring up the can.

OK. Attached.
link text

Thanks for the log. I can see only one strange thing:
fd mode must be enabled.
The rest looks ok.

In general, we won’t any further effort for any tests for this early silicon and wait for the next version.

Best regards, Jaski

hi @dgribben

Concerning CAN Interface in iMX8, you can put the property in “disable-fd-mode” in the device tree files to disable the fd mode and deploy the new dtb file to the module. Then the CAN interface will work.

Best regards, Jaski

Thank you very much for following up.

So all I need to do is replace the fsl-imx8qm-apalis.dtb file in /run/media/mmcblk1p1 and reboot?

Never done this before, don’t want to brick it.

yeah, you need to replace the .dtb file on the boot Partition named Boot Apalis. You won’t brick it. If something goes wrong, you can still recompile the image and copy to the sd-card following the instructions here.

… and can0 is up and shows up in ifconfig. On to wiring it up.


perfect, that it works. Thanks for the feedback.