Skip to contentSkip to conversation

Module load error

IIO Task1 Aishwarya Pant 3 participants 5 messages Mar 11, 2017 – Mar 12, 2017

lore
Share & tools
lore
#0 lore raw

Hi

When I try to load the modules iio_dummy and iio_dummy_evgen, I see the following error in dmesg:

iio_dummy_evgen: exports duplicate symbol iio_dummy_evgen_get_irq (owned by kernel)

Looks like I've got a circular dependency, something that should have been added as a module (or not at all) is built-in by default. Here is the config I've got:

#
# 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_CONFIGFS=y

Any leads for where the error is popping from?

Thanks
Aishwarya

#1 lore raw
Quoted 21 lines · Aishwarya Pant

Hi

When I try to load the modules iio_dummy and iio_dummy_evgen, I see the following error in dmesg:

iio_dummy_evgen: exports duplicate symbol iio_dummy_evgen_get_irq (owned by kernel)

Looks like I've got a circular dependency, something that should have been added as a module (or not at all) is built-in by default. Here is the config I've got:

#
# 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_CONFIGFS=y

Quoted 1 line

Any leads for where the error is popping from?

Hi,

Is that the only error related to IIO in dmesg?

Can you please post the output from:

cat .config | grep IIO

and

dmesg | grep iio

#2 lore raw
Quoted 24 lines · Daniel Baluta
Quoted 21 lines · Aishwarya Pant

Hi

When I try to load the modules iio_dummy and iio_dummy_evgen, I see the following error in dmesg:

iio_dummy_evgen: exports duplicate symbol iio_dummy_evgen_get_irq (owned by kernel)

Looks like I've got a circular dependency, something that should have been added as a module (or not at all) is built-in by default. Here is the config I've got:

#
# 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_CONFIGFS=y

Quoted 1 line

Any leads for where the error is popping from?

Quoted 8 lines

Hi,

Is that the only error related to IIO in dmesg?

Can you please post the output from:

cat .config | grep IIO

# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
CONFIG_IIO_KFIFO_BUF=m
CONFIG_IIO_CONFIGFS=y
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
CONFIG_IIO_SW_DEVICE=y
CONFIG_IIO_SW_TRIGGER=m
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
# Hid Sensor IIO Common
CONFIG_HID_SENSOR_IIO_COMMON=y
CONFIG_HID_SENSOR_IIO_TRIGGER=y
# 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 is not set
# CONFIG_IIO_ST_LSM6DSX is not set
# CONFIG_IIO_ST_MAGN_3AXIS is not set
# CONFIG_IIO_HRTIMER_TRIGGER is not set
# CONFIG_IIO_INTERRUPT_TRIGGER is not set
# CONFIG_IIO_TIGHTLOOP_TRIGGER is not set
# CONFIG_IIO_SYSFS_TRIGGER is not set
# CONFIG_IIO_ST_PRESS is not set

Quoted 4 lines

and

dmesg | grep iio

[  217.380166] iio_dummy_evgen: exports duplicate symbol
iio_dummy_evgen_get_irq (owned by kernel)
[  228.650871] iio_dummy_evgen: exports duplicate symbol

iio_dummy_evgen_get_irq (owned by kernel)

Nothing else just iio_dummy module load error.

#3 lore raw
Quoted 63 lines · Aishwarya Pant
Quoted 24 lines · Daniel Baluta
Quoted 21 lines · Aishwarya Pant

Hi

When I try to load the modules iio_dummy and iio_dummy_evgen, I see the following error in dmesg:

iio_dummy_evgen: exports duplicate symbol iio_dummy_evgen_get_irq (owned by kernel)

Looks like I've got a circular dependency, something that should have been added as a module (or not at all) is built-in by default. Here is the config I've got:

#
# 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_CONFIGFS=y

Quoted 1 line

Any leads for where the error is popping from?

Quoted 8 lines

Hi,

Is that the only error related to IIO in dmesg?

Can you please post the output from:

cat .config | grep IIO

# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
CONFIG_IIO_KFIFO_BUF=m
CONFIG_IIO_CONFIGFS=y
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
CONFIG_IIO_SW_DEVICE=y
CONFIG_IIO_SW_TRIGGER=m
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
# Hid Sensor IIO Common
CONFIG_HID_SENSOR_IIO_COMMON=y
CONFIG_HID_SENSOR_IIO_TRIGGER=y
# 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 is not set
# CONFIG_IIO_ST_LSM6DSX is not set
# CONFIG_IIO_ST_MAGN_3AXIS is not set
# CONFIG_IIO_HRTIMER_TRIGGER is not set
# CONFIG_IIO_INTERRUPT_TRIGGER is not set
# CONFIG_IIO_TIGHTLOOP_TRIGGER is not set
# CONFIG_IIO_SYSFS_TRIGGER is not set
# CONFIG_IIO_ST_PRESS is not set

Quoted 3 lines

and

Quoted 7 lines
Quoted 1 line

dmesg | grep iio

[  217.380166] iio_dummy_evgen: exports duplicate symbol
iio_dummy_evgen_get_irq (owned by kernel)
[  228.650871] iio_dummy_evgen: exports duplicate symbol

iio_dummy_evgen_get_irq (owned by kernel)

Nothing else just iio_dummy module load error.

This is solved thanks. I had an issue with module dependencies.

#4 lore raw
Quoted 76 lines · Aishwarya Pant
Quoted 2 lines · Aishwarya Pant
Quoted 1 line · Daniel Baluta

On Sat, Mar 11, 2017 at 9:29 PM, Aishwarya Pant <[email protected]

Quoted 3 lines · <javascript:>> wrote:
Quoted 3 lines
Quoted 3 lines

Hi

When I try to load the modules iio_dummy and iio_dummy_evgen, I see

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

following error in dmesg:

iio_dummy_evgen: exports duplicate symbol iio_dummy_evgen_get_irq

(owned

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

by kernel)

Looks like I've got a circular dependency, something that should

have

Quoted 1 line
Quoted 1 line
Quoted 1 line

been added as a module (or not at all) is built-in by default. Here

is

Quoted 57 lines
Quoted 13 lines
Quoted 11 lines

the config I've got:

#
# 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_CONFIGFS=y

Quoted 1 line

Any leads for where the error is popping from?

Quoted 8 lines

Hi,

Is that the only error related to IIO in dmesg?

Can you please post the output from:

cat .config | grep IIO

# CONFIG_SENSORS_IIO_HWMON is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
CONFIG_IIO_KFIFO_BUF=m
CONFIG_IIO_CONFIGFS=y
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
CONFIG_IIO_SW_DEVICE=y
CONFIG_IIO_SW_TRIGGER=m
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
# Hid Sensor IIO Common
CONFIG_HID_SENSOR_IIO_COMMON=y
CONFIG_HID_SENSOR_IIO_TRIGGER=y
# 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 is not set
# CONFIG_IIO_ST_LSM6DSX is not set
# CONFIG_IIO_ST_MAGN_3AXIS is not set
# CONFIG_IIO_HRTIMER_TRIGGER is not set
# CONFIG_IIO_INTERRUPT_TRIGGER is not set
# CONFIG_IIO_TIGHTLOOP_TRIGGER is not set
# CONFIG_IIO_SYSFS_TRIGGER is not set
# CONFIG_IIO_ST_PRESS is not set

Quoted 4 lines

and

dmesg | grep iio

[  217.380166] iio_dummy_evgen: exports duplicate symbol 
iio_dummy_evgen_get_irq (owned by kernel) 
[  228.650871] iio_dummy_evgen: exports duplicate symbol 

iio_dummy_evgen_get_irq (owned by kernel)

Quoted 6 lines
Quoted 1 line

Nothing else just iio_dummy module load error.

This is solved thanks. I had an issue with module dependencies.

Hi Aishwarya,

Can you please share how you solved this.

Thanks in Advance!