Skip to content
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

Small bug fix for finding the FPGA USB port number #23

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

HelloKayT
Copy link
Contributor

At the moment, the list_enso_nics.sh script grabs the first device with a matching device number (regardless of bus number). This pull request just adds a couple of lines to grab the right bus first and then grep for the device number.

Some extra details:

Our output from lsusb is:
Bus 003 Device 002: ID 09fb:6010 Altera Intel Stratix 10 MX FPGA Development Kit

A portion of the output from lsusb -t is:

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
    |__ Port 6: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 1: Dev 2, If 1, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 9: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 10: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M

The script was grabbing the device under Bus 04 and giving us 5 instead of 1 as the port number

@hsadok hsadok self-requested a review April 11, 2024 00:07
@hsadok hsadok assigned hsadok and glass-hash and unassigned hsadok Apr 15, 2024
@hsadok hsadok requested a review from glass-hash April 15, 2024 16:48
Copy link
Collaborator

@glass-hash glass-hash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified by running the updated script on our servers.

@glass-hash glass-hash merged commit f47915d into crossroadsfpga:master Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy