elopio
June 22, 2017, 10:09pm
1
Hello,
Have you seen gobot before? It’s a go framework for robotics.
When I found that I could write software for arduino, rpi, bbb and dragonboard in go I jumped and danced
They now have a guide to distribute the software as snaps, which will work on all the boards and operating systems that we support:
https://gobot.io/documentation/guides/snapcraft/
They recently added support for dragonboard, and I would like to write a blog post about that. But, build.snapcraft.io is not yet building snaps for arm64. @cjwatson @evan do you know if that’s going to happen any time soon?
pura vida
3 Likes
See build.snapcraft.io #556 - it’s blocked on some work in snapcraft.
elopio
June 23, 2017, 12:00am
3
I didn’t know we were waiting for that, I thought we would do the same as launchpad with checks to enable archs.
So, after following links, it sees we need a final agreement here:
Here’s the proposal from when base snaps weren’t a thing: https://lists.ubuntu.com/archives/snappy-app-devel/2016-April/000654.html
On that proposal we basically explored a key to hint builders for what architecture to build on, it had the form of:
target-architectures: [arch1, arch2, arch3]
Where archX could be any architecture tag as used on snaps today such as amd64 or arm64.
Given base snaps and to be future proof we probably want to extend that to something like:
build-on:
ubuntu: …
I’ll push for this once Sergio is back.
Thanks Colin.
1 Like
elopio
July 11, 2017, 5:13pm
4
I wrote a blog post about using gobot and snapcraft to write, package and deliver snaps for bbb, rpi and dragonboard:
I love playing with my prototyping boards. Here at Ubuntu we are designing
the core operating system
to support every single-board computer,
and keep it safe, updated and simple. I've learned a lot ab
@ogra can you help me finding a smarter way to figure out which board is executing the code?
1 Like
ogra
July 11, 2017, 5:25pm
5
The first thing that strikes my mind is (/proc/cpuinfo should be accessible from all snaps for reading):
cat /proc/cpuinfo |grep ^Hardware| sed 's/^.*: //'
… but i just noticed that the dragonboard CPU doesn’t actually return a value for “Hardware:”
Alternatively perhaps shipping lshw in your snap and use the “hardware-observe” interface might also work.
And third, you could perhaps query snapd on localhost for the currently used model assertion somehow.
1 Like
FYI, it is as part of the apparmor base abstraction.
1 Like