Comments (3)
The used FT2232 provides two interfaces. The first one (/dev/ttyUSB0 if no other device is connected) is used for debugging using OpenOCD. The second one (/dev/ttyUSB1) is the serial console interface. The ATTRS{bInterfaceNumber} was necessary to only create the link for this second port.
The rule has been written on an OpenSUSE 42.2 system with udev version 228-25.15.1. In my experience with other devices the ATTRS are not always consistent over different versions of udev. So it's quite possible that some adaption is necessary.
I'm not sure but it could be possible that ID_USB_INTERFACE_NUM has different values if there are more USB serial converters attached. Do you have any more information on how that value is generated?
from grisp-software.
Ok, I see now.
I was using the rules without ATTRS{bInterfaceNumber}=="01"
and it got linked to /dev/ttyUSB0
and was not working. using ENV{ID_USB_INTERFACE_NUM}=="01"
seems to work just fine now.
I am not 100% sure about where the value is generated, but it seems it comes from systemd, not udevd... so it may not be completely portable.
From some mailing list someone got around it not being defined by using the rule:
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{ID_USB_INTERFACE_NUM}="$attr{bInterfaceNumber}"
I am not sure what you are suggesting about issues with serial converters.
from grisp-software.
I am not sure what you are suggesting about issues with serial converters.
I meant the following case:
- You have some random USB-serial converter connected that is registered as /dev/ttyUSB0
- Now you connect a GRiSP. That creates /dev/ttyUSB1 and /dev/ttyUSB2. Does the symlink point to ttyUSB1 or ttyUSB2.
But I just tested that. It correctly points to USB2. So I'll just create a patch with your suggested solution.
from grisp-software.
Related Issues (20)
- Updating the booloader on macOS 10.13.1 HOT 2
- Build fails on Mac OS 10.10.5 HOT 17
- Built-in shell hangs after editing file HOT 2
- Building grisp project failing on Mac OS 10.10.5 HOT 3
- GCC no longer builds on macOS 10.13 HOT 1
- Debugging symbols missing when trying to debug the beam with gdb and supports script. HOT 4
- Question: when building toolchain, is there a way to re-use build artifacts? HOT 2
- Debugging with OpenOCD/GDB is not working. HOT 4
- OpenOCD no longer builds on GCC7
- Usage of PIO_ConfigureIt() leads to wpa_supplicant not starting HOT 8
- git.rtems.org down: rtems-sourcebuilder sub-module reference points to nonexisting changeset HOT 11
- Testsuite build: undefined reference to `_bsd_at91_mci_nexusmodule_sys_init' HOT 2
- When wpa_supplicant is not configure but Wifi enable it connects to the first unencrypted network
- Consider hosting rtems toolchain build-dependencies on GitHub HOT 13
- OpenOCD does not build with gcc 7.3.1 HOT 1
- Add instructions of how to create custom RTEMS binaries
- Missing Licence HOT 7
- Device will sometimes not boot
- Build fails on MacOS 10.15 Catalina HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grisp-software.