nekromant / aura

Universal RPC library for interfacing with your favourite hardware
http://nekromant.github.io/aura/
14 stars 5 forks source link

Raspberry ION #20

Open LPFraile opened 7 years ago

LPFraile commented 7 years ago

Hello I wanted to ask if the ION library of aura can be used on raspberry pi or can just be running it on a SoC with NeuroMatrix DSP?

nekromant commented 7 years ago

Sorry for the delay, terrible rush at my dayjob.

The only truly neuromatrix-specific thing is the nmc transport module. That one will only run on a SoC that:

  1. Has the Neuromatrix DSP
  2. Has the easynmc kernel driver (right now it's only К1879ХБ1Я)

The rest is not.

https://github.com/nekromant/aura/blob/master/src/allocators/ion.c is pretty much the libion from android, minus all the android-specific things.

https://github.com/nekromant/aura/blob/master/src/allocators/ion_buffer_allocator.c - is the actual buffer-allocator for aura. It should also be quite portable, but since neuromatrix transport is right now the only consumer of this allocator some things (like alignment and heap mask) are hard-coded there.