Axe-Fx II and Linux (again)

For anyone still running this: fxload had an update recently which breaks the -D flag, however it can be replaced with:
Bash:
-p $env{BUSNUM},$env{DEVNUM}

This requires changing the udev rule (if you've already installed the code), or can be achieved by changing the udev rule within the installer and uninstalling / reinstalling.
 
So I've been doing some more digging and this is a bit weird, the upstream for most distros is seems to be "Hotplug project" which has been unchanged since 2008, but for Arch it's the "libusb" project:

Upstream for Arch: https://github.com/libusb/libusb/blob/master/examples/fxload.c
Upstream for Fedora & Debian/Ubuntu: https://sourceforge.net/projects/linux-hotplug/files/fxload/2008_10_13/
Upstream for openSUSE: As far as I can tell it's still the 2008 version but they patched it in 2013 https://download.opensuse.org/tumbleweed/repo/src-oss/src/fxload-2013_01_03-2.6.src.rpm

I was modifying the axefx2setup.sh bash script so it would detect which one you have from the version by parsing the output from "fxload -V". That way it could automatically load the correct udev rule.

But because there are two different upstreams, and the C DATE macro is the only sense of versioning, which changes with every build (Debain rebuild for every release) that won't be an option. (Whatever was wrong with semantic version numbers?!)

I have ended up parsing the error text from fxload to check if there is "-p" or "-D" options which seems to work.

@volt , I think you have copyright on the installation script. Would you consider issuing it under a license or permitting me to make changes?

After permission/re-licensing I'll post it here; I'd appreciate a Bash guru having a look over my changes :)
 
Last edited:
So I've been doing some more digging and this is a bit weird, the upstream for most distros is seems to be "Hotplug project" which has been unchanged since 2008, but for Arch it's the "libusb" project:

Upstream for Arch: https://github.com/libusb/libusb/blob/master/examples/fxload.c
Upstream for Fedora & Debian/Ubuntu: https://sourceforge.net/projects/linux-hotplug/files/fxload/2008_10_13/
Upstream for openSUSE: As far as I can tell it's still the 2008 version but they patched it in 2013 https://download.opensuse.org/tumbleweed/repo/src-oss/src/fxload-2013_01_03-2.6.src.rpm

I was modifying the axefx2setup.sh bash script so it would detect which one you have from the version by parsing the output from "fxload -V". That way it could automatically load the correct udev rule.

But because there are two different upstreams, and the C DATE macro is the only sense of versioning, which changes with every build (Debain rebuild for every release) that won't be an option. (Whatever was wrong with semantic version numbers?!)

I have ended up parsing the error text from fxload to check if there is "-p" or "-D" options which seems to work.

@volt , I think you have copyright on the installation script. Would you consider issuing it under a license or permitting me to make changes?

After permission/re-licensing I'll post it here; I'd appreciate a Bash guru having a look over my changes :)
No problem, go ahead!
 
Back
Top Bottom