Skip to content

Build IIO software trigger modules? #4984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nwf opened this issue Apr 10, 2022 · 2 comments
Closed

Build IIO software trigger modules? #4984

nwf opened this issue Apr 10, 2022 · 2 comments

Comments

@nwf
Copy link
Contributor

nwf commented Apr 10, 2022

Describe the bug

By making use of the i2c-sensor overlay for a bme680, the iio subsystem creates files in /sys for the sensor's outputs, which is lovely... but neglects the entire kernel-side infrastructure for collecting samples in ring buffers. The bme680 does not, itself, export any triggers for this machinery, so it would be nice to have software-defined triggers available. Specifically, I think that means setting...

CONFIG_IIO_SW_TRIGGER=m
CONFIG_IIO_HRTIMER_TRIGGER=m
CONFIG_IIO_INTERRUPT_TRIGGER=m
CONFIG_IIO_SYSFS_TRIGGER=m

Steps to reproduce the behaviour

Enable the i2c-sensor overlay for a bme680 and observe that iio_info says "No trigger on this device" and enumerates no other triggers on the machine.

Device (s)

Raspberry Pi Zero W / WH

System

pi@pi0:~ $ cat /etc/rpi-issue 
Raspberry Pi reference 2022-01-28
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f01430c9d8f67a4b9719cc00e74a2079d3834d5d, stage2
pi@pi0:~ $ vcgencmd version
Jan 20 2022 13:58:22 
Copyright (c) 2012 Broadcom
version bd88f66f8952d34e4e0613a85c7a6d3da49e13e2 (clean) (release) (start)
pi@pi0:~ $ uname -a
Linux pi0 5.10.103+ #1530 Tue Mar 8 13:00:30 GMT 2022 armv6l GNU/Linux

Logs

No response

Additional context

No response

pelwell added a commit that referenced this issue Jul 20, 2022
pelwell added a commit that referenced this issue Jul 20, 2022
pelwell added a commit that referenced this issue Jul 20, 2022
@pelwell
Copy link
Contributor

pelwell commented Jul 20, 2022

Apologies - this is one of a number of issues from that time that have had no attention.

All the current branches should now include the necessary config settings. so future builds will ship with the required modules.

popcornmix added a commit to raspberrypi/firmware that referenced this issue Jul 22, 2022
kernel: dtoverlays: Add nohdmi options to vc4-kms-v3d overlays
raspberrypi/linux#5099

kernel: overlays: Make more overlays runtime-capable
See: raspberrypi/linux#5101

kernel: overlays: Mark more overlays as Pi4-specific

kernel: Revert ext4: make mb_optimize_scan performance mount option work with extents
See: raspberrypi/linux#5097

kernel: configs: Enable IIO software trigger modules
See: raspberrypi/linux#4984

kernel: configs: Enable IP_VS_IPV6 (for loadbalancing)
See: raspberrypi/linux#2860

kernel: configs: Enable CEPH_FS=m
See: raspberrypi/linux#2916

firmware: arm_loader: initramfs over NVME fix
See: #1731
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this issue Jul 22, 2022
kernel: dtoverlays: Add nohdmi options to vc4-kms-v3d overlays
raspberrypi/linux#5099

kernel: overlays: Make more overlays runtime-capable
See: raspberrypi/linux#5101

kernel: overlays: Mark more overlays as Pi4-specific

kernel: Revert ext4: make mb_optimize_scan performance mount option work with extents
See: raspberrypi/linux#5097

kernel: configs: Enable IIO software trigger modules
See: raspberrypi/linux#4984

kernel: configs: Enable IP_VS_IPV6 (for loadbalancing)
See: raspberrypi/linux#2860

kernel: configs: Enable CEPH_FS=m
See: raspberrypi/linux#2916

firmware: arm_loader: initramfs over NVME fix
See: raspberrypi/firmware#1731
popcornmix pushed a commit that referenced this issue Aug 1, 2022
popcornmix pushed a commit that referenced this issue Aug 1, 2022
popcornmix pushed a commit that referenced this issue Aug 1, 2022
herrnst pushed a commit to herrnst/linux-raspberrypi that referenced this issue Aug 7, 2022
popcornmix pushed a commit that referenced this issue Aug 15, 2022
popcornmix pushed a commit that referenced this issue Aug 15, 2022
popcornmix pushed a commit that referenced this issue Aug 23, 2022
@JinShil
Copy link

JinShil commented Nov 29, 2023

I've used these triggers in the latest Bullseye OS. I suppose this issue can be closed.

@pelwell pelwell closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants