Skip to contentSkip to conversation

Trouble with IIO dummy build.

DISCUSSION Varsha Rao 5 participants 16 messages Mar 11, 2017 – Mar 16, 2017

lore
Share & tools
lore

Varsha Rao

author
#0 lore raw

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

#1 lore raw

Hi, Varsha

Maybe using modinfo command (modinfo iio_dummy.ko for example) will help you find more information about what you are trying to insert. It will output the dependencies, which I think will help you solve this problem since it seems to me that the error you got:
"Unknown symbol iio_bus_type" happens because of some missing dependency.

Also, do you get any error message when trying to mount?

Hope this helps,
Narcisa

Quoted 109 lines · Varsha Rao

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

author
#2 lore raw

Hey Narcisa,

Quoted 4 lines

Maybe using modinfo command (modinfo iio_dummy.ko for example) will help you find more information about what you are trying to insert

It will output the dependencies, which I think will help you solve this

Quoted 3 lines

problem since it seems to me that the error you got:
"Unknown symbol iio_bus_type" happens because of some missing dependency.

I had already checked with modinfo.
According to it iio_dummy depends on iio_dummy_evgen and nothing is
shown for iio_dummy_evgen.

Quoted 2 lines

Also, do you get any error message when trying to mount?

There was no error message. Thanks Narcisa, I will check again if
anything else is missing.

Thanks,
Varsha

#3 lore raw
In reply to Varsha Rao
Quoted 8 lines · Varsha Rao

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.
Quoted 9 lines

# 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

Having this should create /config/iio dir after
mounting configfs.

Can you please add a printk in iio_configfs_init function:

http://lxr.linux.no/#linux+v4.10.1/drivers/iio/industrialio-configfs.c#L37

Then use dmesg to check for the message.

Also, please apply this patch:

http://marc.info/?l=linux-iio&m=148907643001389&w=2

if you use CONFIG_IIO_SW_DEVICE=m

You can workaround the patch above if you select CONFIG_IIO_SW_DEVICE=y

Hope this helps,

Daniel.

author
#4 lore raw

Hello,

Thanks Daniel, finally it worked.

Having this should create /config/iio dir after

Quoted 9 lines

mounting configfs.

Can you please add a printk in iio_configfs_init function:

http://lxr.linux.no/#linux+v4.10.1/drivers/iio/industrialio-configfs.c#L37
<http://lxr.linux.no/#linux+v4.10.1/drivers/iio/industrialio-configfs.c%23L37>

Then use dmesg to check for the message.

Printk message is displayed in dmesg when CONFIG_IIO_SW_DEVICE=m.
It does not display when CONFIG_IIO_SW_DEVICE=y.

Quoted 9 lines

Also, please apply this patch:

http://marc.info/?l=linux-iio&m=148907643001389&w=2

if you use CONFIG_IIO_SW_DEVICE=m

You can workaround the patch above if you select CONFIG_IIO_SW_DEVICE=y

It works with CONFIG_IIO_SW_DEVICE=m and if patch is applied.
Both modules got loaded using modprobe.

$ lsmod | grep "iio"
iio_dummy              16384  0
industrialio_sw_device    16384  1 iio_dummy
kfifo_buf              16384  1 iio_dummy
iio_dummy_evgen        16384  1 iio_dummy
industrialio           69632  3 iio_dummy,iio_dummy_evgen,kfifo_buf 

Thanks,
Varsha

author
#5 lore raw
In reply to Varsha Rao

Hello,

I am again having issues with dummy modules compilation. I am unable to create sub directory after mounting.

 $ sudo mount -t configfs none /config
 $ sudo mkdir /config/iio/devices/dummy/my_dummy_device
  mkdir: cannot create directory 
‘/config/iio/devices/dummy/my_dummy_device’: Invalid argument

I have the following permissions set for the file.

drwxr-xr-x. 3 root root 0 Mar 15 07:06 .
dr-xr-xr-x. 19 root root 4096 Mar 14 23:55 ..
drwxr-xr-x. 3 root root 0 Mar 15 07:06 iio

I can create sub directory if the directory is not mounted.
I also have iio files created in /sys/kernel/config, even though I have
not mounted it.

 $ ls -al /sys/kernel/config/
  total 0
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 .
 drwxr-xr-x. 11 root root 0 Mar 15 06:28 ..
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 iio

As earlier these commands worked, don't know if this is causing the
problem.
I tried to mkdir in /config after unmounting /sys/kernel/config, it did
not work.

 $ cat /etc/mtab | grep "config"
 configfs /sys/kernel/config configfs rw,relatime 0 0
 none /config configfs rw,relatime 0 0

I am able to run the following commands successfully.
sudo modprobe iio_dummy_evgen
sudo modprobe iio_dummy
sudo mount -t configfs none /config
ls -l /sys/bus/iio/devices/iio_evgen/

I am using fedora 25 x86_64 with kernel version 4.11.0-rc1+.

 $ cat .config | grep IIO
# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_DVB_USB_FRIIO=m
# IIO staging drivers
CONFIG_IIO=m
CONFIG_IIO_BUFFER=y
CONFIG_IIO_BUFFER_CB=m
CONFIG_IIO_KFIFO_BUF=m
CONFIG_IIO_TRIGGERED_BUFFER=m
CONFIG_IIO_CONFIGFS=m
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
CONFIG_IIO_SW_DEVICE=m
CONFIG_IIO_SW_TRIGGER=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_SSP_SENSORHUB is not set
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_IIO_ST_LSM6DSX is not set
CONFIG_IIO_ADIS_LIB=m
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 is not set
CONFIG_IIO_INTERRUPT_TRIGGER=m
CONFIG_IIO_TIGHTLOOP_TRIGGER=m
# CONFIG_IIO_SYSFS_TRIGGER is not set
# CONFIG_IIO_ST_PRESS is not set

Any ideas?

Thanks,
Varsha

#6 lore raw
Quoted 33 lines · Varsha Rao

Hello,

I am again having issues with dummy modules compilation. I am unable to create sub directory after mounting.

 $ sudo mount -t configfs none /config
 $ sudo mkdir /config/iio/devices/dummy/my_dummy_device
  mkdir: cannot create directory 
‘/config/iio/devices/dummy/my_dummy_device’: Invalid argument

I have the following permissions set for the file.

drwxr-xr-x. 3 root root 0 Mar 15 07:06 .
dr-xr-xr-x. 19 root root 4096 Mar 14 23:55 ..
drwxr-xr-x. 3 root root 0 Mar 15 07:06 iio

I can create sub directory if the directory is not mounted.
I also have iio files created in /sys/kernel/config, even though I have
not mounted it.

 $ ls -al /sys/kernel/config/
  total 0
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 .
 drwxr-xr-x. 11 root root 0 Mar 15 06:28 ..
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 iio

As earlier these commands worked, don't know if this is causing the
problem.
I tried to mkdir in /config after unmounting /sys/kernel/config, it did
not work.

 $ cat /etc/mtab | grep "config"
 configfs /sys/kernel/config configfs rw,relatime 0 0
 none /config configfs rw,relatime 0 0
Quoted 7 lines

I am able to run the following commands successfully.
sudo modprobe iio_dummy_evgen
sudo modprobe iio_dummy
sudo mount -t configfs none /config
ls -l /sys/bus/iio/devices/iio_evgen/

I am using fedora 25 x86_64 with kernel version 4.11.0-rc1+.

Varsha,

Do you still have the patch applied?
per Daniel's previous email:

http://marc.info/?l=linux-iio&m=148907643001389&w=2
if you use CONFIG_IIO_SW_DEVICE=m

You can workaround the patch above if you select
CONFIG_IIO_SW_DEVICE=y

alisons

Quoted 56 lines
 
 $ cat .config | grep IIO
# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_DVB_USB_FRIIO=m
# IIO staging drivers
CONFIG_IIO=m
CONFIG_IIO_BUFFER=y
CONFIG_IIO_BUFFER_CB=m
CONFIG_IIO_KFIFO_BUF=m
CONFIG_IIO_TRIGGERED_BUFFER=m
CONFIG_IIO_CONFIGFS=m
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
CONFIG_IIO_SW_DEVICE=m
CONFIG_IIO_SW_TRIGGER=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_SSP_SENSORHUB is not set
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_IIO_ST_LSM6DSX is not set
CONFIG_IIO_ADIS_LIB=m
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 is not set
CONFIG_IIO_INTERRUPT_TRIGGER=m
CONFIG_IIO_TIGHTLOOP_TRIGGER=m
# CONFIG_IIO_SYSFS_TRIGGER is not set
# CONFIG_IIO_ST_PRESS is not set

Any ideas?

Thanks,
Varsha

Signature · 5 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/e64c8df1-dce6-42e3-b186-1c85380a2734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
author
#7 lore raw

Hello,

Do you still have the patch applied?

Quoted 9 lines

per Daniel's previous email:

http://marc.info/?l=linux-iio&m=148907643001389&w=2
if you use CONFIG_IIO_SW_DEVICE=m

You can workaround the patch above if you select
CONFIG_IIO_SW_DEVICE=y

Yes, I have the patch applied. Still it does not work.

Thanks,
Varsha

Quoted 3 lines

alisons

#8 lore raw
In reply to Varsha Rao
Quoted 39 lines · Varsha Rao

Hello,

I am again having issues with dummy modules compilation. I am unable to create sub directory after mounting.

 $ sudo mount -t configfs none /config
 $ sudo mkdir /config/iio/devices/dummy/my_dummy_device
  mkdir: cannot create directory
‘/config/iio/devices/dummy/my_dummy_device’: Invalid argument

I have the following permissions set for the file.

drwxr-xr-x. 3 root root 0 Mar 15 07:06 .
dr-xr-xr-x. 19 root root 4096 Mar 14 23:55 ..
drwxr-xr-x. 3 root root 0 Mar 15 07:06 iio

I can create sub directory if the directory is not mounted.
I also have iio files created in /sys/kernel/config, even though I have
not mounted it.

 $ ls -al /sys/kernel/config/
  total 0
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 .
 drwxr-xr-x. 11 root root 0 Mar 15 06:28 ..
 drwxr-xr-x.  3 root root 0 Mar 15 07:06 iio

As earlier these commands worked, don't know if this is causing the
problem.
I tried to mkdir in /config after unmounting /sys/kernel/config, it did
not work.

 $ cat /etc/mtab | grep "config"
 configfs /sys/kernel/config configfs rw,relatime 0 0
 none /config configfs rw,relatime 0 0

I am able to run the following commands successfully.
sudo modprobe iio_dummy_evgen
sudo modprobe iio_dummy
sudo mount -t configfs none /config
ls -l /sys/bus/iio/devices/iio_evgen/

Quoted 7 lines

I am using fedora 25 x86_64 with kernel version 4.11.0-rc1+.

 $ cat .config | grep IIO
# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_DVB_USB_FRIIO=m
# IIO staging drivers
CONFIG_IIO=m

My first thought on this is to compile everything related to IIO as Y not m. Then we can see
if there is some module dependency etc.

After we make everything work with module compiled in kernel image (y) we can go back and use your current config.

thanks,
Daniel.

author
#9 lore raw

Hello,

Quoted 5 lines

My first thought on this is to compile everything related to IIO as Y not m. Then we can see
if there is some module dependency etc.

I have configured accordingly but few could not be set to Y, as they
were dependent on some other module.
http://pastebin.com/49AvqiGP

After setting to Y, I am no longer able to load the modules successfully. Even though these commands execute with no errors.

sudo modprobe iio_dummy_evgen
sudo modprobe iio_dummy

   $ lsmod | grep "iio"  does not give any output.

But I can mount the config directory. After mounting, I cannot create
sub directory.

    $ sudo mount -t configfs none /config
    $ sudo mkdir /config/conf1
    mkdir: cannot create directory ‘/config/conf1’: Operation not permitted

Thanks,
Varsha

After we make everything work with module compiled in kernel image (y)

