Discussion:
Proposed changes for BeagleBone Black instructions
Erik Natanael Gustafsson
2014-10-19 07:58:13 UTC
Permalink
Hi!

I just installed sc on my new BeagleBone Black revC using Fredriks
excellent tutorial at
http://supercollider.github.io/development/building-beagleboneblack.html
However, I ran into some problems (which I worked out) and I suggest the
following information is added to the tutorial:

1. Do not use a debian version newer than 7.4. Something has changed and
the sc server will not start. (
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/server-refuses-to-start-on-beaglebone-td7611281.html
)
2. The changes made in /etc/security/limits.conf have no effect if you log
in via ssh, unless you edit the sshd configuration file at
/etc/ssh/sshd_config and set UsePAM to yes.

Just to save future users some trouble. If you think it's a good idea I
could add it (if I can, I don't know how GitHub works, do you just get an
account?) or someone else can add it.

Cheers,
Erik
Fredrik Olofsson
2014-10-19 09:39:27 UTC
Permalink
hi Erik,
thank you for these updates. i've just added them to the page.

yes, the issue with 7.4 is strange. i've run into it multiple times and wish i could understand what's wrong with the new kernel.
_f
Hi!
I just installed sc on my new BeagleBone Black revC using Fredriks excellent tutorial at http://supercollider.github.io/development/building-beagleboneblack.html
1. Do not use a debian version newer than 7.4. Something has changed and the sc server will not start. (http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/server-refuses-to-start-on-beaglebone-td7611281.html)
2. The changes made in /etc/security/limits.conf have no effect if you log in via ssh, unless you edit the sshd configuration file at /etc/ssh/sshd_config and set UsePAM to yes.
Just to save future users some trouble. If you think it's a good idea I could add it (if I can, I don't know how GitHub works, do you just get an account?) or someone else can add it.
Cheers,
Erik
#|
fredrikolofsson.com musicalfieldsforever.com
|#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Rainer Schuetz
2014-10-19 09:45:23 UTC
Permalink
Post by Fredrik Olofsson
yes, the issue with 7.4 is strange. i've run into it multiple times and wish i could understand what's wrong with the new kernel.
Does the server not start at all, or only if started from sclang? I remember finding odd differences on different ARM-platforms, but it used always to be possible to start scsynth from the cli, then start sclang and connect to the running server.

Best
.r.
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Fredrik Olofsson
2014-10-19 19:42:36 UTC
Permalink
Post by Rainer Schuetz
Post by Fredrik Olofsson
yes, the issue with 7.4 is strange. i've run into it multiple times and wish i could understand what's wrong with the new kernel.
Does the server not start at all, or only if started from sclang? I remember finding odd differences on different ARM-platforms, but it used always to be possible to start scsynth from the cli, then start sclang and connect to the running server.
sorry, in my previous mail i meant i had issues with kernels HIGHER than 7.4. the latest 'official' image is 7.5 http://beagleboard.org/latest-images and with this i can't make sc run

so thanks Rainer but no, with the problematic 7.5 kernel there's no difference if i start scsynth first. that same strange memory error occur.

sclang + s.boot...

sc3> s.boot
booting 57110
localhost
sc3> Cannot lock down 80740352 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 28311552 byte memory area (Cannot allocate memory)
SC FFT global init: cosTable initialised.
JackDriver: client name is ''
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 67108864
SuperCollider 3 server ready.
scsynth: ../common/JackGraphManager.cpp:44: void Jack::JackGraphManager::AssertPort(jack_port_id_t): Assertion `port_index < fPortMax' failed.
RESULT = 0
ERROR: server failed to start
For advice: [http://supercollider.sf.net/wiki/index.php/ERROR:_server_failed_to_start]


only scsynth...

***@beaglebone:~$ scsynth -u 57110 &
[2] 1207
***@beaglebone:~$ SC FFT global init: cosTable initialised.
Cannot lock down 80740352 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 28311552 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 67108864
SuperCollider 3 server ready.
scsynth: ../common/JackGraphManager.cpp:44: void Jack::JackGraphManager::AssertPort(jack_port_id_t): Assertion `port_index < fPortMax' failed.

this is with sc3.7a0 (git c7600cc1c9) and jackd 1.9.11 both built with gcc4.7 under...
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux


(
the old one 7.4 works fine. sc built the same way. it's...
Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux
)
_f

#|
fredrikolofsson.com musicalfieldsforever.com
|#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Rainer Schuetz
2014-10-19 19:53:54 UTC
Permalink
Post by Fredrik Olofsson
[2] 1207
Cannot lock down 80740352 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 28311552 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 67108864
SuperCollider 3 server ready.
scsynth: ../common/JackGraphManager.cpp:44: void Jack::JackGraphManager::AssertPort(jack_port_id_t): Assertion `port_index < fPortMax' failed.
Does jack start by itself? (test as root as well) Looks more like a Jack problem to me. Recent jack is not friendly to people without X/d-bus.
.r.
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Fredrik Olofsson
2014-10-19 20:01:01 UTC
Permalink
Post by Rainer Schuetz
Post by Fredrik Olofsson
[2] 1207
Cannot lock down 80740352 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 28311552 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 67108864
SuperCollider 3 server ready.
scsynth: ../common/JackGraphManager.cpp:44: void Jack::JackGraphManager::AssertPort(jack_port_id_t): Assertion `port_index < fPortMax' failed.
Does jack start by itself? (test as root as well) Looks more like a Jack problem to me. Recent jack is not friendly to people without X/d-bus.
.r.
yes. or at least i can't spot any differences - both 74 and 75 prints out exactly the same message (both sudo and not)...

***@beaglebone:~$ jackd -P75 -dalsa -dhw:1,0 -p512 -n3 -s -r 44100 &
[1] 1221
***@beaglebone:~$ jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 75
self-connect-mode is "Don't restrict self connect requests"
creating alsa driver ... hw:1,0|hw:1,0|512|3|44100|0|0|nomon|swmeter|soft-mode|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback

any ideas how to test jackd without scsynth?


#|
fredrikolofsson.com musicalfieldsforever.com
|#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Rainer Schuetz
2014-10-19 20:09:21 UTC
Permalink
Post by Fredrik Olofsson
any ideas how to test jackd without scsynth?
http://alsa.opensrc.org/Jack_(plugin)

There is also sndfile-jackplay in the sndfile-utils package

Best
.r.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Fredrik Olofsson
2014-10-20 01:21:11 UTC
Permalink
Post by Rainer Schuetz
Post by Fredrik Olofsson
any ideas how to test jackd without scsynth?
http://alsa.opensrc.org/Jack_(plugin)
There is also sndfile-jackplay in the sndfile-utils package
Best
.r.
ok, thanks. i might try that later, but good news... the newer test image works.
bone-debian-7.6-console-armhf-2014-10-08-2gb.img.xz
which i found here...
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots
uname -a
Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l GNU/Linux

so sc3.7 under 7.4 and 7.6 is ok. only 7.5 fails for some reason.
i'll update the bbb install instructions when the 7.6 image is finally released.
_f

#|
fredrikolofsson.com musicalfieldsforever.com
|#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Loading...