Skip to content

Build fxload for USB3 support

Aaron W Morris edited this page Mar 12, 2023 · 16 revisions

General

fxload under Debian 10 and 11 does not support USB3 (fx3) targets. A newer version of fxload needs to be compiled from source.

Instructions

  • Install supporting packages

      sudo apt-get install automake libtool libudev-dev build-essential git
    
  • Clone libusb

      git clone https://github.com/libusb/libusb
    
  • Build libusb main

      cd libusb
    
      ./autogen.sh
      ./configure --prefix=/usr/local
      make
      
      sudo make install
    
  • Build examples

      cd examples
      make
    
  • Install fxload

      sudo install -o root -g root -m 755 ./.libs/fxload /usr/local/sbin
    

Manual module load

    sudo LD_LIBRARY_PATH=/usr/local/lib /usr/local/sbin/fxload -t fx3 -I /lib/firmware/qhy/QHY5III485.img -d 1618:0485

Automatic load

sudo tee /etc/udev/rules.d/99-qhy.rules <<EOF
ACTION!="add", GOTO="qhy_end"
SUBSYSTEM!="usb", GOTO="qhy_end"

ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0485", RUN+="LD_LIBRARY_PATH=/usr/local/lib /usr/local/sbin/fxload -t fx3 -I /lib/firmware/qhy/QHY5III485.img -d 1618:0485"

ATTRS{idVendor}=="1618", MODE="0666"

LABEL="qhy_end"
EOF
Clone this wiki locally