matrix-io / matrixio-kernel-modules

MATRIX HAL in kernel space
22 stars 23 forks source link

Up Boards - X86 // Debian #19

Closed ggn06awu closed 4 years ago

ggn06awu commented 6 years ago

It seems like there's some advertisement of Up Board support on the project marketing, but all of these modules are designed solely for the RPI. Any tips on how I might get this (and other parts of the eco-system) working on a Debian X86 Up2 board?

ggn06awu commented 6 years ago

Update: I've compiled most of the ecosystem on an UP2 board, and gotten malos binary working to a degree, but it cannot connect to the Matrix Voice board due to a dependency on the WiringPi package, for which there is no Up2 (/Up) ports that I can locate. A bit of hopeful tinkering with the WiringPi source code inside the Ubilinux (UP's Debian Stretch fork) to suppress the validation against non-PI board usage didn't work (mmap: Operation not permitted). Is the WiringPi dependency a long term decision?

ggn06awu commented 6 years ago

I've managed to compile a modified WiringPI gotten some function from the UP2 board. However since the latest updates on the matrixio-creator-malos repo, malos isn't starting again:-

MATRIX device has not been detected You can query specific driver info using port 20012. Registered driver IMU with port 20013. Registered driver Humidity with port 20017. Registered driver Everloop with port 20021. Registered driver Pressure with port 20025. Registered driver UV with port 20029. Segmentation Fault

Even when malos did start using last weeks code, it consumed 100% of the CPU, and though some Hal JS tests worked (e.g. temperature) everloop test did not. Guessing this is relating to the SPI interfacing (which it should be noted are listed as /dev/spidev1.0 and /dev/spidev1.1 on the Up2, and I’ve adjusted accordingly).

I appreciate this might be better placed in the matrix-creator-hal or malos GIT issues, but does anyone have any tips or made progress I could benefit from (cc @kdpatino)?