I’v got a BBB Rev.C, and wanted to learn how to use yocto with it
.
I’m starting out using poky’s beaglebone-yocto build for a core-image-minimal and flashing it onto an SD card.
Using a custom meta-layer, I apply patches to modify the device tree to enable the can0 interface, but I still don’t see the can0 interface when running ip addr on BBB.
I’ve also modified the kernel config to support CAN.
How am I modifying the device tree?
using devtool, I create patches to am335x-bone.dts and am335x-boneblack.dts just in case.
They look like this:
in location: meta-bbb-custom/recipes-kernel/linux/linux-yocto
with the bbappend file:
meta-bbb/custom/recipes-kernel/linux/linux-yocto_6.6.bbappend
pointing to the patches.
Is there something I am missing?
This is a project I’m attempting to learn more about yocto, device tree and canbus, so any advice or improvements are appreciated.
I’ve continued playing with the device tree to no avail.
Instead of relying on yocto’s patches, I started manually editing the device tree for testing.
The device tree in question is : am335x-boneblack.dts from beaglebone-yocto.
I added the following, and although it shows up in the /proc/device-tree, I still don’t see a can1 interface.
Another attempt.
This time I went down to yocto version thud to user Kernnel linux 4.18 as that seems close to the one used in the debian version.
Made sure to compile the can drivers (dmesg | grep can:
can: controller area network core (rev 20170425 abi 9)
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1