-
Notifications
You must be signed in to change notification settings - Fork 90
BSD
There is growing support for running on some major BSD distributions out there. Although the porting state is still quite experimental, this page covers ongoing notes on setup and quirks.
(Dragonfly should work/behave similarly to FreeBSD). There is no ports/ style install or prepackaged binaries, only installation options for now are manual compilation. Special note that there are some unknown stability issues with the JIT backend to lua, so be sure to compile with -DDISABLE_JIT=ON.
If there are any crashes, chances are that your syscons will be in an unrecoverable state - so best to run arcan in a loop.
Should work as normal with Xorg as the output backend.
Check that the drivers you need for kms support has been loaded, kldload i915kms.ko or so, and that the appropriate devices (/dev/dri/card0, /dev/dri/renderD128 etc.) are available.
Although nvidia binary based EGLStreams output mode is supported for the platform build as a whole; it seems like the support in the FreeBSD binary drivers is either disabled/lacking, or some yet-to-be-determined magic is needed to activate it - some reported luck has been with adding modeset=1 to the nvidia module.
Though there are some patches floating around to add support for linux evdev like input devices, there is a already a dedicated freebsd input driver that should cover keyboard and mice support (src/platform/freebsd)
The input platform also requires you to set a keymap as an environment for now, so point ARCAN_INPUT_KEYMAPS to an existing keymap in /usr/share/vt/keymaps/something.kbd.
The OpenBSD port will require a very recent (6.1+, preferably current) OpenBSD, and as recent an llvm build as possible.
The VIDEO_PLATFORM=egl-dri configuration should run out of the box, though it is likely that it still needs to run as root for unknown reasons (it seems to relate to how /dev/drm nodes work, even chown:ing doesn't help).
Getting Xarcan to build is a bit of a hurdle due to Xenocara being part of the system base packages and thus isn't split up into packages that can easily be reused. The following configuration works (if you take the time to manually build and install the required dependencies from source, eg. dri2proto, glproto, libX11, libXext, libXfont, libpciaccess, libxtrans, pixman, x11proto, Xutil, all of which can be found on the freedesktop xorg git.
The following configure command worked on my setup:
./configure --with-xkb-bin-directory=/usr/X11R6/bin --enable-kdrive --enable-xarcan
--disable-xorg --disable-xnest --disable-xvfb --disable-glamor --enable-glx
--disable-int10-module --disable-config-wscons
Also note that pkg-search dir should either point to /usr/local/libdata/pkgconfig or have the corresponding arcan-shmif related pc files be moved to wherever it is set to on your system.
Glamor is currently disabled in this build since I havn't figured out how to get the accelerated shmif- backend up and running on the adaptation of drm used in OpenBSD.