EttusResearch / uhd

The USRP™ Hardware Driver Repository
http://uhd.ettus.com
Other
942 stars 644 forks source link

USRP N310: How to Install XG fpga image over SFP port 0 #745

Closed GershomSandeep closed 2 months ago

GershomSandeep commented 2 months ago

I used this command to install the fpga image for USRP N310: "sudo uhd_images_downloader -t mender -t n3xx --yes". But problem is by default it will install HG image so please provide a advice that how to install XG image for USRP N310 over SFP port 0.

wordimont commented 2 months ago

This is covered in the getting started guide:

https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide#Updating_the_FPGA_Image

  1. Download the FPGA images from the internet
    $ sudo uhd_images_downloader
  2. Download the desired N310 image (XG, HG, etc.) to your device
    $ uhd_image_loader --args "type=n3xx,addr=<N3xx_IP_ADDR>,fpga=XG"

    Notice I specified "XG" in this example, since that's the one you want.

You mentioned specifically downloading over SFP port 0. Any functional port should work. Generally, I prefer to specify the RJ45 port using mgmt_addr=<RJ45 IP>, since it doesn't go down while the FPGA is programming. Regardless, try specifying the address of the port you want to use.

$ uhd_image_loader --args "type=n3xx,mgmt_addr=<RJ45 IP>,fpga=XG"

You can usually use uhd_find_devices to find the IP address to use if you don't know it. You should also be able to ping the IP addresses to verify you're communicating properly with the port.