<?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[Omega2 SPI first bit missing&#x2F;wrong]]></title><description><![CDATA[<p dir="auto">Hi there</p>
<p dir="auto">The <strong>Omega2</strong> seems to have an issue with <strong>SPI</strong>.<br />
I see various people in the community that cannot use SPI successfully with Omega2.<br />
It's also an issue that stops me from using my Omega2 in various IoT projects <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>
<p dir="auto">In order to get this issue fixed as quick as possible I created this topic and collected all information I've found.</p>
<p dir="auto"><em>It would be great if someone with decent knowledge (Omega2, LEDE,  Mt7688?) or the Omega2 crew would have a look at this. Thanks a lot!</em></p>
<p dir="auto">Please vote for this post, if you too cannot use SPI because of this problem.</p>
<p dir="auto"><strong>Problem:</strong><br />
When I do <code>spi-tool -b 1 -d 32766 write 0xaa 0x11</code> on the Omega2 terminal, the data seen on the line by the logic analyzer is <code>0x2A 0x11</code>:</p>
<p dir="auto"><img src="/assets/uploads/files/1504736935448-omega2-spi-0xaa-0x11-resized.png" alt="0_1504736881289_omega2-spi-0xaa-0x11.png" class="img-responsive img-markdown" /></p>
<p dir="auto">All seems good, except that the first bit seems to be missing. MOSI should be 1 on the first CLK.</p>
<p dir="auto">I am also not able to get software working that uses Omega2's SPI.</p>
<p dir="auto">Firmware: 0.1.10 b160<br />
SPI device: /dev/spidev1.32766</p>
<p dir="auto"><strong>Further docs:</strong></p>
<ul>
<li>Omega2 SPI: <a href="https://docs.onion.io/omega2-docs/communicating-with-spi-devices.html" rel="nofollow">https://docs.onion.io/omega2-docs/communicating-with-spi-devices.html</a></li>
<li>Another discussion (old outdated): <a href="https://community.onion.io/topic/1560/spi-pins-for-the-omega2/21" rel="nofollow">https://community.onion.io/topic/1560/spi-pins-for-the-omega2/21</a></li>
<li>Another member: <a href="https://community.onion.io/topic/2344/omega2-spi-problem" rel="nofollow">https://community.onion.io/topic/2344/omega2-spi-problem</a></li>
<li>Maybe the root cause. OpenWrt: <a href="https://dev.openwrt.org/ticket/20521" rel="nofollow">https://dev.openwrt.org/ticket/20521</a></li>
<li>Possible Patch, to an older OpenWRT version: <a href="https://github.com/narioinc/mt76xx-spi-half-duplex-patch" rel="nofollow">https://github.com/narioinc/mt76xx-spi-half-duplex-patch</a></li>
</ul>
]]></description><link>http://community.onion.io/topic/2345/omega2-spi-first-bit-missing-wrong</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 17:28:58 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2345.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Sep 2017 22:55:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Omega2 SPI first bit missing&#x2F;wrong on Wed, 06 Sep 2017 23:24:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi there</p>
<p dir="auto">The <strong>Omega2</strong> seems to have an issue with <strong>SPI</strong>.<br />
I see various people in the community that cannot use SPI successfully with Omega2.<br />
It's also an issue that stops me from using my Omega2 in various IoT projects <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>
<p dir="auto">In order to get this issue fixed as quick as possible I created this topic and collected all information I've found.</p>
<p dir="auto"><em>It would be great if someone with decent knowledge (Omega2, LEDE,  Mt7688?) or the Omega2 crew would have a look at this. Thanks a lot!</em></p>
<p dir="auto">Please vote for this post, if you too cannot use SPI because of this problem.</p>
<p dir="auto"><strong>Problem:</strong><br />
When I do <code>spi-tool -b 1 -d 32766 write 0xaa 0x11</code> on the Omega2 terminal, the data seen on the line by the logic analyzer is <code>0x2A 0x11</code>:</p>
<p dir="auto"><img src="/assets/uploads/files/1504736935448-omega2-spi-0xaa-0x11-resized.png" alt="0_1504736881289_omega2-spi-0xaa-0x11.png" class="img-responsive img-markdown" /></p>
<p dir="auto">All seems good, except that the first bit seems to be missing. MOSI should be 1 on the first CLK.</p>
<p dir="auto">I am also not able to get software working that uses Omega2's SPI.</p>
<p dir="auto">Firmware: 0.1.10 b160<br />
SPI device: /dev/spidev1.32766</p>
<p dir="auto"><strong>Further docs:</strong></p>
<ul>
<li>Omega2 SPI: <a href="https://docs.onion.io/omega2-docs/communicating-with-spi-devices.html" rel="nofollow">https://docs.onion.io/omega2-docs/communicating-with-spi-devices.html</a></li>
<li>Another discussion (old outdated): <a href="https://community.onion.io/topic/1560/spi-pins-for-the-omega2/21" rel="nofollow">https://community.onion.io/topic/1560/spi-pins-for-the-omega2/21</a></li>
<li>Another member: <a href="https://community.onion.io/topic/2344/omega2-spi-problem" rel="nofollow">https://community.onion.io/topic/2344/omega2-spi-problem</a></li>
<li>Maybe the root cause. OpenWrt: <a href="https://dev.openwrt.org/ticket/20521" rel="nofollow">https://dev.openwrt.org/ticket/20521</a></li>
<li>Possible Patch, to an older OpenWRT version: <a href="https://github.com/narioinc/mt76xx-spi-half-duplex-patch" rel="nofollow">https://github.com/narioinc/mt76xx-spi-half-duplex-patch</a></li>
</ul>
]]></description><link>http://community.onion.io/post/14391</link><guid isPermaLink="true">http://community.onion.io/post/14391</guid><dc:creator><![CDATA[h0l0gram]]></dc:creator><pubDate>Wed, 06 Sep 2017 23:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to Omega2 SPI first bit missing&#x2F;wrong on Fri, 08 Sep 2017 11:29:04 GMT]]></title><description><![CDATA[<p dir="auto">SPI problem quite critical.<br />
<a href="https://onion.freshdesk.com/support/solutions/articles/24000014450-spi-issue-resolution" rel="nofollow">https://onion.freshdesk.com/support/solutions/articles/24000014450-spi-issue-resolution</a></p>
]]></description><link>http://community.onion.io/post/14415</link><guid isPermaLink="true">http://community.onion.io/post/14415</guid><dc:creator><![CDATA[JinGyu Lee]]></dc:creator><pubDate>Fri, 08 Sep 2017 11:29:04 GMT</pubDate></item></channel></rss>