Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.15k stars 459 forks source link

Trying to run bladerf 115. Problems with firmware #825

Open topheroes opened 3 years ago

topheroes commented 3 years ago

Hello,

I'm trying to update firmware. When I run


bladerf-cli -p

probe: No devices are available. If one is attached, ensure it
         is not in use by another program and that the current
         user has permission to access it.

bladerf-cli -i
NOTE: One or more FX3-based devices operating in bootloader mode
      were detected. Run 'help recover' to view information about
      downloading firmware to the device(s).

No bladeRF device(s) available.

If one is attached, ensure it is not in use by another program
and that the current user has permission to access it.

bladeRF> recover

  FX3 bootloader devices:
  ---------------------------------------------------------
    Backend:    libusb
    Bus:        1
    Address:    5

  Use 'recover <bus> <addr> <firmware>' to download and boot
  firmware to the specified device.

bladeRF> recover 1 5 c:\install\sdrsharp\bladerf_fw_latest.img

  Success! Use "open" to switch to this device.
  Note that a "load fx3 <firmware>" is required to write the firmware to flash.

bladeRF> open
[INFO @ host/libraries/libbladeRF/src/board/bladerf1/bladerf1.c:872] Waiting for device to become ready...
[ERROR @ host/libraries/libbladeRF/src/backend/usb/usb.c:239] Failed to switch to NULL interface: File or device I/O failure

  Error: Operation timed out

bladeRF> open
[WARNING @ host/libraries/libbladeRF/src/board/bladerf1/bladerf1.c:618] AGC commands for FPGA v0.7.3 are incompatible with this version of libbladeRF. Please update to FPGA v0.8.0 or newer to use AGC.
[WARNING @ host/libraries/libbladeRF/src/board/bladerf1/bladerf1.c:1705] RX DC calibration table not found. Manual gain control will be used instead.
[INFO @ host/libraries/libbladeRF/src/board/bladerf1/bladerf1.c:1706] To enable AGC, see "Generating a DC offset table" at https://github.com/Nuand/bladeRF/wiki/DC-offset-and-IQ-Imbalance-Correction

bladeRF> load fx3 bladerf_fw_latest.img

  Flashing firmware from bladerf_fw_latest.img...

  Error: File or device I/O failure

The last part in verbose would show

bladeRF> load fx3 bladerf_fw_latest.img

  Flashing firmware from bladerf_fw_latest.img...

[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 2
[DEBUG @ host/libraries/libbladeRF/src/backend/usb/usb.c:110] Failed to change setting: File or device I/O failure
[DEBUG @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:69] Failed to erase firmware region: File or device I/O failure

  Error: File or device I/O failure

When I tried this doc https://github.com/Nuand/bladeRF/wiki/Upgrading-bladeRF-FX3-Firmware#Upgrading_using_the_FX3_bootloader_Recovery_Method The USB Control Center doesn't see the device (although there is WestBridge device in Device Manager).

Please advice

rghilduta commented 3 years ago

Is this in a VM or a native host? If you are in a VM ensure XHCI pass through is enabled. The I/O errors might also be related to permissions, does the current user have permission to USB devices?