在u-boot bootargs中添加can0来使能CAN接口,例如如下设置:
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw keep_bootcon can0
using following 2 commands to enable CAN interface:
root@freescale ~$ ip link set can0 up type can bitrate 125000
flexcan imx6q-flexcan.0: writing ctrl=0x0e312005
root@freescale ~$ ip link set can1 up type can bitrate 125000