<div dir="ltr"><div><div>Hi El-Houari,<br><br>Thanks for the reply.<br><br></div>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 ?<br></div><br>Thanks<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 6:22 PM, Soussi, El-Houari <span dir="ltr"><<a href="mailto:elhouari.soussi@intel.com" target="_blank">elhouari.soussi@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">* Seems like Ubuntu 14.04 does not export the GPIO hence there is no /sys/class/gpio<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">The presence of /sys/class/gpio depends on the kernel configuration and not on the OS.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">To enable this feature, you have to recompile the kernel after setting GPIO support and the “/sys/class/gpio/ (sysfs interface)”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><a href="https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gpio-sysfs" target="_blank">https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gpio-sysfs</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If you need only I2C, why are you trying to export a GPIO ?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><a href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/i2c/busses/i2c-designware-pcidrv.c" target="_blank">https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/i2c/busses/i2c-designware-pcidrv.c</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">After recompiling and installing the kernel, I was able to communicate with the device trough the I2C lines.<u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
elinux-MinnowBoard mailing list<br>
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a><br>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>