i2c timeout with 4.10.0-42
I am trying to use this light sensor with an Up-board: https://www.adafruit.com/product/439
With kernel "Linux 4.10.0-42-generic #5000~upboard9-Ubuntu SMP Thu Dec 7 16:41:27 UTC 2017", I get the following errors and the sensor does not work:
Jan 15 17:41:13 ubuntu libmraa[1264]: Adding i2c bus found on i2c-8 on adapter .
Jan 15 17:41:13 ubuntu libmraa[1264]: Adding i2c bus found on i2c-7 on adapter .
Jan 15 17:41:15 ubuntu libmraa[1264]: i2c_init: Selected bus 1
Jan 15 17:41:15 ubuntu kernel: [ 6523.308087] i2c_designware 808622C1:00: timeout in disabling adapter
Jan 15 17:41:15 ubuntu libmraa[1264]: i2c7: write_byte_data: Access error: Connection timed out
Jan 15 17:41:15 ubuntu kernel: [ 6523.330686] i2c_designware 808622C1:00: timeout waiting for bus ready
Jan 15 17:41:16 ubuntu kernel: [ 6524.359733] i2c_designware 808622C1:00: timeout in disabling adapter
With an older kernel "Linux 4.4.0-2-upboard #6~14.04.1-Ubuntu SMP Thu Dec 1 15:11:56 UTC 2016", there are no errors and the light sensor works fine.
It is running libmraa v1.8.0
Is there a way to get i2C to work with the newer kernel?
Comments
-
Hi
I2C should work with the newer kernel
where is your sensor connected?
can you share the code that you are using?
What version of mraa where you using on kernel 4.4?
What Ubuntu version are you using?
please post the output of the sysinfo script as stated inhttps://wiki.up-community.org/Software#Requesting_support_for_Linux_OS
Best Regards
Nicola Lunghi -
The sensor is connected to i2C-1.
I am using the sample script here:
https://github.com/intel-iot-devkit/upm/blob/master/examples/python/tsl2561.py with the following change to use i2c-1
myDigitalLightSensor = upmTsl2561.TSL2561(1, 0x39)
I am using mraa version 1.8 with kernel 4.4.
Running Ubuntu 16.04
sysinfo script output is attached.