I am stuck on trying to include the MPU6050 driver into Yocto. I am using a Raspberry Pi 3, and I am on the kirkstone branch. I've done the following steps to include the MPU6050 driver:
- Include a fragmentation file for the MPU6050 under /meta-raspberrypi/recipes-kernel/linux/files/
CONFIG_INV_MPU6050_IIO=m
CONFIG_INV_MPU6050_I2C=m
- Create a bbappend file under /meta-raspberrypi/recipes-kernel/
SRC_URI += "file://fragment.cfg;subdir=git"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
- Rebuild the image and flash
Then after finding the driver name, I successfully call modprobe on it. I see the driver under lsmod, but I am also expecting to see files under /sys/bus/iio/devices and I do not. Is this what I should be expecting, or what is the next step?
I'm quite new to Yocto and Linux in general, so I may be severely overlooking something.
So there were a couple things I missed:
local.conf.mpu-6050.cfglinux-raspberrypi_5.15.bbappendfile in my own layer