I was having issues getting it to run until I:
1) Used the libraries in the lib folder by adding:
'LD_LIBRARY_PATH=/opt/gowin-eda-edu-ide/lib:$LD_LIBRARY_PATH' to the environment variables of the .desktop file or export LD_LIBRARY_PATH=/opt/gowin-eda-edu-ide/lib:$LD_LIBRARY_PATH from the terminal.
2) Copied the resources folder from the bin folder from https://cdn.gowinsemi.com.cn/Gowin_V1.9.11.03_Education_Linux.tar.gz into /opt/gowin-eda-edu-ide/bin/
3) To get the programmer to work I needed to disconnect the serial connections. I found them by running:
ls /sys/bus/usb/drivers/ftdi_sio/
which showed mine are 1-3:1.0 and 1-3:1.1 so I disconnected them with
echo -n "1-3:1.0" | sudo tee /sys/bus/usb/drivers/ftdi_sio/unbind
echo -n "1-3:1.1" | sudo tee /sys/bus/usb/drivers/ftdi_sio/unbind
I made a udev rule (/etc/udev/rules.d/99-gowin-ftdi.rules) with
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="0666", GROUP="plugdev", RUN+="/usr/local/bin/unbind-tang.sh"
where the unbind-tang.sh script just does the previously mentioned unbind. This makes it automatically work correctly when replugging. Make sure to reload udev after with:
sudo udevadm control --reload-rules
sudo udevadm trigger
Pinned Comments
yjun commented on 2023-04-15 10:58 (UTC)
open source fpga programmer, as a replacement to Gowin Programmer
https://aur.archlinux.org/packages/openfpgaloader-bin
added as optional dependency in PKGBUILD.