i2c timeout with 4.10.0-42

hjean
hjean New Member Posts: 2

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

Privacy Policy