sipeed / Tang-Nano-Doc

Document for Tang Nano FPGA board
Apache License 2.0
56 stars 12 forks source link

No programming possible on Linux #4

Open richardklingler opened 4 years ago

richardklingler commented 4 years ago

Using the GoWin on Linux is fine...

Just programming is not possible though Linux sees the onboard programmer as /dev/ttyUSB0

paulossant commented 4 years ago

I'm also not being able to program in linux, but the device doesn't even appear at the lsusb command.

(I know the cable supports data transfer because i can use it with other devices that way)

lirc572 commented 4 years ago

Try running the programmer as root. That worked for me.

kd8bxp commented 3 years ago

You need to add some UDEV rules, I found very helpful information here: https://titanwolf.org/Network/Articles/Article?AID=7ccbc8c3-e0c1-4dc3-99fe-6aba13992924#gsc.tab=0

Near the bottom of the article, just follow what it says, and it should work. At least it worked for me - Linux Mint 20.2 Hope it helps.

Edit: it appears you have to run the sudo modprobe -r ftdi_sio command each time you plug the board in I have not rebooted my system, so hopefully it will not be needed after a reboot.

marrony commented 2 years ago

I had the same issue using version V1.9.8.05 on:

I was only able to run the programmer on Ubuntu 18.04 using the V1.9.3Beta (haven't tested other versions)

a7-github commented 2 years ago

I want to leave an update on this to clear up the issues maybe then it would get solved because it is quite frustrating

wojtess commented 5 months ago

same issue here, does anybody resolved it?

jross9 commented 1 month ago

I thought I would add this in this case in hopes: 1) it helps the developers & 2) it helps Linux Mint 22 users (same as Ubuntu 24.04) ...

As others have mentioned if you run the separate programmer GUI as sudo it will work ... Running GOWIN V1.9.9.03 Education Build (73833) (it was the latest when I d/l 'd it) At the command line prompt in the User home folder if I run:

dev1@M710s:~$ sudo Gowin1.9xE/Programmer/bin/programmer &

YMMV. Until I figure out what the permission issue is, it works for me... yeah, it's a bummer having to run it as root, and that might be a non-starter for some people ... they really need to fix it... Test it on fresh installs of several Linux distro's.