Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banana PI m2+ (ARM PORT) #25

Closed
Spacelord09 opened this issue Aug 18, 2019 · 18 comments
Closed

Banana PI m2+ (ARM PORT) #25

Spacelord09 opened this issue Aug 18, 2019 · 18 comments
Assignees
Labels
build Build infrastructure core MIDIMonster core portability Multi-platform portability issues
Projects

Comments

@Spacelord09
Copy link
Collaborator

Spacelord09 commented Aug 18, 2019

@cbdevnet can you make a port of midimonster for ARM?

@cbdevnet
Copy link
Owner

cbdevnet commented Aug 19, 2019

Is there a problem building on ARM? I tested on a Raspberry Pi some time ago and it worked, I might have broken something when working on the Windows build. It should work, as there are currently no architecture-specific instructions being used.

I think it should just work, can you post a failure output?

@cbdevnet cbdevnet self-assigned this Aug 19, 2019
@cbdevnet cbdevnet added bug Problems in the code core MIDIMonster core portability Multi-platform portability issues build Build infrastructure and removed bug Problems in the code labels Aug 19, 2019
@Spacelord09
Copy link
Collaborator Author

Spacelord09 commented Aug 19, 2019

Yea I can post it tomorrow
""switch to german😉""

@Spacelord09 Spacelord09 self-assigned this Aug 22, 2019
@Spacelord09
Copy link
Collaborator Author

root@MIDIMONSTER:/midimonster# ./midimonster ./configs/test.cfg
Registered backend osc
Registered backend lua
Registered backend artnet
Registered backend evdev
Registered backend loopback
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
Failed to open ALSA sequencer
Plugin ./backends/midi.so failed to initialize
Failed to initialize a backend
OSC backend shut down
Lua backend shut down
ArtNet backend shut down
root@MIDIMONSTER:/midimonster#

@cbdevnet
Copy link
Owner

Sieht aus als waere ALSA nicht richtig konfiguriert, hast du die Pakete

  • libasound2
  • alsa-tools
  • alsa-utils

installiert? Kannst du ueber den Kopfhoereranschluss Musik hoeren?

@Spacelord09
Copy link
Collaborator Author

@cbdevnet "alsa-tools" fehlte aber trotzdessen selber fehler..

@cbdevnet
Copy link
Owner

Ich hab die checks im MIDI-Backend mal nach hinten verschoben, es sollte jetzt starten (wenn keine MIDI-Instanzen verwendet werden). Problem liegt aber irgendwo in der ALSA-Config.

Falls MIDI hier wichtig ist, kannst du mal den Output von aconnect -io reinpasten?

@Spacelord09
Copy link
Collaborator Author

root@MIDIMONSTER:~# aconnect -io
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
can't open sequencer
root@MIDIMONSTER:~#

@Spacelord09
Copy link
Collaborator Author

Das Lua Backend macht auch Probleme..

root@MIDIMONSTER:/midimonster# ./midimonster ./configs/test.cfg
Registered backend osc
Registered backend lua
Registered backend artnet
Registered backend evdev
Registered backend loopback
Registered backend midi
Registered backend sacn
Registered backend maweb
Created maweb instance ma
Created lua instance generator
Internal error resolving glob wave{1..6}
Internal error resolving glob page1.fader{1..6}
Failed to map channel generator.wave{1..6} to ma.page1.fader{1..6}
Failed to read configuration file ./configs/test.cfg
OSC backend shut down
Lua backend shut down
ArtNet backend shut down
evdev backend shut down
Loopback backend shut down
MIDI backend shut down
sACN backend shut down
maweb backend shut down
MIDIMonster v0.1
Usage:
./midimonster <configfile>
root@MIDIMONSTER:/midimonster#

@cbdevnet
Copy link
Owner

cbdevnet commented Aug 24, 2019

Ich vermute dass der MIDI-Kerneltreiber fehlt, probier mal modinfo snd-seq-midi.
Da sollte dann sowas kommen wie

