Tool/software:
Hi,
in kernel 4.19 we use bone-pinmux-helper (for switching at runtime from user space) which is deprecated now -> https://forum.beagleboard.org/t/reason-for-bone-pinmux-helper-driver-removal-in-6-1-69-ti-r20/38527. My question is what is the alternative now? I stumbled upon a solution where you can create two .dts and load them like this:
sudo mount -t configfs none /sys/kernel/config # Load GPIO overlay sudo mkdir /sys/kernel/config/device-tree/overlays/gpio_pin sudo cp gpio_pin.dtbo /sys/kernel/config/device-tree/overlays/gpio_pin/dtbo # Switch to UART overlay sudo mkdir /sys/kernel/config/device-tree/overlays/uart_pin sudo cp uart_pin.dtbo /sys/kernel/config/device-tree/overlays/uart_pin/dtbo # Remove GPIO overlay sudo rmdir /sys/kernel/config/device-tree/overlays/gpio_pin
When implementing I feel like following is needed:
CONFIG_OF_OVERLAY CONFIG_CONFIGFS_FS CONFIG_OF_CONFIGFS
But it seems that CONFIG_OF_CONFIGFS is not available at all, while the other two are.
cat build/linux-custom/.config | grep -E 'OF_OVERLAY|CONFIGFS_FS|OF_CONFIGFS' CONFIG_OF_OVERLAY=y CONFIG_CONFIGFS_FS=y
Am I on the correct track? Appreciate your help.