CANBus interface for i.MX8QM MEK board

cancel
Showing results for 
Search instead for 
Did you mean: 

CANBus interface for i.MX8QM MEK board

Jump to solution
366 Views
Contributor III

Hello,

My aim is to enable the CAN interface for the i.MX8QM MEK attached to the base board. I'm running Android 10 (imx-android-10.0.0_2.3.0). I can't find the CAN interface when I execute 'ifconfig -a'. I noticed that the base board supports CAN FD which I believe is not supported for Android. Is there a way to use the legacy CAN utilities? I've tried disabling CAN FD in the device tree as suggested here. However, I still haven't been able to view my CAN interfaces.

Thanks!

Tags (3)
0 Kudos
1 Solution
181 Views
Contributor III

I have solved this issue. The device tree blob includes imx8qm-mek-ov5640.dts which includes another device tree file called imx8qm-mek-rpmsg.dts that overrides the configurations for the FlexCAN and regulators' status to be disabled in imx8qm-mek.dts. I am relatively new to Android source code so it wasn't obvious for me to check the device tree files for camera display. Hopefully this helps anyone else who has this problem!

View solution in original post

5 Replies
182 Views
Contributor III

I have solved this issue. The device tree blob includes imx8qm-mek-ov5640.dts which includes another device tree file called imx8qm-mek-rpmsg.dts that overrides the configurations for the FlexCAN and regulators' status to be disabled in imx8qm-mek.dts. I am relatively new to Android source code so it wasn't obvious for me to check the device tree files for camera display. Hopefully this helps anyone else who has this problem!

View solution in original post

279 Views
NXP TechSupport
NXP TechSupport

Hello,

Do you use the M4? By default, SCFW assigns CAN resources to M4 app. 

So if you use M4 and you don't need CAN on M4 partition, then you need to comment this line 

BRD_ERR(rm_set_resource_movable(pt_boot, SC_R_CAN_0, SC_R_CAN_2, SC_TRUE));

from void board_system_config(sc_bool_t early, sc_rm_pt_t pt_boot), board.c of SCFW porting kit.

 

Hope it helps!

BR,

Ivan.

0 Kudos
262 Views
Contributor III

Hello Ivan,

 

Thank you for your input! Unfortunately, your suggestion did not solve my issue. I'm still unable to bring up the CAN interface after removing CAN from the M4 partition. Do I need to allocate those resources for my A53 or my A72 partition?

 

Best regards,

tpe

0 Kudos
225 Views
NXP TechSupport
NXP TechSupport

Hello,

 

If the SC_CAN_* was removed from M4 partition, by default, those resources should be moved to A partition.

Can you please provide a boot log and the used dtsi/dts?

 

BR,

Ivan.

0 Kudos
217 Views
Contributor III

Hello,

 

Attached is my bootlog. I'm using the default imx8qm-mek.dts and imx8qm.dtsi files with the exception of disabling CAN FD for the three CAN devices. I noticed that my device tree FlexCAN configurations hold true for everything except the status was disabled. This is strange because when I decompiled the dtb, the status message was set to okay. I've also ran 'zcat proc/config.gz | grep CAN' to verify that FlexCAN was enabled by the kernel.

 

Thanks!

0 Kudos