-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to open ftdi device: -4 (usb_open() failed) #245
Comments
This issue is similar to #246. Everything seems fine (group, rw permissions). |
Could you confirm nothing else use /dev/ttyUSB0? |
I'm on Ubuntu Jammy in #246 if that helps |
When I connect, I get these kernel messages. Sorry I didn't realize that it used both /dev/ttyUSB0 and /dev/ttyUSB1
No Linux process seem to have control of it, the following command gives no output:
I am on: Debian GNU/Linux 11 (bullseye) |
I fixed it. I had to add the following udev rule: File:
For others who arrive here with different boards, change the vendor and product to match the hex values produced by lsusb. For example here is mine:
|
Thanks! |
@infinitesteps - slight modification (does not grant access to 'others'). Oddly, the apparent permissions were exactly the same for me before and after adding this udev rule but it does indeed work :-) # add user to dialout group
sudo usermod -a -G $USER dialout
# gain new group access without logging out/in
exec su -l $USER
# add udev rules
sudo cat <<< EOF > /etc/udev/rules.d/99-ftdi.rules
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0660", GROUP="dialout"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger |
It's true: when you add your user to a new group you have to logout and login for modifications takes effects... Or using sudo to gain group/permission update locally. |
Couple of notes...
|
openFPGALoader's documentation must be improved: you haven't found required information this mean documentation is not clear or too limited
This is weird yes. rules file provided by openFPGALoader set right for others to 4. Content of this issue must be resumed in faq.
Currently, openFPGALoader displays libftdi message too, but a more explicit message must be added with some tips to fix issue (it's true here but for all error too). |
Hello, this problem also occurs to me on two different Windows machines (7 and 10, using the MSYS2 package), I get the exact same error when using --detect on a Tang Nano 4K board, is there an equivalent fix for Windows? let me know if you need further debugging information. |
Thanks a lot!! It helped me, too. EDIT: I was not able to program my Tang Primer 20k so far by doing this step, now I can. Somehow it was not the same issue as #251 . |
Hello, thx for debug tips. Same issue as @verilog-indeed , unable to flush Tang Nano on Windows 10. openFPGALoader is running from commandline, so there is no /etc/udev/rules.d Btw, openFPGALoader was installed in my system as part of https://github.com/YosysHQ/oss-cad-suite-build |
Managed to workaround this, as mentioned here: Using this tool: Replacing driver for Sipeed-JTAG from FTDIBUS to WinUSB seems to solve the issue. openFTDILoader starts to correctly detect device and flush it. Not sure, what this tool really does, cause of lack of knowledge about USB stack. |
I'm absolutely no knowledge about windows but as far I know to be able to use the libftdi with windows it's required to replace driver: and it's job of this tool. |
Problem:
More info:
The text was updated successfully, but these errors were encountered: