// blog

Renoise 3.2 on FreeBSD

Posted 2019-10-09. Permalink. Tagged freebsd, linux, music, renoise, screenshot.

Renoise 3.2 (Linux x86_64 build) running on FreeBSD 12.0:

Renoise 3.2 running on FreeBSD

The procedure to achieve this is the same that I outlined in this 2017 blog post. This time I was able to get the 64-bit build to work (which is a good thing, because there will be no more 32-bit builds going forward).

To repeat the instructions, in short: enable the FreeBSD linux binary compat feature as per the handbook, install the linux-c7 metaport, find or compile a version of jack1 compatible with CentOS 7 x86_64, install that copy of jack in your /compat/linux directory, edit your $HOME/.jackdrc (see here for an example), then renoise should work with jack sound. I used the jack1 git master version and compiled it myself in a CentOS 7 virtual machine.

It's annoying to do (I spent four hours on this and hit multiple roadblocks), but works perfectly once done. With the same catch as before, no MIDI features are available.

Posting to report that at least one person has gotten this to work. Twice, even.

Renoise on FreeBSD

Posted 2017-02-11. Permalink. Tagged freebsd, linux, music, renoise, screenshot.

Renoise 3.1 (Linux x86 Build) running on FreeBSD 11:

Renoise 3.1 running on FreeBSD

It's been known for some time that Renoise runs under the FreeBSD Linux compatibility layer. However, no-one (to my knowledge) had gotten audio to work. With the release of FreeBSD 11 and its Linux compat changes, I decided to give it a shot, and got it to work - with JACK audio.

In short:


I used the linux-c7 meta-port to install CentOS 7.2.1511 compatibility. At this point Renoise Linux x86 runs, but without audio. Renoise Linux x64 didn't work, but I don't remember for what reason.

I tried to get ALSA sound working and simply could not. Then I tried getting Renoise (Linux) to connect to a FreeBSD native JACK server, and that didn't work either. It turns out that JACK clients won't connect to a JACK server built on a different operating system. So you have to run a JACK server compiled for Linux.

I built a 32bit CentOS VM, installed the necessary development tools, compiled the JACK server, packaged it and deployed it into my FreeBSD system's /compat/linux directory.

There are a few things to be aware of when building this Linux JACK server. First, make sure you enable the OSS driver (so it can talk to FreeBSD's OSS devices). Second, JACK requires a memory filesystem (tmpfs(5)) mounted at /dev/shm, or at another location configured at compile-time. Make sure to set that up. Finally be sure to compile JACK 1 and not 2; I used version 0.124.1.

Now JACK, and by extension Renoise, has to be made aware of the location of this alternate server. The standard method for this is $HOME/.jackdrc; see jackdrc(5). In my case, I added the line:

/compat/linux/usr/bin/jackd -r -d oss -C /dev/dsp2 -P /dev/dsp6

and that worked. dsp2 for capture, dsp6 for playback.

Unfortunately there is no MIDI support with this setup. I tried jack_umidi, but of course that program wouldn't talk to the JACK server compiled for Linux. Unless I can hack a version of jack_umidi that compiles in CentOS 7, or some kind of jack_umidi-like program that simulates an alsa midi device, then I think MIDI is simply off the table.

I think that's everything. It's been several months since I did this, so I may have forgotten a step. Hopefully this helps someone.