Hi,
I had a yocto linux with which I was trying to build a custom linux for my beagle bone black. I built the image with the following conf
MACHINE ?= "beaglebone-yocto"
PACKAGE_CLASSES ?= "package_deb"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-sdk package-management"
PREFERRED_VERSION_linux-yocto ?= "5.15%"
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-modules"
CORE_IMAGE_EXTRA_INSTALL += "usbinit"
I also had a kernel patch that I had to add and configure usb and gpio support as well, I added this via a custom layer and the kernel config were as follows
CONFIG_USB_ETH=y
CONFIG_USB_G_NCM=m
CONFIG_USB_MASS_STORAGE=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_AGGREGATOR=y
CONFIG_GPIO_VIRTIO=y
As you can see I’ve configured the GPIO, but once I boot this build onto the black, there is no gpio
directory in /sys/class
. So, I’m not sure if I’m building it wrong or the way to access GPIO in this build is different. Any pointers or help is appreciated.
Thanks