<div dir="ltr"><div>With the caution that I'm a bit clumsy at Yocto myself, here's how I did it, using kernel fragments.</div><div><br></div><div>So in meta-myboard/recipes-kernel/linux/ I have something like the attached .bbappend file. </div>
<div>Then in meta-myboard/recipes-kernel/linux/linux-yocto is the can-socket-support-kernel.cfg file.  The version number in the bbappend name should match the kernel version you're building.  </div><div>You can add other .cfg files if you need other configuration changes, and still keep them separated by function, just add them to the list in the bbappend file</div>
<div>My build bblayers.conf file includes the meta-myboard directory in the BBLAYERS ?=  line.</div><div><br></div><div>I'm using </div><div>bitbake -c cleansstate linux-yocto</div><div>bitbake -c compile linux-yocto</div>
<div>bitbake linux-yocto</div><div><br></div><div>to do a clean build of the kernel. </div><div><br></div><div>FWIW,</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 8:34 AM, wuteng wu <span dir="ltr"><<a href="mailto:wutengss@gmail.com" target="_blank">wutengss@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>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.<br>
</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/3 wuteng wu <span dir="ltr"><<a href="mailto:wutengss@gmail.com" target="_blank">wutengss@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>Hi, could you tell me how to clean and rebuild the kernel? <br></div>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.<br>


</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/3 Søren Holm <span dir="ltr"><<a href="mailto:sgh@sgh.dk" target="_blank">sgh@sgh.dk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Wuteng<br>
<br>
I've attached a working defconfig for you to look at.<br>
<br>
But it seems alright what you are doing. Have you tried doing a cleanall to<br>
ensure a complete rebuild with your configuration?<br>
<br>
Fredag den 3. januar 2014 15:11:56 skrev wuteng wu:<br>
<div>> Hi,<br>
><br>
> I have cross compiled the canutils and installed it into the target rootfs,<br>
> but when i tried to test the CAN bus by using the candump command as below:<br>
><br>
> candump can0<br>
> interface = can0, family = 29, type = 3, proto = 1<br>
</div>> *socket: Protocol not supported*<br>
<div>><br>
> I got the "socket: Protocol not supported" error msg, i have searched and<br>
> found the related solution somewhere said that the 'can-raw protocol<br>
> module' need to be included into the kernel. but how should i do that in<br>
> yocto ?<br>
><br>
> the needed driver has to be loaded by executing the commands:<br>
><br>
><br>
><br>
><br>
</div>> *modprobe canmodprobe can-devmodprobe can-raw*<br>
<div><div>><br>
> but only the module can is build-in.<br>
><br>
> It might be possible that the can-dev is also necessary.<br>
><br>
> anyone have experience to share with me ?<br>
><span class="HOEnZb"><font color="#888888"><br>
<br>
</font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">--<br>
Søren Holm</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
<br></blockquote></div><br></div>