[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Mirage and sensor data

On 17 Aug 2014, at 12:14, Phil Tomson <philtomson@xxxxxxxxx> wrote:

I'm interested in Mirage for some embedded applications that interact with the Internet of Things either by http or other protocols (like MQTT or COAP).

So for example, let's say I've got a Cubieboard2 and I connect up an A/D board to collect data (temperature, weather data, etc.) and I want to setup an http server using Mirage that would serve up this data. The http part is straightforward. However, how does one interact with the GPIO pins on the Cubieboard? - that seems to be on the "other side of" Xen. So would one need to write some kind of device driver for Xen that interfaces to the Cubieboard's GPIO in order to do this? And if so, how would it be accessed by Mirage?

1. Is it possible?
2. If so, can you point me in the right direction?

The GPIO pins would, in the simplest instance, just be accessible from the Linux running in dom0.  After that, you can interface it to a Mirage VM via 'vchan': http://openmirage.org/blog/update-on-vchan

If you're feeling extra-paranoid, it's possible to move the GPIO handling code into an unprivileged VM, but the first step to do is to figure out the GPIO/Linux runes in dom0 first.

I'd be very interested in seeing how this goes...


MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.