These are chat archives for agherzan/meta-raspberrypi

12th
Oct 2018
jostor
@jostor
Oct 12 2018 12:20
Hi! I am building a yocto image for Raspberry Pi. I want to include support for CAN bus. I think I need to add these parameters to the kernel configuration: CONFIG_CAN=y CONFIG_CAN_GS_USB=y. But I am not sure how to do it. Can anyone help me with this, please?
I have created a layer, and added /recipes-kernel/linux/linux-raspberrypi%.bbappend with FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://defconfig" in defconfig I have added CONFIG_CAN=y CONFIG_CAN_GS_USB=y Does this look correct?
When I run bitbake I get this warning: WARNING: linux-raspberrypi-1_4.14.68+gitAUTOINC+8c8666ff6c-r0 do_kernel_metadata: defconfig detected in WORKDIR. bcm2709_defconfig skipped Is this OK, or is it replacing the original config with my config instead of appending it?
The image is not booting with this, so it looks like something is wrong
Andrei Gherzan
@agherzan
Oct 12 2018 13:03
I think it will replace. You need a config cfg file @jostor.
jostor
@jostor
Oct 12 2018 13:16
Thanks @agherzan ! Should I do it the same way, just renaming my defconfig file to something like can.cfg ?
Andrei Gherzan
@agherzan
Oct 12 2018 13:40
Yes. That should work.
jostor
@jostor
Oct 12 2018 13:43
Yes. It worked! Thanks @agherzan Have a nice weekend!
Andrei Gherzan
@agherzan
Oct 12 2018 13:56
You too.