filename:       /lib/modules/4.19.0-5-amd64/kernel/sound/core/seq/snd-seq-midi.ko
license:        GPL
description:    Advanced Linux Sound Architecture sequencer MIDI synth.
author:         Frank van de Pol <fvdpol@coil.demon.nl>, Jaroslav Kysela <perex@perex.cz>
depends:        snd-seq-midi-event,snd-seq,snd-rawmidi,snd-seq-device

Wenn das Modul fehlt, musst mal gucken ob du einen anderen Kernel findest (oder einen eigenen bauen kannst), dann wurde beim laufenden Kernel wohl das MIDI-Modul deaktiviert

Das zweite ist interessant, das ist eigentlich eine Fehlermeldung aus dem Config-Parser, kannst du mir dafuer mal die Config geben?

@Spacelord09
Copy link
Collaborator Author

Ich denke da hast du recht:

root@MIDIMONSTER:~# modinfo snd-seq-midimodinfo snd-seq-midi
modinfo: ERROR: Module snd-seq-midimodinfo not found.
modinfo: ERROR: Module snd-seq-midi not found.
root@MIDIMONSTER:~#

@Spacelord09 Spacelord09 added this to Incoming in Core Aug 24, 2019
@Spacelord09
Copy link
Collaborator Author

Config kommt noch.

@jelimoore
Copy link

FYI, I've noticed this too, but running as root seems to fix it. I think it's some midi permissions thing. Although I'm on the version before this so it may be different... but try running as root

@Spacelord09
Copy link
Collaborator Author

Spacelord09 commented Aug 30, 2019

@jelimoore Are you running a Banana PI? What OS/Image you're using?

@jelimoore
Copy link

Raspberry pi, raspbian

@cbdevnet
Copy link
Owner

cbdevnet commented Aug 30, 2019

The latest commits move some checks in the MIDI backend to a later point, so it does not fail to start when MIDI is not being used (it will still fail if you want to use MIDI and ALSA has problems for some reason). In @Spacelord09's case, it was a missing kernel MIDI driver.

@jelimoore If running as root fixes it, maybe another solution would be to add your user to the audio group, to allow access to the sequencer.

Try running adduser <youruser> audio as root and then rebooting :)

@Spacelord09
Copy link
Collaborator Author

Spacelord09 commented Sep 4, 2019

Hier ist deine config:

; Create a 'flying faders' effect using lua and output it onto maweb faders 1..6

[maweb ma]
; That's the IP of your console or OnPC.
host = 10.23.42.21 80
; If a Dot2 is used, the username is automatically set to "remote".
user = midimonster
password = midimonster

[lua generator]
script = configs/flying-faders.lua

[map]
; Fader 1 to 6 (Core Wing)
generator.wave{1..6} > ma.page1.fader{1..6}
; Fader 7 to 14 (F-wing1 on Dot2)
;generator.wave{7..14} > ma.page1.fader{7..14]}

@Spacelord09
Copy link
Collaborator Author

Spacelord09 commented Sep 4, 2019

Mit der config geht es:

[maweb ma]
host = 10.23.42.21 80
user = midimonster
password = midimonster

[map]
ma.page1.fader1 > ma.page1.fader2

Nur die config mit den klammern läuft nicht:

[maweb ma]
host = 10.23.42.21 80
user = midimonster
password = midimonster

[map]
ma.page1.fader{1..2} > ma.page1.fader{3..4}

@cbdevnet
Copy link
Owner

cbdevnet commented Sep 4, 2019

OK das Problem sollte mit 4985504 auch behoben sein, war ein bisschen tiefer versteckt.

@cbdevnet cbdevnet closed this as completed Sep 4, 2019
Core automation moved this from Incoming to Done Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build infrastructure core MIDIMonster core portability Multi-platform portability issues
Projects
Core
  
Done
Development

No branches or pull requests

3 participants