Category: Computers and Hardware
So I can run gw_sh from anywhere, I also edited my .bashrc to make the PATH permanent.
Here is the terminal text, it is still saying it cant see the gowin path, interesting the first line saying XDG_RUNTIME_DIR is not set, I have no idea what that is but it doesn't sound good...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading config: riocore/configs/TangNano9K/config.json
loading board: /home/gus/riocore/./riocore/boards/TangNano9K/board.json
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
gw_sh rio.tcl
make: gw_sh: No such file or directory
make: *** [Makefile:34: impl/pnr/project.fs] Error 127
loading: riocore/configs/TangNano9K/config.json
loading board setup: TangNano9K
loading toolchain gowin
writing gateware to: Output/TangNano9K/Gateware
!!! gateware changed: needs to be build and flash |||
WARNING: can not found toolchain installation in PATH: gowin (gw_sh)
example: export PATH=$PATH:/opt/gowin/IDE/bin
writing linuxcnc files to: Output/TangNano9K/LinuxCNC
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
gw_sh rio.tcl
make: gw_sh: No such file or directory
make: *** [Makefile:34: impl/pnr/project.fs] Error 127
Just checking, I don't mean to offend, but have you tried restarting the computer? Terminals often inherit environment (including path) from processes that spawned them, including login sessions.
You mentioned /home/user/gowin/IDE/bin, does gw_sh actually exist at that exact path? perhaps try
ls -al /home/user/gowin/IDE/bin
and make sure gw_sh is in there and has the correct permissions for your user to run it. Also, does the user you're running riocore with have access to all directories and files in that path including the parent directories?
I have had issues with gowin running on Ubuntu 24.04, gowin didn't ship the correct versions of one library they compiled against. which OS are you running on?
Ultimately, if you're using a TangNano9k, I recommend the oss-cad-suite instead of gowin. It has been much easier for me to get working reliably across different linux distributions.