Quoted 5 lines

we can go back and use your current config.

thanks,
Daniel.

#10 lore raw
Quoted 9 lines · Varsha Rao

Hello,

Quoted 5 lines

My first thought on this is to compile everything related to IIO as Y not m. Then we can see
if there is some module dependency etc.

Quoted 6 lines

I have configured accordingly but few could not be set to Y, as they were
dependent on some other module.
http://pastebin.com/49AvqiGP

After setting to Y, I am no longer able to load the modules successfully. Even though these commands execute with no errors.

This is fine, because the modules are already in the kernel image.

Quoted 11 lines

sudo modprobe iio_dummy_evgen
sudo modprobe iio_dummy

   $ lsmod | grep "iio"  does not give any output.

But I can mount the config directory. After mounting, I cannot create
sub directory.

    $ sudo mount -t configfs none /config
    $ sudo mkdir /config/conf1
    mkdir: cannot create directory ‘/config/conf1’: Operation not permitted

You shouldn't need to create a directory inside /config. By selecting IIO configfs
in the kernel image, after mounting /config dir an /config/iio directory should be
automatically created.

It means that mounting of configfs failed silently somehow.

Can you tell us the result of mount command? This should list all mounted paths.

thanks,
daniel.

author
#11 lore raw

Hello,

Quoted 3 lines

It means that mounting of configfs failed silently somehow.

Can you tell us the result of mount command? This should list all mounted paths.

Kindly check the link.
http://pastebin.com/pfuP4cgU

Thanks,
Varsha

#12 lore raw
Quoted 8 lines · Varsha Rao

Hello,

Quoted 3 lines

It means that mounting of configfs failed silently somehow.

Can you tell us the result of mount command? This should list all mounted paths.

Kindly check the link.
http://pastebin.com/pfuP4cgU

Ok, so configfs is already mounted:

configfs on /sys/kernel/config type configfs (rw,relatime)

You should be able to see: /sys/kernel/config/iio and follow your work from here.

author
#13 lore raw

Hello,

Quoted 10 lines
Quoted 3 lines

Kindly check the link.
http://pastebin.com/pfuP4cgU

Ok, so configfs is already mounted:

configfs on /sys/kernel/config type configfs (rw,relatime)

You should be able to see: /sys/kernel/config/iio and follow your work from here.

It is mounted but it does not have iio file.

   $ ls -al /sys/kernel/config/
    total 0
   drwxr-xr-x.  2 root root 0 Mar 16  2017 .
   drwxr-xr-x. 11 root root 0 Mar 16  2017 ..

The modules did not get loaded.
As there was no output for $ lsmod | grep "iio"

Thanks,
Varsha

#14 lore raw

Hi,

Quoted 12 lines

Hello,

Quoted 10 lines
Quoted 3 lines

Kindly check the link.
http://pastebin.com/pfuP4cgU

Ok, so configfs is already mounted:

configfs on /sys/kernel/config type configfs (rw,relatime)

You should be able to see: /sys/kernel/config/iio and follow your work from here.

Quoted 9 lines

It is mounted but it does not have iio file.

   $ ls -al /sys/kernel/config/
    total 0
   drwxr-xr-x.  2 root root 0 Mar 16  2017 .
   drwxr-xr-x. 11 root root 0 Mar 16  2017 ..

The modules did not get loaded.
As there was no output for $ lsmod | grep "iio"

lsmod does not list the drivers that are compiled into the kernel but only those that are inserted afterwards.

Ioana

Quoted 3 lines

Thanks,
Varsha

author
#15 lore raw

Hello Ioana,

Quoted 8 lines

The modules did not get loaded.

Quoted 2 lines

As there was no output for $ lsmod | grep "iio"

lsmod does not list the drivers that are compiled into the kernel but only those that are inserted afterwards.

I had used modprobe to load the modules, later I grepped them. But

iio_dummy_evgen and modprobe iio_dummy were not listed in lsmod.

Thanks,
Varsha

Quoted 7 lines

Ioana

Quoted 3 lines

Thanks,
Varsha