Code:
pi@pi5:~ $ sudo modprobe configspi@pi5:~ $ zgrep SENSORS_ADS7828 /proc/config.gz # CONFIG_SENSORS_ADS7828 is not setOur docs on building the kernel for Raspberry Pi OS are at https://www.raspberrypi.com/documentati ... l#building
After the "make bcm2711_defconfig" step use "make menuconfig" (or other route) to edit the config and enable CONFIG_SENSORS_ADS7828 before compiling. (Quickest way is to press "/" to start a search, enter "ADS7828" and press return. You then get the option listed, and can press "1" to jump straight to the config option).
If you wished to create a patch that merges your overlay fragment into the https://github.com/raspberrypi/linux/bl ... ommon.dtsi, and adds a README entry, and then a second patch that updates the defconfigs (arm and arm64), it would almost certainly be accepted via a Pull Request. Then you wouldn't need to worry about rebuilding the kernel yourself to enable the module.
https://github.com/raspberrypi/linux/pull/6629 did exactly that for the INA238 sensor if you want a template.
Statistics: Posted by 6by9 — Thu Apr 17, 2025 2:40 pm