Giter VIP home page Giter VIP logo

Comments (11)

trabucayre avatar trabucayre commented on September 26, 2024

HI,
just to be sure could you try using sudo (and with -b tangnano20k?
This issue seems to be at libftdi level.

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

hello! thank you for your quick response. I get the same error messages using sudo:

sudo_try
I verified on windows with the gowin ide and the board works. I reprogrammed it with a blink example, but it doesn't change any of my error messages on linux.

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

Hello again!
I just tried to use it on a live Lubuntu USB, and it works there. What packets could i have on my main install that would be broken/ missing? I have installed all the packets marked as needed to install from source:
sources
(my system is up to date, the waiting to upgrade packages are still missing some dependencies to upgrade)

from openfpgaloader.

zJudGenie avatar zJudGenie commented on September 26, 2024

@H4-b Can you check the dmesg output when you plug the tang nano ?

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

here is the dmesg output:
dmesg

from openfpgaloader.

zJudGenie avatar zJudGenie commented on September 26, 2024

Seems good, I've noticed that here you didn't use sudo as trabucayre said.

Edit. sorry, you are already root

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

I just tried to see the dmesg after trying to use openFPGALoader -b tangnano20k --detect
It says that it disconnected the device, and only on one of the two ports associated. I have no idea if that's normal or not.
dmesg-new
edit: verified it, it doesn't happen on my live usb. still no idea what is wrong though.

from openfpgaloader.

trabucayre avatar trabucayre commented on September 26, 2024

Using sudo is finally not required: your user seems to have correct right.
the device is disconnected because to have access to them, userspace needs to detach the driver: this is the reason of this message.
The most interesting thing is you are able to use openFPGALoader with a live OS (ie more or less native): your Linux is a WSL2? I have recently observed issues in this mode: cmsis-dap not working and debugging a CPU was impossible.

If so it's why gowin is able to work: it not in WSL2 environment. When openFPGALoader shows an error associated to libftdi/libusb it's usually a lowlevel issue (ie between userspace application and hardware.

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

No, my linux was a "standard" debian testing. I even tried reinstalling the FTDI related packages to search for corruption.
However, since the last reboot, my system choose to auto-destruct for some unknown reason (missing dependencies everywhere, gnome uninstalled itself...) so it seems like that was the problem, as it's now working on a fresh install.
However, my gowin IDE was in a VM and was working fine with port forwarding.

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

It seems like the bug is back. I manage to make it work sometimes, but other it just doesn't. I'm going to update this message with the dmesg and terminal output when it will want to magically work to see if there is any difference.
could it be the internal usb controllers of my computer?
I am now on a fresh install of debian testing on gnome desktop.

update: even by rolling back to my completely fresh install with timeshift, i cant make it work anymore. So i am back to square one: a fresh install, but nothing works.
I am on a framework 16 laptop, and sadly it isn't supported well enough on stable yet to just use it instead.

from openfpgaloader.

H4-b avatar H4-b commented on September 26, 2024

I choose to upgrade to unstable to test if the issue is gone, and it is. It seems like it's one of the current testing packages that is somewhat broken.
working

Tell me if you want to close this issue or not, as it's not really resolved but more circumvented.

I still have a full backup of the non-working setup if you want me to try some things to actually resolve the issue for others, or at least know where it's from.

from openfpgaloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.