All of lore.kernel.org
 help / color / mirror / Atom feed
* Trouble with IIO dummy build.
@ 2017-03-11 14:26 Varsha Rao
  2017-03-11 15:19 ` Narcisa Vasile
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Varsha Rao @ 2017-03-11 14:26 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 2507 bytes --]

 
 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

[-- Attachment #1.2: Type: text/html, Size: 3173 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-03-16  2:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 14:26 Trouble with IIO dummy build Varsha Rao
2017-03-11 15:19 ` Narcisa Vasile
2017-03-11 16:36   ` Varsha Rao
2017-03-11 17:53 ` [Outreachy kernel] " Daniel Baluta
2017-03-12  9:28   ` Varsha Rao
2017-03-15  2:07 ` Varsha Rao
2017-03-15  2:54   ` [Outreachy kernel] " Alison Schofield
2017-03-15  8:44     ` Varsha Rao
2017-03-15 11:57   ` Daniel Baluta
2017-03-15 14:58     ` Varsha Rao
2017-03-15 15:04       ` Daniel Baluta
2017-03-15 15:44         ` Varsha Rao
2017-03-15 15:54           ` Daniel Baluta
2017-03-15 16:31             ` Varsha Rao
2017-03-15 22:00               ` Ioana Ciornei
2017-03-16  2:16                 ` Varsha Rao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.