<div dir="ltr">There is a <a href="https://github.com/snapcore/snapd/blob/master/interfaces/builtin/gpio.go">GPIO interface</a> and it was going through some fixes a couple of weeks ago as it would only work when first connected, but not after a reboot.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 8:53 AM, Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div class="m_2486025176392723891moz-cite-prefix">Le 06/11/2016 à 11:50, Jacques Supcik a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-size:12.8px">Dear community.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I have a <a href="https://gitlab.com/telecom-tower/tower" target="_blank">program</a>, written in go, and running on a
raspberry Pi 2, which displays messages on a LED panel. The <a href="https://www.adafruit.com/product/2294" target="_blank">panel</a> is
made of "neo pixels" and is connected to the GPIO of the
raspberry Pi. Internally, it uses the DMA and PWM to generate
and accurate signals.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">The program currently runs well on
a Raspbian system and I would like to move to ubuntu-core. I
was able to build the snap and to deploy it on a raspberry Pi
2 running Core version 16. I installed the snap with
"--dangerous", but as soon as the system configure the
DMA/PWM/GPIO, it just freezes.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I installed snappy-debug to check
the logs and this is what I get:</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<div><font face="monospace, monospace">= AppArmor =</font></div>
<div><font face="monospace, monospace">Time: Nov 6 09:28:45</font></div>
<div><font face="monospace, monospace">Log: apparmor="DENIED"
operation="open" profile="snap.telecom-tower.da<wbr>emon"
name="/dev/vcio" pid=4441 comm="tower" requested_mask="r"
denied_mask="r" fsuid=0 ouid=0</font></div>
<div><font face="monospace, monospace">File: /dev/vcio (read)</font></div>
<div><font face="monospace, monospace"><br>
</font></div>
<div><font face="monospace, monospace">= Seccomp =</font></div>
<div><font face="monospace, monospace">Time: Nov 6 09:28:45</font></div>
<div><font face="monospace, monospace">Log: auid=4294967295
uid=0 gid=0 ses=4294967295 pid=4441 comm="tower"
exe="/snap/telecom-tower/x1/bi<wbr>n/tower" sig=31
arch=40000028 14(mknod) compat=0 ip=0x76e3aaf6 code=0x0</font></div>
<div><font face="monospace, monospace">Syscall: mknod</font></div>
<div><br>
</div>
</div>
<div style="font-size:12.8px">Note that if I scp the binary file
and run on ubuntu core as root, then the program runs fine. (I
don't install the snap, I just run the binary from the home
directory.) </div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Does someone have an idea about
what I can do to make my snap run?</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Thank you very much in advance for
your support.</div>
</div>
</blockquote>
<br></span>
Hey Jacques,<br>
<br>
I think we did discuss about GPIO support in confined mode, but
there is no interface for this today AFAIK (CCing Jamie who can
confirm and maybe give a path/ETA forward).<br>
<br>
Meanwhile, you can still install your snap in devmode to bypass
security, and that should do it in your case, mind confirming?<br>
Cheers,<br>
Didier<br>
</div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</div>