[yocto] CAN bus protocol error

wuteng wu wutengss at gmail.com
Tue Jan 7 00:13:35 PST 2014


Hi,

Could you please tell me more details about the contents of the
can-socket-support-kernel.cfg file ?


I have put:


CONFIG_CAN_RAW=y

CONFIG_CAN_BCM=y

CONFIG_CAN_GW=y


into it, is that enough, or any other config needed?


BR,

Teng





2014/1/3 wuteng wu <wutengss at gmail.com>

> Hi,
>
> I think i have just found where to do the configure, under the dir:
> /poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek, i will try out your
> config file, thanks alot.
>
>
> 2014/1/3 wuteng wu <wutengss at gmail.com>
>
>> Hi, could you tell me how to clean and rebuild the kernel?
>> I'm newbie to yocto, i have done something like linux-menuconfig when i
>> used the build-root, bu which i can config the kernel configuration, but i
>> don't know how to do it in yocto, at least i didn't find any reference in
>> ref-manual.
>>
>>
>> 2014/1/3 Søren Holm <sgh at sgh.dk>
>>
>>> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140107/4e51fb84/attachment.html>


More information about the yocto mailing list