<?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[MySensors on sunxi kernel. A10 Cubieboard.]]></title><description><![CDATA[<p dir="auto">Hi ! Does anybode  run mySensors gateway on sunxi boards?   It seem to be Orange pi but in my distro Pins have another definition:<br />
<em><strong>0 lrwxrwxrwx 1 root root 0 Nov 18 17:01 gpio1_ph7 -&gt; ../../devices/platform/gpio-sunxi/gpio/gpio1_ph7</strong></em><br />
If i set in config like this: <em><strong>-my-rf24-ce-pin=gpio1_ph7</strong></em><br />
i have a error:  <em><strong>./drivers/RF24/RF24.cpp:52:17: note: in expansion of macro 'MY_RF24_CE_PIN'<br />
hwDigitalWrite(MY_RF24_CE_PIN, level);</strong></em><br />
if i set simple: <em><strong>--my-rf24-ce-pin=1</strong></em> mySensors build is ok but i have another error in runtime -<br />
<em><strong>ERROR Could not open /sys/class/gpio/gpio1/direction</strong></em> i suppouse i need to use sunxi headers for correct pin definition but i do not know do it.</p>
]]></description><link>https://forum.mysensors.org/topic/9912/mysensors-on-sunxi-kernel-a10-cubieboard</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 06:10:52 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/9912.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Nov 2018 11:19:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySensors on sunxi kernel. A10 Cubieboard. on Sun, 25 Nov 2018 16:09:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rozpruwacz" aria-label="Profile: rozpruwacz">@<bdi>rozpruwacz</bdi></a> thank you! I just try to build and install mainline kernel. for my board.  Now a10 supprot ok in mainline.</p>
]]></description><link>https://forum.mysensors.org/post/95327</link><guid isPermaLink="true">https://forum.mysensors.org/post/95327</guid><dc:creator><![CDATA[Артем ТИхонович]]></dc:creator><pubDate>Sun, 25 Nov 2018 16:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors on sunxi kernel. A10 Cubieboard. on Sun, 25 Nov 2018 08:27:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D0%B0%D1%80%D1%82%D0%B5%D0%BC-%D1%82%D0%B8%D1%85%D0%BE%D0%BD%D0%BE%D0%B2%D0%B8%D1%87" aria-label="Profile: артем-тихонович">@<bdi>артем-тихонович</bdi></a> the 3.4 kernel is the "legacy" kernel and is not compatible with mainline kernel. I would suggest to install os with the mainline kernel. Otherwise you need to change mysensors code.</p>
]]></description><link>https://forum.mysensors.org/post/95324</link><guid isPermaLink="true">https://forum.mysensors.org/post/95324</guid><dc:creator><![CDATA[rozpruwacz]]></dc:creator><pubDate>Sun, 25 Nov 2018 08:27:59 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors on sunxi kernel. A10 Cubieboard. on Sat, 24 Nov 2018 14:34:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rozpruwacz" aria-label="Profile: rozpruwacz">@<bdi>rozpruwacz</bdi></a> i run ArchLinuxArm:<br />
<em><strong>uname -a<br />
Linux Archey 3.4.103-ARCH+ #4 PREEMPT Mon Dec 22 19:54:28 UTC 2014 armv7l GNU/Linux</strong></em></p>
<p dir="auto">This is output:<br />
<em><strong>cat   /sys/class/gpio/gpio1_ph7/direction<br />
out</strong></em></p>
<p dir="auto">May be problem in names of GPIO  pin number + port_pin.<br />
Few years ago i find RF24 library for my Cubieboard A10 but i cant up it.<br />
In this lib gpio defined with macros:<br />
RF24 radio(SUNXI_GPI(14), SUNXI_GPI(15), "/dev/spidev2.0");</p>
<pre><code> ./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=1 --my-rf24-cs-pin=2  --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1

./mysgw
Nov 24 17:31:26 INFO  Starting gateway...
Nov 24 17:31:26 INFO  Protocol version - 2.3.0
Nov 24 17:31:26 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,VER=2.3.0
Nov 24 17:31:26 DEBUG TSF:LRT:OK
Nov 24 17:31:26 DEBUG TSM:INIT
Nov 24 17:31:26 DEBUG TSF:WUR:MS=0
Nov 24 17:31:37 ERROR Could not open /sys/class/gpio/gpio1/direction[

</code></pre>
<p dir="auto">if i set <em><strong>--my-rf24-ce-pin=gpio1_ph7</strong></em> i got an compile error:<br />
./drivers/RF24/RF24.cpp:52:17: note: in expansion of macro 'MY_RF24_CE_PIN'<br />
hwDigitalWrite(MY_RF24_CE_PIN, level);</p>
]]></description><link>https://forum.mysensors.org/post/95310</link><guid isPermaLink="true">https://forum.mysensors.org/post/95310</guid><dc:creator><![CDATA[Артем ТИхонович]]></dc:creator><pubDate>Sat, 24 Nov 2018 14:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors on sunxi kernel. A10 Cubieboard. on Sat, 24 Nov 2018 13:13:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D0%B0%D1%80%D1%82%D0%B5%D0%BC-%D1%82%D0%B8%D1%85%D0%BE%D0%BD%D0%BE%D0%B2%D0%B8%D1%87" aria-label="Profile: артем-тихонович">@<bdi>артем-тихонович</bdi></a> which os with which kernel version do You run on the cubieboard ?<br />
check if You can do this in the console:</p>
<pre><code>echo 1 &gt; /sys/class/gpio/export
cat /sys/class/gpio/gpio1/direction
</code></pre>
<p dir="auto">there may be also permission problems so try also as root</p>
]]></description><link>https://forum.mysensors.org/post/95307</link><guid isPermaLink="true">https://forum.mysensors.org/post/95307</guid><dc:creator><![CDATA[rozpruwacz]]></dc:creator><pubDate>Sat, 24 Nov 2018 13:13:24 GMT</pubDate></item></channel></rss>