[MinnowBoard] I2C with MPU6050
Soussi, El-Houari
elhouari.soussi at intel.com
Thu Oct 16 07:22:54 UTC 2014
* Seems like Ubuntu 14.04 does not export the GPIO hence there is no /sys/class/gpio
The presence of /sys/class/gpio depends on the kernel configuration and not on the OS.
To enable this feature, you have to recompile the kernel after setting GPIO support and the "/sys/class/gpio/ (sysfs interface)"
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gpio-sysfs
If you need only I2C, why are you trying to export a GPIO ?
BTW I was in the same situation, I could detect nothing on the I2C lines. To fix this, I took the official kernel sources of the version 3.14.19 and I replaced the src of file i2c-designware-pcidrv.c (under <linux-3.14.19>/driver/i2c/busses) by the last official version of this file. If you take a look in the source code, you will see some part of code relating baytrail.
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/i2c/busses/i2c-designware-pcidrv.c
After recompiling and installing the kernel, I was able to communicate with the device trough the I2C lines.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20141016/eb850825/attachment.html>
More information about the elinux-MinnowBoard
mailing list