[MinnowBoard] I2C with MPU6050
Nanik T
nanikjava at gmail.com
Thu Oct 16 07:42:02 UTC 2014
Hi El-Houari,
Thanks for the reply.
I exported the GPIO as I was directed by someone who was able to resolve
this kind of problem by exporting 220 to /sys/class/gpio so was following
that. In terms of the fix that you have done that's for 3.14 while as I
mentioned I tried with 14.10 beta 2 which uses 3.16 which I assume should
have the fix that you mention or I was just making assumption that the fix
is in 3.16 ?
Thanks
On Thu, Oct 16, 2014 at 6:22 PM, Soussi, El-Houari <
elhouari.soussi at intel.com> wrote:
> * 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.
>
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20141016/dc6f47c6/attachment.html>
More information about the elinux-MinnowBoard
mailing list