With the caution that I'm a bit clumsy at Yocto myself, here's how I did it, using kernel fragments.
So in meta-myboard/recipes-kernel/linux/ I have something like the attached .bbappend file. 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. 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 My build bblayers.conf file includes the meta-myboard directory in the BBLAYERS ?= line. I'm using bitbake -c cleansstate linux-yocto bitbake -c compile linux-yocto bitbake linux-yocto to do a clean build of the kernel. FWIW, John On Fri, Jan 3, 2014 at 8:34 AM, wuteng wu <wuten...@gmail.com> wrote: > 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 <wuten...@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 <s...@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 >> >> >> > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > >
can-socket-support-kernel.cfg
Description: Binary data
linux-yocto_3.8.bbappend
Description: Binary data
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto