X-GM-THRID: 6396247239473233920 Date: Sat, 11 Mar 2017 06:26:01 -0800 (PST) From: Varsha Rao To: outreachy-kernel Message-Id: <1a480897-bdb9-4d3c-8143-d5347f67c2b6@googlegroups.com> Subject: Trouble with IIO dummy build. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5605_2100085404.1489242361395" X-Google-Token: EPmRkMYF2cEyINPJ_8g0 X-Google-IP: 117.192.128.140 ------=_Part_5605_2100085404.1489242361395 Content-Type: multipart/alternative; boundary="----=_Part_5606_9919262.1489242361396" ------=_Part_5606_9919262.1489242361396 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, I am having issues with dummy modules compilation. I have selected the required config options. $ cat .config | grep IIO And output of it is as listed below. # CONFIG_SENSORS_IIO_HWMON is not set CONFIG_DVB_USB_FRIIO=m # IIO staging drivers CONFIG_IIO=y CONFIG_IIO_BUFFER=y CONFIG_IIO_BUFFER_CB=m CONFIG_IIO_KFIFO_BUF=y CONFIG_IIO_TRIGGERED_BUFFER=y CONFIG_IIO_CONFIGFS=y CONFIG_IIO_TRIGGER=y CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 CONFIG_IIO_SW_DEVICE=m CONFIG_IIO_SW_TRIGGER=m CONFIG_IIO_TRIGGERED_EVENT=m CONFIG_IIO_ST_ACCEL_3AXIS=m CONFIG_IIO_ST_ACCEL_I2C_3AXIS=m CONFIG_IIO_ST_ACCEL_SPI_3AXIS=m # Hid Sensor IIO Common CONFIG_HID_SENSOR_IIO_COMMON=m CONFIG_HID_SENSOR_IIO_TRIGGER=m CONFIG_IIO_MS_SENSORS_I2C=m CONFIG_IIO_SSP_SENSORS_COMMONS=m CONFIG_IIO_SSP_SENSORHUB=m CONFIG_IIO_ST_SENSORS_I2C=m CONFIG_IIO_ST_SENSORS_SPI=m CONFIG_IIO_ST_SENSORS_CORE=m # IIO dummy driver CONFIG_IIO_DUMMY_EVGEN=m CONFIG_IIO_SIMPLE_DUMMY=m CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y CONFIG_IIO_ST_GYRO_3AXIS=m CONFIG_IIO_ST_GYRO_I2C_3AXIS=m CONFIG_IIO_ST_GYRO_SPI_3AXIS=m CONFIG_INV_MPU6050_IIO=m CONFIG_IIO_ST_LSM6DSX=m CONFIG_IIO_ST_LSM6DSX_I2C=m CONFIG_IIO_ST_LSM6DSX_SPI=m CONFIG_IIO_ADIS_LIB=y CONFIG_IIO_ADIS_LIB_BUFFER=y CONFIG_IIO_ST_MAGN_3AXIS=m CONFIG_IIO_ST_MAGN_I2C_3AXIS=m CONFIG_IIO_ST_MAGN_SPI_3AXIS=m CONFIG_IIO_HRTIMER_TRIGGER=m CONFIG_IIO_INTERRUPT_TRIGGER=m CONFIG_IIO_TIGHTLOOP_TRIGGER=m CONFIG_IIO_SYSFS_TRIGGER=m # CONFIG_IIO_ST_PRESS is not set There is no iio directory created after mounting configfs. sudo mount -t configfs none /config config]$ ls -a . .. The following command execute without any error. $ make drivers/iio/dummy/iio_dummy_evgen.ko $ make drivers/iio/dummy/iio_dummy.ko I tried to load module with insmod, SELinux prevented access to it. $ insmod iio_dummy_evgen.ko $ insmod iio_dummy.ko So, I tried to load modules with modprobe. I used the following commands and they executed with errors. $ sudo modprobe iio_dummy_evgen modprobe: ERROR: could not insert 'iio_dummy_evgen': Unknown symbol in module, or unknown parameter (see dmesg) $ sudo modprobe iio_dummy modprobe: ERROR: could not insert 'iio_dummy': Unknown symbol in module, or unknown parameter (see dmesg) dmesg output [ 7093.419225] iio_dummy_evgen: Unknown symbol iio_bus_type (err 0) I am using fedora 25 x86_64 with kernel version 4.11.0-rc1+. Any idea to resolve this issue? Thanks, Varsha ------=_Part_5606_9919262.1489242361396 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=C2=A0
=C2=A0Hello,
=C2=A0
=C2=A0I am having issu= es with dummy modules compilation. I have selected the required config opti= ons.
=C2=A0$ cat .config | grep IIO
=C2=A0And output of it is as lis= ted below.

# CONFIG_SENSORS_IIO_HW= MON is not set
CONFIG_DVB_USB_FRIIO=3Dm
# IIO staging drivers
CONF= IG_IIO=3Dy
CONFIG_IIO_BUFFER=3Dy
CONFIG_IIO_BUFFER_CB=3Dm
CONFIG_I= IO_KFIFO_BUF=3Dy
CONFIG_IIO_TRIGGERED_BUFFER=3Dy
CONFIG_IIO_CONFIGFS= =3Dy
CONFIG_IIO_TRIGGER=3Dy
CONFIG_IIO_CONSUMERS_PER_TRIGGER=3D2
C= ONFIG_IIO_SW_DEVICE=3Dm
CONFIG_IIO_SW_TRIGGER=3Dm
CONFIG_IIO_TRIGGERE= D_EVENT=3Dm
CONFIG_IIO_ST_ACCEL_3AXIS=3Dm
CONFIG_IIO_ST_ACCEL_I2C_3AX= IS=3Dm
CONFIG_IIO_ST_ACCEL_SPI_3AXIS=3Dm
# Hid Sensor IIO Common
C= ONFIG_HID_SENSOR_IIO_COMMON=3Dm
CONFIG_HID_SENSOR_IIO_TRIGGER=3Dm
CON= FIG_IIO_MS_SENSORS_I2C=3Dm
CONFIG_IIO_SSP_SENSORS_COMMONS=3Dm
CONFIG_= IIO_SSP_SENSORHUB=3Dm
CONFIG_IIO_ST_SENSORS_I2C=3Dm
CONFIG_IIO_ST_SEN= SORS_SPI=3Dm
CONFIG_IIO_ST_SENSORS_CORE=3Dm
# IIO dummy driver
CON= FIG_IIO_DUMMY_EVGEN=3Dm
CONFIG_IIO_SIMPLE_DUMMY=3Dm
CONFIG_IIO_SIMPLE= _DUMMY_EVENTS=3Dy
CONFIG_IIO_SIMPLE_DUMMY_BUFFER=3Dy
CONFIG_IIO_ST_GY= RO_3AXIS=3Dm
CONFIG_IIO_ST_GYRO_I2C_3AXIS=3Dm
CONFIG_IIO_ST_GYRO_SPI_= 3AXIS=3Dm
CONFIG_INV_MPU6050_IIO=3Dm
CONFIG_IIO_ST_LSM6DSX=3Dm
CON= FIG_IIO_ST_LSM6DSX_I2C=3Dm
CONFIG_IIO_ST_LSM6DSX_SPI=3Dm
CONFIG_IIO_A= DIS_LIB=3Dy
CONFIG_IIO_ADIS_LIB_BUFFER=3Dy
CONFIG_IIO_ST_MAGN_3AXIS= =3Dm
CONFIG_IIO_ST_MAGN_I2C_3AXIS=3Dm
CONFIG_IIO_ST_MAGN_SPI_3AXIS=3D= m
CONFIG_IIO_HRTIMER_TRIGGER=3Dm
CONFIG_IIO_INTERRUPT_TRIGGER=3Dm
= CONFIG_IIO_TIGHTLOOP_TRIGGER=3Dm
CONFIG_IIO_SYSFS_TRIGGER=3Dm
# CONFI= G_IIO_ST_PRESS is not set

=C2=A0There is no iio directory crea= ted after mounting configfs.
=C2=A0sudo mount -t configfs none /config
=C2=A0 config]$ ls -a
=C2=A0 .=C2=A0 ..
=C2=A0
=C2=A0 The fo= llowing command execute without any error.
=C2=A0 $=C2=A0make=C2=A0d= rivers/iio/dummy/iio_dummy_evgen.ko

=C2=A0$=C2=A0make=C2=A0driv= ers/iio/dummy/iio_dummy.ko

=C2=A0
=C2=A0 I tried to= load module with insmod, SELinux prevented access to it.

<= p>=C2=A0=C2=A0=C2=A0 $=C2=A0insmod=C2=A0iio_dummy_evgen.ko

<= tt>=C2=A0=C2=A0=C2=A0 $=C2=A0insmod=C2=A0iio_dummy.ko


=C2=A0So, I tried to load modules with modprobe. I used the f= ollowing commands and they executed with errors.

=C2=A0 $ su= do modprobe iio_dummy_evgen

=C2=A0 modprobe: ERROR: could no= t insert 'iio_dummy_evgen': Unknown symbol in module, or unknown pa= rameter (see dmesg)


=C2=A0 $ sudo modpro= be iio_dummy

=C2=A0 modprobe: ERROR: could not insert 'i= io_dummy': Unknown symbol in module, or unknown parameter (see dmesg)

=C2=A0

=C2=A0 dmesg output

=C2=A0 [ 7093.419225] iio_dummy_evgen: Unknown symbol iio_bus_type (er= r 0)


=C2=A0I am using fedora 25 x86_= 64 with kernel version 4.11.0-rc1+.

=C2=A0

<= tt>=C2=A0Any idea to resolve this issue?


=C2=A0 Thanks,

=C2=A0 Varsha

------=_Part_5606_9919262.1489242361396-- ------=_Part_5605_2100085404.1489242361395--