On 2022-03-26 12:37, [email protected] wrote:

I have been fighting this problem for two months; sometimes able to work for a couple of days, and then it breaks again. It occurs on multiple hardware platforms.

@SDR1000:~/SDR/uhd/host/build/examples$ sudo -E ./benchmark_rate --args type=b200,fpga=/usr/local/share/uhd/images/usrp_b200mini_fpga.bin --rx_rate 10e6 --tx_rate 10e6

results in:

———————-

[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_4.2.0.git-435-g220710b1

[WARNING] [B200] EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex

Using images directory: <no images directory located>

Set the environment variable 'UHD_IMAGES_DIR' appropriately or follow the below instructions to download the images package.

———————

the environment variable is set in ~/.bashrc as shown below

———————

@SDR1000:~/SDR/uhd/host/build/examples$ echo $UHD_IMAGES_DIR

/usr/local/share/uhd/images/


jericho@SDR1000:~/SDR/uhd/host/build/examples$ sudo -E uhd_find_devices

[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_4.2.0.git-435-g220710b1

--------------------------------------------------

-- UHD Device 0

--------------------------------------------------

Device Address:

serial: xxxxxxxxx

name: B200mini

product: B200mini

type: b200

———————

I was briefly able to have the command working benchmark_rate work last week by adding the args, but now it is failing again. It fails with sudo -E or plain sudo. And also fails without the args. How do I get past this? Thanks!



_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Also, there's ZERO reason to run this under "sudo".  No enhanced privilege is required to run this, unless you haven't installed the "udev" rules for the USRP.

I'm pretty sure that the default Ubuntu installer does that, although my recollection is that it doesn't have a rule for "mini" series in the  "uhd" rules file in
  /usr/lib/udev/rules.d file.

Easy enough to add, just copy one of the other rules and use a product id of "0022".


_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to