<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Yet more on GPIO interrupts]]></title><description><![CDATA[<p dir="auto">With reference to these two earlier topics:</p>
<ul>
<li><a href="https://community.onion.io/topic/298/need-help-for-https-github-com-onioniot-gpio-test" rel="nofollow">https://community.onion.io/topic/298/need-help-for-https-github-com-onioniot-gpio-test</a></li>
<li><a href="https://community.onion.io/topic/369/gpio-access-with-interrupts-and-sys-class-gpio" rel="nofollow">https://community.onion.io/topic/369/gpio-access-with-interrupts-and-sys-class-gpio</a><br />
I have been doing more work on trying to get interrupt handling of GPIO pins working.</li>
</ul>
<p dir="auto">Using build of relevant packages using information covered in:</p>
<ul>
<li><a href="https://wiki.onion.io/Tutorials/Cross-Compile" rel="nofollow">https://wiki.onion.io/Tutorials/Cross-Compile</a></li>
<li>And also <a href="https://community.onion.io/topic/396/some-observations-on-https-wiki-onion-io-tutorials-cross-compile" rel="nofollow">https://community.onion.io/topic/396/some-observations-on-https-wiki-onion-io-tutorials-cross-compile</a></li>
</ul>
<p dir="auto">I have built (and I believe successfully installed) .ipk packages for:</p>
<ul>
<li>gpio-irq - see: <a href="https://github.com/OnionIoT/gpio-irq" rel="nofollow">https://github.com/OnionIoT/gpio-irq</a></li>
<li>gpio-test - see: <a href="https://github.com/OnionIoT/gpio-test" rel="nofollow">https://github.com/OnionIoT/gpio-test</a></li>
</ul>
<p dir="auto">However, while I believe I have got further than before, I am still having some problems.<br />
Specifically running <strong>gpio-test 0</strong> (which should detect a change on GPIO pin 0) does not appear to work (even though I can independently verity that the input state on GPIO pin 0 does change appropriately).  I get the output:</p>
<ul>
<li><strong>Waiting GPIO 0 signals...</strong></li>
</ul>
<p dir="auto">and no further output.</p>
<p dir="auto">However, I do note the following possible issues in relation to <strong>gpio-irq</strong>:</p>
<ol>
<li>There is the following comment in the <strong><a href="http://README.md" rel="nofollow">README.md</a></strong> file for <strong>gpio-irq</strong>:
<ul>
<li><strong>Needs kernel patch &lt;a href="<a href="https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.14" rel="nofollow">https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.14</a>"&gt;728-MIPS-ath79-add-gpio-irq.patch&lt;/a&gt; by GBert to function.</strong><br />
<em>Does anyone know whether or not this patch is part of the kernel on the Omega?</em></li>
</ul>
</li>
<li>The <strong>gpio-irq</strong> package needs to be installed using <strong>opkg -force-depends ...</strong> since it reports that a later version of the kernel is required - this may be related to the previous point<br />
<em>Does anyone have any info on this too?</em></li>
</ol>
<p dir="auto">Thanks in advance for any responses <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
]]></description><link>http://community.onion.io/topic/401/yet-more-on-gpio-interrupts</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 08:57:38 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/401.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jan 2016 03:31:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 08 Jan 2016 03:31:36 GMT]]></title><description><![CDATA[<p dir="auto">With reference to these two earlier topics:</p>
<ul>
<li><a href="https://community.onion.io/topic/298/need-help-for-https-github-com-onioniot-gpio-test" rel="nofollow">https://community.onion.io/topic/298/need-help-for-https-github-com-onioniot-gpio-test</a></li>
<li><a href="https://community.onion.io/topic/369/gpio-access-with-interrupts-and-sys-class-gpio" rel="nofollow">https://community.onion.io/topic/369/gpio-access-with-interrupts-and-sys-class-gpio</a><br />
I have been doing more work on trying to get interrupt handling of GPIO pins working.</li>
</ul>
<p dir="auto">Using build of relevant packages using information covered in:</p>
<ul>
<li><a href="https://wiki.onion.io/Tutorials/Cross-Compile" rel="nofollow">https://wiki.onion.io/Tutorials/Cross-Compile</a></li>
<li>And also <a href="https://community.onion.io/topic/396/some-observations-on-https-wiki-onion-io-tutorials-cross-compile" rel="nofollow">https://community.onion.io/topic/396/some-observations-on-https-wiki-onion-io-tutorials-cross-compile</a></li>
</ul>
<p dir="auto">I have built (and I believe successfully installed) .ipk packages for:</p>
<ul>
<li>gpio-irq - see: <a href="https://github.com/OnionIoT/gpio-irq" rel="nofollow">https://github.com/OnionIoT/gpio-irq</a></li>
<li>gpio-test - see: <a href="https://github.com/OnionIoT/gpio-test" rel="nofollow">https://github.com/OnionIoT/gpio-test</a></li>
</ul>
<p dir="auto">However, while I believe I have got further than before, I am still having some problems.<br />
Specifically running <strong>gpio-test 0</strong> (which should detect a change on GPIO pin 0) does not appear to work (even though I can independently verity that the input state on GPIO pin 0 does change appropriately).  I get the output:</p>
<ul>
<li><strong>Waiting GPIO 0 signals...</strong></li>
</ul>
<p dir="auto">and no further output.</p>
<p dir="auto">However, I do note the following possible issues in relation to <strong>gpio-irq</strong>:</p>
<ol>
<li>There is the following comment in the <strong><a href="http://README.md" rel="nofollow">README.md</a></strong> file for <strong>gpio-irq</strong>:
<ul>
<li><strong>Needs kernel patch &lt;a href="<a href="https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.14" rel="nofollow">https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.14</a>"&gt;728-MIPS-ath79-add-gpio-irq.patch&lt;/a&gt; by GBert to function.</strong><br />
<em>Does anyone know whether or not this patch is part of the kernel on the Omega?</em></li>
</ul>
</li>
<li>The <strong>gpio-irq</strong> package needs to be installed using <strong>opkg -force-depends ...</strong> since it reports that a later version of the kernel is required - this may be related to the previous point<br />
<em>Does anyone have any info on this too?</em></li>
</ol>
<p dir="auto">Thanks in advance for any responses <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
]]></description><link>http://community.onion.io/post/3189</link><guid isPermaLink="true">http://community.onion.io/post/3189</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 08 Jan 2016 03:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 08 Jan 2016 03:42:23 GMT]]></title><description><![CDATA[<p dir="auto">Additional relevant comments on this.</p>
<p dir="auto">The code in gpio-test has the following:</p>
<ul>
<li>
<p dir="auto">fd=open("/sys/kernel/debug/gpio-irq", O_WRONLY);<br />
if(fd &lt; 0)<br />
{<br />
perror("open");<br />
return false;<br />
}</p>
<p dir="auto">sprintf(buf, "+ %d %i", gpio, getpid());</p>
<p dir="auto">if(write(fd, buf, strlen(buf) + 1) &lt; 0)<br />
{<br />
perror("write");<br />
close(fd);<br />
return false;<br />
}</p>
</li>
</ul>
<p dir="auto">This code appears to run OK with no errors and should have written to the file <strong>/sys/kernel/debug/gpio-irq</strong> - this file exists and appears to have the correct access rights, yet after running the code, this file is empty.</p>
<p dir="auto">This file should (once <strong>gpio-test</strong> is running) have the contents:</p>
<ul>
<li><strong>+ n p</strong> where <strong>n</strong> is the GPIO pin number and <strong>p</strong> is the process id</li>
</ul>
<p dir="auto">On termination of <strong>gpio-test</strong> it should have contents:</p>
<ul>
<li><strong>- n p</strong> where <strong>n</strong> is the GPIO pin number and <strong>p</strong> is the process id</li>
</ul>
<p dir="auto">Yet the file appears to never change <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--disappointed" title=":-(" alt="😞" /></p>
]]></description><link>http://community.onion.io/post/3190</link><guid isPermaLink="true">http://community.onion.io/post/3190</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 08 Jan 2016 03:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 08 Jan 2016 07:07:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>, I believe i've sent you the source to that patch a while ago in a separate post. Currently the patch hasn't been implemented in the Omega firmware. Here's the link again for the patch for kernel version 3.18: <a href="https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.18" rel="nofollow">https://github.com/GBert/openwrt-misc/tree/master/gpio-test/src/patches-3.18</a>.</p>
]]></description><link>http://community.onion.io/post/3191</link><guid isPermaLink="true">http://community.onion.io/post/3191</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 08 Jan 2016 07:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 08 Jan 2016 07:17:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Thanks - I must have overlooked it.  I will try installing the patch and rebuilding and see what happens.<br />
Apologies for wasting your time <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--disappointed" title=":-(" alt="😞" /></p>
]]></description><link>http://community.onion.io/post/3192</link><guid isPermaLink="true">http://community.onion.io/post/3192</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 08 Jan 2016 07:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Sat, 09 Jan 2016 05:38:19 GMT]]></title><description><![CDATA[<p dir="auto"><strong>YAY!!</strong> I Have got GPIO interrupts working from user mode C/C++ code. <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
<p dir="auto">For the record, I did the following:</p>
<ol>
<li>Applied this <a href="https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch" rel="nofollow">patch</a> to the OpenWrt sources (as in <a href="https://wiki.onion.io/Tutorials/Cross-Compile" rel="nofollow">https://wiki.onion.io/Tutorials/Cross-Compile</a>)</li>
<li>Built a release using these sources including <strong>gpio-irq</strong> (i.e. <strong>kmod-gpio-irq</strong>) and <strong>gpio-test</strong> packages</li>
<li>Copied the file <strong>openwrt-ar71xx-generic-onion-omega-squashfs-factory.bin</strong> from the</li>
<li>Installed the built release on my Omega using <strong>sysupgrade openwrt-ar71xx-generic-onion-omega-squashfs-factory.bin</strong></li>
<li>Ensured <strong>gpio-irq</strong> (i.e. <strong>kmod-gpio-irq</strong>) and <strong>gpio-test</strong> were installed from the <strong>.ipk</strong> files generated above</li>
<li>Ran <strong>gpio-test N &amp;</strong> (where <strong>N</strong> is the GPIO pin number) and observed that interrupts were detected and reported when the state of pin <strong>N</strong> was changed</li>
<li>Wrote a small amount of C code that used similar techniques to <strong>gpio-test</strong> and checked that it too correctly intercepted the interrupts.</li>
</ol>
<p dir="auto">The only relevant observation I can make is that because of this line:</p>
<ul>
<li><strong>int err = request_irq(irq_number, gpio_edge_interrupt, IRQ_TYPE_EDGE_BOTH, "gpio_irq_handler", data);</strong></li>
</ul>
<p dir="auto">in <strong>gpio-irq.c</strong> the interrupt is triggered on both the rising and falling edge.  The specific case can be detected from the state of the pin when the interrupt code is called.  I may consider a patch that allows setting for <strong>rising</strong> or <strong>falling</strong> edges specifically, but it is not a big deal.</p>
<p dir="auto">As a consequence, I would <strong>HIGHLY RECOMMEND</strong> to the Omega people that, in the next (or relatively soon) release of the Omega code, the patch (<a href="https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch" rel="nofollow">https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch</a>) be applied and that package <strong>kmod-gpio-irq</strong> be included.<br />
Then, GPIO interrupts will be standardly available in the Omega without additional work.</p>
]]></description><link>http://community.onion.io/post/3197</link><guid isPermaLink="true">http://community.onion.io/post/3197</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Sat, 09 Jan 2016 05:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Sun, 10 Jan 2016 08:28:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>, were you able to get the <code>edge</code> file to work in the <code>sysfs</code> interface? We will definitely add the patch into our buildroot so that the next update will have the irq support built-in.</p>
<p dir="auto">Thanks!</p>
]]></description><link>http://community.onion.io/post/3209</link><guid isPermaLink="true">http://community.onion.io/post/3209</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Sun, 10 Jan 2016 08:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Sun, 10 Jan 2016 09:10:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> No, I was never able to figure out how the <strong>edge</strong> file could be created and used via the <strong>sysfs</strong> interface.  But since with the kernel patch and usage of <strong>kmod-gpio-irq</strong> I can now successfully deal with GPIO interrupts in C/C++ based on the code in <strong>gpio-test</strong> I am happy with what I can now achieve.</p>
<p dir="auto">A relevant comment is that in playing with code based on <strong>gpio-test</strong> I have found:</p>
<ul>
<li>
<p dir="auto">There is only a single irq handler that can be installed using the existing code</p>
</li>
<li>
<p dir="auto"><strong>BUT</strong> amongst the information passed to the irq handler is a structure that in one of its fields gives both the pin number for which the handler is called and the state of the pin - with this, it will be easy to write some code that:</p>
<ul>
<li>Calls on to an additional handler specific for an individual pin</li>
<li>Can distinguish between <strong>rising</strong> and <strong>falling</strong> changes in the pin</li>
</ul>
<p dir="auto">I will be updating my <strong>new-gpio</strong> code to incorporate GPIO pin interrupt handling capabilities based on this.</p>
</li>
</ul>
<p dir="auto">Some interesting information about how the <strong>kmod-gpio-irq</strong> code works is:</p>
<ul>
<li>It works by detecting writes (in user mode code) information about the pin number and the process id to <strong>/sys/kernel/debug/gpio-irq</strong> to enable and disable interrupt handling for the pin</li>
<li>When interrupt handling for a pin is added by writting to <strong>/sys/kernel/debug/gpio-irq</strong> the following line is created in <strong>/sys/kernel/debug/gpio</strong> (e.g.for pin 6):
<ul>
<li><strong>gpio-6   (GPIO IRQ handler    ) in  lo</strong></li>
</ul>
</li>
<li>This line is removed when the interrupt handler for the pin is removed</li>
</ul>
<p dir="auto">As an aside, the default contents of <strong>/sys/kernel/debug/gpio</strong> are :</p>
<ul>
<li>gpio-8   (USB power           ) out hi<br />
gpio-11  (reset               ) in  lo<br />
gpio-27  (onion:amber:system  ) out lo</li>
</ul>
<p dir="auto">Of these:<br />
a. I don't understand why <strong>gpio-8</strong> is there (????)<br />
b. <strong>gpio-11</strong> makes sense since pin 11 is the reset pin<br />
c. <strong>gpio-27</strong> makes some sense since I understand that pin 27 is the Omega LED</p>
]]></description><link>http://community.onion.io/post/3213</link><guid isPermaLink="true">http://community.onion.io/post/3213</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Sun, 10 Jan 2016 09:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Thu, 14 Jan 2016 10:44:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> A few days ago, you said: <em>We will definitely add the patch into our buildroot so that the next update will have the irq support built-in.</em></p>
<p dir="auto">This is <strong>NOT</strong> meant to be a complaint or hurry up, but do you have any rough idea when the updated with GPIO irq support as per the patch will be available?</p>
<p dir="auto">The reason I ask is that I have now got some significant C/C++ code (as an extension to the <a href="https://community.onion.io/topic/143/alternative-c-code-for-gpio-access" rel="nofollow"><strong>new-gpio</strong></a> code I posted some time ago) that from my testing appears to work well in handling GPIO interrupts.</p>
<p dir="auto">This includes a test program that in a very simple manner can be used to set a background program running that, on an interrupt (e.g. a button press), will run any shell command specified at the time the program was started.  Thus allowing running of any command to be associated with a button push - multiple such instances can be set up - one for each GPIO pin if so desired.</p>
<p dir="auto">However, this code is dependent upon:</p>
<ol>
<li>A kernel version with the above patch</li>
<li>Installation of the kmod-gpio-irq package</li>
</ol>
<p dir="auto">I would like to post this code since I believe it would be of general use, but there is no point in doing so until the update is generally available.</p>
]]></description><link>http://community.onion.io/post/3291</link><guid isPermaLink="true">http://community.onion.io/post/3291</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Thu, 14 Jan 2016 10:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Thu, 14 Jan 2016 16:23:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> We will be putting out a new firmware today. <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
]]></description><link>http://community.onion.io/post/3292</link><guid isPermaLink="true">http://community.onion.io/post/3292</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Thu, 14 Jan 2016 16:23:04 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Thu, 14 Jan 2016 19:20:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Great <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /> Thanks.  Didn't mean to give you a hard time over this.</p>
]]></description><link>http://community.onion.io/post/3296</link><guid isPermaLink="true">http://community.onion.io/post/3296</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Thu, 14 Jan 2016 19:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 04:02:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>, if you do an <code>oupgrade</code> now, you should be able to upgrade to a firmware with the patches applied. Please let me know if it works.</p>
]]></description><link>http://community.onion.io/post/3320</link><guid isPermaLink="true">http://community.onion.io/post/3320</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 15 Jan 2016 04:02:52 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 04:55:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Unfortunately, no it doesn't seem to work after a clean update to the latest release.</p>
<p dir="auto">The first issue is that there is no <strong>kmod-gpio-irq</strong> that I require - it is not available via <strong>opkg</strong> even after doing an <strong>opkg update</strong> - so I tried installing the version I had built using the OpenWrt cross compile environment (and which worked with the patched system image I had built and installed).</p>
<p dir="auto">I think i have tracked the problem down to the fact that there is no <strong>/sys/kernel/debug/gpio-irq</strong> file.  The GPIO irq handling works by writing to this file.</p>
<p dir="auto">I am trying to track down what I had installed in my separately compiled image that would have created this file.</p>
<p dir="auto">If you have any info on this, I would be interested to hear.  meanwhile, I will try to keep working to track down what is different between the latest Omega build (for which GPIO irq does not work) and the system build that I produced (for which GPIO irq works)</p>
]]></description><link>http://community.onion.io/post/3328</link><guid isPermaLink="true">http://community.onion.io/post/3328</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 15 Jan 2016 04:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 04:58:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>, It could have been that the patch did not get included in the build for whatever reason. I will work with <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a> to sort it out tomorrow.</p>
]]></description><link>http://community.onion.io/post/3330</link><guid isPermaLink="true">http://community.onion.io/post/3330</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 15 Jan 2016 04:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 05:23:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Thanks.  Would be good if it was as simple as not having included the patch (it's this one: <a href="https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch" rel="nofollow">https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch</a>).<br />
Though, it will be essential also that <strong>kmod-gpio-irq</strong> be available via <strong>opkg</strong> as well.</p>
<p dir="auto">I'm probably about to take a break (it's getting to be evening here) - if I don't here anything more from you on this, I will keep looking tomorrow.</p>
]]></description><link>http://community.onion.io/post/3335</link><guid isPermaLink="true">http://community.onion.io/post/3335</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 15 Jan 2016 05:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 18:56:33 GMT]]></title><description><![CDATA[<p dir="auto">hey <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> firmware b265 and later have <strong>kmod-gpio-irq</strong> and the gpio.c patch.<br />
I installed and ran <code>gpio-test</code> locally, the edge based interrupts do in fact get triggered!</p>
<p dir="auto">Btw, I made the <code>gpio-test</code> package available in the Onion package repo.</p>
<p dir="auto">Happy hacking!</p>
]]></description><link>http://community.onion.io/post/3356</link><guid isPermaLink="true">http://community.onion.io/post/3356</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Fri, 15 Jan 2016 18:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 20:45:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a> Cool <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /> Thanks for quick feedback <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
<p dir="auto">I am currently on firmware b264 so will shortly upgrade and try again.  Will report back when done</p>
]]></description><link>http://community.onion.io/post/3359</link><guid isPermaLink="true">http://community.onion.io/post/3359</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 15 Jan 2016 20:45:43 GMT</pubDate></item><item><title><![CDATA[Reply to Yet more on GPIO interrupts on Fri, 15 Jan 2016 21:09:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a> Absolutely fantastic! Thank you very much <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
<p dir="auto">Have upgraded to b266 and everything works perfectly - including my GPIO IRQ and test program.</p>
<p dir="auto">My IRQ code is basically an extension to the code I have previously posted for new GPIO access (<a href="https://community.onion.io/topic/143/alternative-c-code-for-gpio-access" rel="nofollow">https://community.onion.io/topic/143/alternative-c-code-for-gpio-access</a>) with the addition of IRQ handling capabilities.</p>
<p dir="auto">Because it may be of use to others, I will do the following:</p>
<ol>
<li>Send the test program and needed library with some basic documentation on its use in a separate post</li>
<li>Later, update the package and details in <a href="https://community.onion.io/topic/143/alternative-c-code-for-gpio-access" rel="nofollow">https://community.onion.io/topic/143/alternative-c-code-for-gpio-access</a> with the latest sources and full documentation</li>
</ol>
]]></description><link>http://community.onion.io/post/3360</link><guid isPermaLink="true">http://community.onion.io/post/3360</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 15 Jan 2016 21:09:32 GMT</pubDate></item></channel></rss>