<?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[Some GPIO pins does not work with custom image]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I compiled my image from a recently cloned LEDE git repo. Almost everything seems to work correctly except controlling some GPIO pins (15, 16, 17, 18, 19). I've tried to setup the function with <code>omega2-ctrl</code> and setting the pins through <code>/sys/class/gpio/*</code> interface, none caused any changes the voltage on the pins is ~1.55V (I've checked by scope as well, it is not toggling, it is a flat ~1.55V on all pins I cannot use / configure).</p>
<p dir="auto">GPIO 45 / 46 seems OK, I can set them GPIO with <code>omega2-ctrl gpiomux set</code> command, and I can configure to in or out, can set or get value through the <code>/sys/class/gpio/*</code>.</p>
<p dir="auto">I've tried the same HW using official image <code>v0.1.9-b159.bin</code> and I can control the GPIO pins 15, 16, 17 correctly (although in that image <code>/dev/mem</code> is not available, so even that omega2-ctrl is part of the image it is unusable...).</p>
<p dir="auto">Can anyone suppose a way which direction to start to figure out what's the root cause?</p>
<p dir="auto">Thanks,</p>
<p dir="auto">/sza2</p>
]]></description><link>http://community.onion.io/topic/2232/some-gpio-pins-does-not-work-with-custom-image</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 12:57:54 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2232.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Jul 2017 20:00:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Some GPIO pins does not work with custom image on Sun, 23 Jul 2017 20:00:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I compiled my image from a recently cloned LEDE git repo. Almost everything seems to work correctly except controlling some GPIO pins (15, 16, 17, 18, 19). I've tried to setup the function with <code>omega2-ctrl</code> and setting the pins through <code>/sys/class/gpio/*</code> interface, none caused any changes the voltage on the pins is ~1.55V (I've checked by scope as well, it is not toggling, it is a flat ~1.55V on all pins I cannot use / configure).</p>
<p dir="auto">GPIO 45 / 46 seems OK, I can set them GPIO with <code>omega2-ctrl gpiomux set</code> command, and I can configure to in or out, can set or get value through the <code>/sys/class/gpio/*</code>.</p>
<p dir="auto">I've tried the same HW using official image <code>v0.1.9-b159.bin</code> and I can control the GPIO pins 15, 16, 17 correctly (although in that image <code>/dev/mem</code> is not available, so even that omega2-ctrl is part of the image it is unusable...).</p>
<p dir="auto">Can anyone suppose a way which direction to start to figure out what's the root cause?</p>
<p dir="auto">Thanks,</p>
<p dir="auto">/sza2</p>
]]></description><link>http://community.onion.io/post/13863</link><guid isPermaLink="true">http://community.onion.io/post/13863</guid><dc:creator><![CDATA[sza2 sza2]]></dc:creator><pubDate>Sun, 23 Jul 2017 20:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Some GPIO pins does not work with custom image on Tue, 25 Jul 2017 13:29:36 GMT]]></title><description><![CDATA[<p dir="auto">Based on MT7688 datasheet to use GPIO 14-17, <code>EPHY_APGIO_AIO_EN</code> bits in <code>AGPIO_CFG</code> have to be '1', anyway those pins are <code>MDI_TP_P1</code> / <code>MDI_TN_P1</code> / <code>MDI_RP_P1</code> and <code>MDI_RN_P1</code> correspondingly.</p>
<p dir="auto">I made a small <code>devmem</code> like utility (I was not able to add <code>devmem</code> applet to busybox), setting the corresponding bits directly in the registers solved the problem, I checked on the hardware and I can control GPIO 15-17 now.</p>
<p dir="auto">The question right now, what sets these bits in the official image (or what unset in my custom image)? Whether it happened from kernel or user space? What should I modify (config, source) to be able to use the necessary pins without hacking from user space with an aggressive utility which directly modifies the bits without caring about the consequences?</p>
<p dir="auto">/sza2</p>
]]></description><link>http://community.onion.io/post/13884</link><guid isPermaLink="true">http://community.onion.io/post/13884</guid><dc:creator><![CDATA[sza2 sza2]]></dc:creator><pubDate>Tue, 25 Jul 2017 13:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to Some GPIO pins does not work with custom image on Tue, 25 Jul 2017 15:41:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/3213">@sza2-sza2</a><br />
You surely know that using the official <strong>0.1.10-b160</strong> FW we can control GPIO 15..19  (and 45, 46 too) with <code>gpioctl</code>, <code>fast-gpio</code> (and <code>omega2-ctrl gpiomux</code>) fairly well.</p>
<hr />
<p dir="auto">The "full" <a href="https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-mipsel" rel="nofollow">BusyBox v1.26.2</a> (Length: 1498448 bytes unfortunately) has a <code>devmem</code> applet too.</p>
<pre><code>root@Omega-5BE1:~# ./busybox-mipsel devmem --help
BusyBox v1.26.2 (2017-01-10 16:07:35 UTC) multi-call binary.

Usage: devmem ADDRESS [WIDTH [VALUE&rsqb;&rsqb;

Read/write from physical address

	ADDRESS	Address to act upon
	WIDTH	Width (8/16/...)
	VALUE	Data to be written
</code></pre>
<p dir="auto">Sorry, I'm afraid this wasn't too much help for you. Actually I have a question. <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--wink" title=";-)" alt="😉" /><br />
You compiled a custom image and I'd like to know where can I find the source of the <code>gpioctl</code> ELF.</p>
]]></description><link>http://community.onion.io/post/13887</link><guid isPermaLink="true">http://community.onion.io/post/13887</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Tue, 25 Jul 2017 15:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to Some GPIO pins does not work with custom image on Tue, 25 Jul 2017 19:47:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/2619">@György-Farkas</a> Hi,</p>
<p dir="auto">Yes, I can set GPIOs flashing the mentioned official image to the board, however I need custom image as my I2S HW is not supported in any precompiled images.</p>
<p dir="auto">The problem is that compiling the LEDE repo by default set GPIOs 14-17 to MDI_xxx (act as Ethernet ports) instead of GPIOs.</p>
<p dir="auto">I can set those pins to GPIOs with <code>devmem</code> like stuffs at or after boot but that's far from elegant.</p>
<p dir="auto">Regarding <code>gpioctl</code>, I did not download it directly, but installed by <code>./scripts/feeds install gpioctl-sysfs</code> (from the top level directory of the installed SDK). However, it is available as part of <a href="https://github.com/mhei/libugpio/" rel="nofollow">libugpio</a>. But it is just an interface to access <code>/sys/class/gpio/*</code>, it simply reads / writes those files.</p>
<p dir="auto">/sza2</p>
]]></description><link>http://community.onion.io/post/13889</link><guid isPermaLink="true">http://community.onion.io/post/13889</guid><dc:creator><![CDATA[sza2 sza2]]></dc:creator><pubDate>Tue, 25 Jul 2017 19:47:58 GMT</pubDate></item></channel></rss>