GithubHelp home page GithubHelp logo

matrix-io / matrix-creator-init Goto Github PK

View Code? Open in Web Editor NEW
7.0 11.0 11.0 2.03 MB

Debian package to initialize MATRIX Creator on boot

Home Page: https://matrix-io.github.io/matrix-documentation/

Shell 61.49% Python 11.12% CMake 9.34% C++ 13.91% Smarty 4.15%

matrix-creator-init's Introduction

matrixio-creator-init

matrix-creator-start-services

Build Status

Source for the matrix-creator-init Debian package. This package programs the FPGA and the SAM3 MCU when the system starts.

Installation

# Add repo and key
curl -L https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list

# Update packages and install
sudo apt-get update
sudo apt-get upgrade

# Installation
sudo apt install matrixio-creator-init

Documentation

https://matrix-io.github.io/matrix-documentation

matrix-creator-init's People

Contributors

arhuaco avatar brianofrokk3r avatar eljuguetero avatar gordinh avatar hpsaturn avatar kdpatino avatar le0xul avatar maciekrb avatar yoelrc88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

matrix-creator-init's Issues

Re-Installation fails

I upgraded from jessie to stretch... now I'm fighting again with your software setup for the matrix creator :-(

I removed all matrix packages and tried to reinstall...

This is what happend:

Created symlink from /etc/systemd/system/multi-user.target.wants/matrixio-devices-firmware.service to /lib/systemd/system/matrixio-devices-firmware.service.
Enabling SPI
Disable UART console
Installing esptool
Requirement already satisfied (use --upgrade to upgrade): esptool in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1293, in prepare_files
subreq = InstallRequirement(req, req_to_install)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 109, in init
self.prereleases = any([is_prerelease(x[1]) and x[0] != "!=" for x in self.req.specs])
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 739, in is_prerelease
return any([any([y in set(["a", "b", "c", "rc", "dev"]) for y in x]) for x in parsed])
TypeError: 'int' object is not iterable

Storing debug log for failure in /root/.pip/pip.log

Any suggestions?

Not able to install package in Raspbian using apt package manager

Hi,

The command
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add - && echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
returns

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). gpg: no valid OpenPGP data found

This is on the latest version of Raspbian.
See also:

Please fix this issue at the earliest so we can use our Matrix Device. Please also update the documentation.

Regards,
Shashank V M

Release does not have a Release file

Hey guys, I'm having problems to install the dependencies.

pi@raspberrypi:/srv/www/matrix $ sudo apt-get update
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Ign:1 http://packages.matrix.one/matrix-creator ./ InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:5 https://deb.nodesource.com/node_10.x stretch InRelease
Hit:6 https://apt.matrix.one/raspbian stretch InRelease
Ign:4 http://packages.matrix.one/matrix-creator ./ Release
Ign:7 http://packages.matrix.one/matrix-creator ./ Packages
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Ign:7 http://packages.matrix.one/matrix-creator ./ Packages
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Ign:7 http://packages.matrix.one/matrix-creator ./ Packages
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Hit:7 http://packages.matrix.one/matrix-creator ./ Packages
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Ign:8 http://packages.matrix.one/matrix-creator ./ Translation-en
Ign:9 http://packages.matrix.one/matrix-creator ./ Translation-en_US
Reading package lists... Done
W: The repository 'http://packages.matrix.one/matrix-creator ./ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Thanks!
Henry

Mics in pulseaudio are breaking the system

Once I try to use the matrix creator mics (with the latest releases of the mic) with pulseaudio, the system completley stops to work.
So I activate the mic in pulseaudio and even the SSH session gets terminated ...

Last log messages (in german):
pulseaudio[2488]: E: [alsa-source-matrixio.mic.0 snd-soc-dummy-dai-0] alsa-source.c: Dies ist höchstwah rscheinlich ein Fehler im ALSA-Treiber 'matrixio_codec'. Bitte melden Sie diesen Fehler den ALSA-Entwicklern. pulseaudio[2488]: E: [alsa-source-matrixio.mic.0 snd-soc-dummy-dai-0] alsa-source.c: Wir wurden durch d as POLLIN-Set geweckt, allerdings lieferte ein anschliessender snd_pcm_avail() den Wert 0 oder einen anderen Wert < min_avail.

Translation:
pulseaudio[2488]: E: [alsa-source-matrixio.mic.0 snd-soc-dummy-dai-0] alsa-source.c: Probably and error in the ALSA-Driver 'matrixio_codec'. Please report it to the ALSA-Developers. pulseaudio[2488]: E: [alsa-source-matrixio.mic.0 snd-soc-dummy-dai-0] alsa-source.c: We got woke up from POLLIN-Set but snd_pcm_avail() delivered Value 0 or another Value < min_avail.

Build from source

Hello,

I am trying to build the matrixio-creator-init from source so I can make it interact with an Asus TinkerBoard S, which has the same GPIO layout as an RPi 3b+.
Does anyone have instructions on that?

Can't install matrix software

I don't think anyone is reading these anymore, but here goes:
Trying to install matrix software on Rpi3 running Buster OS. Directions for setup are not working.

curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -

gives this error:

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it.

How to fix this?

Manage failures during initialization

In order to avoid MCU write cycles we are only programming it once.
For that, we keep this file that serves as an "already programmed" flag.

/usr/share/admobilize/matrix-creator/sam3-program.bash.done

If this file exists the MCU is not programmed again.

This is failing once in a while and it's causing the demos to fail, getting zero values from drivers. For instance, for humidity we get:

{ humidity: 0, temperature: 0 }

The workaround is:

sudo rm /usr/share/admobilize/matrix-creator/sam3-program.bash.done
sudo /usr/share/admobilize/matrix-creator/sam3-program.bash

But we have to improve this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.