On my custom build the CAN driver doesn't work, it seems like it's present and running but perhaps not configured correctly. I can see the drivers in place:
[root /]# lsmod Module Size Used by bufferclass_ti 5409 0 omaplfb 11513 1 musb_dsps 6444 0 musb_hdrc 52530 1 musb_dsps pvrsrvkm 174829 6 bufferclass_ti,omaplfb c_can_platform 4172 0 c_can 8180 1 c_can_platform can_dev 6951 1 c_can musb_am335x 1199 0
but when I try to set up the CAN driver it returns an error message:
[root /]# ip link set can0 type can bitrate 125000 triple-sampling on [root /]# ip link set can0 up [ 61.200946] c_can_platform 481cc000.d_can can0: setting BTR=1c0b BRPE=0000 [root /]# cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 interface = can0, family = 29, type = 3, proto = 1 socket: Address family not supported by protocol
The only messages I see in the boot log regarding the CAN are:
[ 4.129489] CAN device driver interface [ 4.311302] c_can_platform 481cc000.d_can: c_can_platform device registered (regs=fa1cc000, irq=68)
Is there anything obvious I can check with the configuration of the CAN driver that could be causing it to report "Address family not supported by protocol"?