Closed DavidAntliff closed 5 years ago
Turns out that the User Guide has a step that does all this for you: apio drivers --serial-enable
, creates:
$ cat /etc/udev/rules.d/80-fpga-serial.rules
# Disable ModemManager for BlackIce
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1"
# Disable ModemManager for TinyFPGA B2
ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2100", ENV{ID_MM_DEVICE_IGNORE}="1"
# Disable ModemManager for TinyFPGA BX
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="6130", ENV{ID_MM_DEVICE_IGNORE}="1"
Which seems to stabilise the driver as well.
I'm going to close this as it's not really an "issue" that needs to be fixed.
Confirmed as a fix for me on Lint Mint 19.1 (Ubuntu 18.04) as well.
I faced the same issue on Ubuntu 19.04 -- It crashes and re-enumerates every few seconds:
[ 1563.376825] usb 1-9: USB disconnect, device number 92
[ 1563.377078] cdc_acm 1-9:1.0: failed to set dtr/rts
[ 1563.797511] usb 1-9: new full-speed USB device number 93 using xhci_hcd
[ 1563.954415] usb 1-9: New USB device found, idVendor=1209, idProduct=2100, bcdDevice= 0.00
[ 1563.954423] usb 1-9: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1563.956735] cdc_acm 1-9:1.0: ttyACM1: USB ACM device
I've tried apio drivers --serial-enable
and manually setting ENV{ID_MM_DEVICE_IGNORE}="1"
/ENV{MTP_NO_PROBE}="1"
without luck.
Assuming something else is trying to use the port (Since tinyprog says "Device Busy"), I tried changing it's permissions so that system services couldn't access it:
ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2100", OWNER="paulo", GROUP="paulo"
Surprisingly, this worked for me, but I guess there must be a better solution ;)
I know this is closed, but thank you for this! It was the only thing that worked for me!
I'm on Ubuntu 19.04 for any searchers to come.
ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2100", OWNER="paulo", GROUP="paulo" OWNER="paulo", GROUP="paulo"
Surprisingly, this worked for me, but I guess there must be a better solution ;)
I'm glad it was helpful :)
I had this same problem on Ubuntu18.04. It looked like ModemManager wouldn't stop trying to use the device, despite the udev rules.
Just removing it completely with sudo apt-get purge modemmanager
solved the problem and allowed consistent use of tinyprog.
sudo apt purge modemmanager worked for me, too (Ubuntu 18.04). Thank you very much, DaveMcEwan!
removing modemmanager worked for me. I am also unit Ubuntu 18.04. Thanks Dave.
Thank you so much DaveMcEwan! This solved a similar issue with an Arduino Nano I was trying to get working.
Posting this in case someone else has the same experience.
When I connect the board (with supplied firmware) to Ubuntu 16.04 via USB I see this in my Linux kernel log:
This sort of thing appears every few seconds in the
dmesg
log.Running
tinyprog -m
results in one of three different results:Or:
Or:
After creating the following file:
Then
sudo udevadm control --reload
,dmesg
settles down with just:Now
tinyprog -m
produces consistent and reproducible output: