* 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* Re: Trouble with IIO dummy build.
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-15 2:07 ` Varsha Rao
2 siblings, 1 reply; 16+ messages in thread
From: Narcisa Vasile @ 2017-03-11 15:19 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 3202 bytes --]
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
On Saturday, March 11, 2017 at 4:26:01 PM UTC+2, Varsha Rao wrote:
>
>
> 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: 3916 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Trouble with IIO dummy build.
2017-03-11 14:26 Trouble with IIO dummy build Varsha Rao
2017-03-11 15:19 ` Narcisa Vasile
@ 2017-03-11 17:53 ` Daniel Baluta
2017-03-12 9:28 ` Varsha Rao
2017-03-15 2:07 ` Varsha Rao
2 siblings, 1 reply; 16+ messages in thread
From: Daniel Baluta @ 2017-03-11 17:53 UTC (permalink / raw)
To: Varsha Rao; +Cc: outreachy-kernel
On Sat, Mar 11, 2017 at 4:26 PM, Varsha Rao <rvarsha016@gmail.com> wrote:
>
> 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
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Trouble with IIO dummy build.
2017-03-11 14:26 Trouble with IIO dummy build Varsha Rao
2017-03-11 15:19 ` Narcisa Vasile
2017-03-11 17:53 ` [Outreachy kernel] " Daniel Baluta
@ 2017-03-15 2:07 ` Varsha Rao
2017-03-15 2:54 ` [Outreachy kernel] " Alison Schofield
2017-03-15 11:57 ` Daniel Baluta
2 siblings, 2 replies; 16+ messages in thread
From: Varsha Rao @ 2017-03-15 2:07 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 2729 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3465 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 2:07 ` Varsha Rao
@ 2017-03-15 2:54 ` Alison Schofield
2017-03-15 8:44 ` Varsha Rao
2017-03-15 11:57 ` Daniel Baluta
1 sibling, 1 reply; 16+ messages in thread
From: Alison Schofield @ 2017-03-15 2:54 UTC (permalink / raw)
To: Varsha Rao; +Cc: outreachy-kernel
On Tue, Mar 14, 2017 at 07:07:54PM -0700, Varsha Rao wrote:
> 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+.
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
>
> $ 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
>
> --
> 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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> 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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 2:07 ` Varsha Rao
2017-03-15 2:54 ` [Outreachy kernel] " Alison Schofield
@ 2017-03-15 11:57 ` Daniel Baluta
2017-03-15 14:58 ` Varsha Rao
1 sibling, 1 reply; 16+ messages in thread
From: Daniel Baluta @ 2017-03-15 11:57 UTC (permalink / raw)
To: Varsha Rao; +Cc: outreachy-kernel
On Wed, Mar 15, 2017 at 4:07 AM, Varsha Rao <rvarsha016@gmail.com> wrote:
> 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
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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 11:57 ` Daniel Baluta
@ 2017-03-15 14:58 ` Varsha Rao
2017-03-15 15:04 ` Daniel Baluta
0 siblings, 1 reply; 16+ messages in thread
From: Varsha Rao @ 2017-03-15 14:58 UTC (permalink / raw)
To: outreachy-kernel; +Cc: rvarsha016
[-- Attachment #1.1: Type: text/plain, Size: 1012 bytes --]
Hello,
>
> 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)
> we can go back and use your current config.
>
> thanks,
> Daniel.
>
[-- Attachment #1.2: Type: text/html, Size: 1424 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 14:58 ` Varsha Rao
@ 2017-03-15 15:04 ` Daniel Baluta
2017-03-15 15:44 ` Varsha Rao
0 siblings, 1 reply; 16+ messages in thread
From: Daniel Baluta @ 2017-03-15 15:04 UTC (permalink / raw)
To: Varsha Rao; +Cc: outreachy-kernel
On Wed, Mar 15, 2017 at 4:58 PM, Varsha Rao <rvarsha016@gmail.com> wrote:
>
> Hello,
>>
>>
>> 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.
This is fine, because the modules are already in the kernel image.
>
> 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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 15:04 ` Daniel Baluta
@ 2017-03-15 15:44 ` Varsha Rao
2017-03-15 15:54 ` Daniel Baluta
0 siblings, 1 reply; 16+ messages in thread
From: Varsha Rao @ 2017-03-15 15:44 UTC (permalink / raw)
To: Daniel Baluta; +Cc: outreachy-kernel
Hello,
> 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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 15:44 ` Varsha Rao
@ 2017-03-15 15:54 ` Daniel Baluta
2017-03-15 16:31 ` Varsha Rao
0 siblings, 1 reply; 16+ messages in thread
From: Daniel Baluta @ 2017-03-15 15:54 UTC (permalink / raw)
To: Varsha Rao; +Cc: outreachy-kernel
On Wed, Mar 15, 2017 at 5:44 PM, Varsha Rao <rvarsha016@gmail.com> wrote:
> Hello,
>
>> 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.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 15:54 ` Daniel Baluta
@ 2017-03-15 16:31 ` Varsha Rao
2017-03-15 22:00 ` Ioana Ciornei
0 siblings, 1 reply; 16+ messages in thread
From: Varsha Rao @ 2017-03-15 16:31 UTC (permalink / raw)
To: Daniel Baluta; +Cc: outreachy-kernel
Hello,
>>
>> 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
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [Outreachy kernel] Re: Trouble with IIO dummy build.
2017-03-15 16:31 ` Varsha Rao
@ 2017-03-15 22:00 ` Ioana Ciornei
2017-03-16 2:16 ` Varsha Rao
0 siblings, 1 reply; 16+ messages in thread
From: Ioana Ciornei @ 2017-03-15 22:00 UTC (permalink / raw)
To: Varsha Rao; +Cc: Daniel Baluta, outreachy-kernel
Hi,
> Hello,
>>>
>>> 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"
>
lsmod does not list the drivers that are compiled into the kernel but
only those that are inserted afterwards.
Ioana
> Thanks,
> Varsha
>
^ 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.