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

FPGA bitstream autoload fails occasionally #363

Closed
piranha32 opened this issue Dec 31, 2014 · 2 comments
Closed

FPGA bitstream autoload fails occasionally #363

piranha32 opened this issue Dec 31, 2014 · 2 comments
Labels
Resolve: Invalid Reported issue is not valid

Comments

@piranha32
Copy link

From time to time libbladeRF fails to upload the firmware to the FPGA after USB2 cable is connected to the board. I noticed it twice when trying to run gnuradio flowgraph using osmocom source and sink. This is the error message printed by gnuradio when the problem occurred:

[WARNING @ libusb.c:217] A bladeRF running  firmware appears to be present on bus=7, addr=11.
If this is true, a firmware update via the device's bootloader required.

Restarting GR application did not help, problem persisted until USB cable was disconnected and plugged back in. I did not see it again since the last failure, so I could not collect information about FX3 firmware version seen by libbladeRF.

@jynik
Copy link
Contributor

jynik commented Jan 5, 2015

The following logs were provided by @piranha32 on IRC, and seem to indicate the device is enumerating at Full Speed for some strange reason.

The above message is printed because libbladeRF is expecting that modern bladeRF firmware provides 4 alt settings, and this is only showing one.

    Dec 30 17:57:56 dragon32 kernel: [236778.649942] usb 2-3: USB disconnect, device number 47
    Dec 30 17:57:56 dragon32 kernel: [236779.341399] usb 2-3: new high-speed USB device number 49 using ehci-pci
    Dec 30 17:57:57 dragon32 kernel: [236779.792085] usb 2-3: new high-speed USB device number 50 using ehci-pci
    Dec 30 17:59:15 dragon32 kernel: [236857.644660] usb 7-1: new full-speed USB device number 11 using uhci_hcd
    Dec 30 17:59:15 dragon32 kernel: [236857.775617] usb 7-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
    Dec 30 17:59:15 dragon32 kernel: [236857.779610] usb 7-1: not running at top speed; connect to a high speed hub
    Dec 30 17:59:15 dragon32 kernel: [236857.805634] usb 7-1: New USB device found, idVendor=1d50, idProduct=6066
    Dec 30 17:59:15 dragon32 kernel: [236857.805639] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Dec 30 17:59:15 dragon32 kernel: [236857.805642] usb 7-1: Product: bladeRF
    Dec 30 17:59:15 dragon32 kernel: [236857.805644] usb 7-1: Manufacturer: Nuand
    Dec 30 17:59:15 dragon32 kernel: [236857.805646] usb 7-1: SerialNumber: 50471fe09c5f1cd6c16c5b52bcb82eb7
    Dec 30 17:59:15 dragon32 mtp-probe: checking bus 7, device 11: "/sys/devices/pci0000:00/0000:00:1d.1/usb7/7-1"
    Dec 30 17:59:15 dragon32 mtp-probe: bus: 7, device: 11 was not an MTP device
    Dec 30 18:02:20 dragon32 kernel: [237042.797278] usb 7-1: USB disconnect, device number 11
Bus 008 Device 002: ID 1d50:6066 OpenMoko, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1d50 OpenMoko, Inc.
  idProduct          0x6066 
  bcdDevice            0.00
  iManufacturer           1 Nuand
  iProduct                2 bladeRF
  iSerial                 3 50471fe09c5f1cd6c16c5b52bcb82eb7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Device Status:     0x0000
  (Bus Powered)

@piranha32
Copy link
Author

Problem turned out to be caused by a hardware-related issue (USB connector), so I'm closing this report.

@jynik jynik added the Resolve: Invalid Reported issue is not valid label Jan 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolve: Invalid Reported issue is not valid
Projects
None yet
Development

No branches or pull requests

2 participants