You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive the same permission error when using the c/c++ equivalents of the above example (iio_readev) packaged in libiio-utils. Again elevating permissions solves the issue.
The text was updated successfully, but these errors were encountered:
Creating an iio group and adding the user along with the addition of some udev rules solves my permissions issues.
# groupadd iio# usermod -aG iio $USER
/etc/udev/rules.d/90-iio.rules
# copy owner permissions to group (chmod g=u ...) change group to iio (chgrp iio)
SUBSYSTEM=="iio", RUN+="/bin/sh -c 'chgrp -R iio /sys/bus/iio/devices/$kernel/ && chmod -R g=u /sys/bus/iio/devices/$kernel'"
SUBSYSTEM=="iio", KERNEL=="iio:device*", RUN+="/bin/sh -c 'chgrp iio /dev/$kernel && chmod g=u /dev/$kernel'"
Are there security concerns around modifying the group and permissions of the files? As a userspace library to access iio devices, shouldn't these rules, or some equivalent, be shipped with these packages?
I am unable to create a buffer with pylibiio unless I run my code with elevated permissions.
Raspberry Bookworm 6.6.62, installed via apt (python3-libiio)
iio backend version: v24.4
Testing with python example code
To demonstrate I pulled the example python code in this repo. I am also unable to create a buffer in my attempts.
Example code: https://github.com/analogdevicesinc/libiio/tree/main/bindings/python/examples
More info regarding my situation, MPU9250 (IMU) is connect via i2c and using the inv-mpu6050 driver
This shouldn't error:
Elevating permission works:
I receive the same permission error when using the c/c++ equivalents of the above example (iio_readev) packaged in libiio-utils. Again elevating permissions solves the issue.
The text was updated successfully, but these errors were encountered: