Forum Discussion
Hi,
I would recommend you to use jtagconfig command rather than lsusb?
- JHuis34 years ago
New Contributor
My original question is how to distinguish the various boards while I am connecting them to the server.
While connecting, using udev rules, I can create devices such as /dev/tty_"uniq_name" pointing to the corresponding /dev/ttyUSB* devices. Such that I can use the name /dev/tty_"uniq_name" to connect to the board. I do this based on serial number, for instance. Similarly for the jtag (and other uart) ports.
I tried to do the same for jtag ports but I do not understand why/how the USB ids change from 09fb:6810 to 09fb:6010 after running jtagconfig. If that can be confirmed at least. I do not understand why this happens.
For tty ports the USB id is 09fb:6001 for the boards I have.
For instance for a DE1SoC:
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A106I60D", SYMLINK+="tty_de10soc"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6010", ATTRS{serial}=="DE-SoC-006-00660", SYMLINK+="jtag_de10soc"The second device being 09fb:6010 is only present after running jtagconfig. Before that device was indicated as 09fb:6810. I also suspect (but maybe I'm wrong) one can add a device as well after programming the FPGA. I would like to be able to access such interfaces uniquely per board as well from the server.