[yocto] CAN bus protocol error

Søren Holm sgh at sgh.dk
Fri Jan 3 05:24:38 PST 2014


Hi Wuteng

I've attached a working defconfig for you to look at.

But it seems alright what you are doing. Have you tried doing a cleanall to 
ensure a complete rebuild with your configuration?

Fredag den 3. januar 2014 15:11:56 skrev wuteng wu:
> Hi,
> 
> I have cross compiled the canutils and installed it into the target rootfs,
> but when i tried to test the CAN bus by using the candump command as below:
> 
> candump can0
> interface = can0, family = 29, type = 3, proto = 1
> *socket: Protocol not supported*
> 
> I got the "socket: Protocol not supported" error msg, i have searched and
> found the related solution somewhere said that the 'can-raw protocol
> module' need to be included into the kernel. but how should i do that in
> yocto ?
> 
> the needed driver has to be loaded by executing the commands:
> 
> 
> 
> 
> *modprobe canmodprobe can-devmodprobe can-raw*
> 
> but only the module can is build-in.
> 
> It might be possible that the can-dev is also necessary.
> 
> anyone have experience to share with me ?
> 

-- 
Søren Holm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defconfig
Type: text/x-mpsub
Size: 63053 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140103/56437c9c/attachment.bin>


More information about the yocto mailing list