I am trying to connect an OV7670 camera module to the board, but for it to work the module needs a clock signal. I am using a PWM pin (P9_42). But every time I reboot the device I need to config the pin again.
Is there anyway to make the pin configuration permanent so that it does not reset every time the device is restarted?
You can have the pins configured upon bootup with a custom device tree overlay.
Tools to make one: bb.org - overlay
If you follow the instructions listed in @RobertCNelson’s readme file then you should be able to get started making one. A little heads up, have a station you can load the SD card into to remodify the uENV.txt file if you happen to have boot issues.
Yes, you can specify the mux mode to connect the pin to the output of the eCAP module in a device tree blob. But can you configure the modules registers to generate a certain output?
I’d try a start script for systemd, ie. invoking a small libpruio prg to enable the desired output.