Hi Scott,

I believe the problem you're experiencing is linux not allowing you to
write to the /usr/local directory structure as it is not owned by your
user.  I think you have a couple of choices to download the images.
The first is to install them into the default directory with sudo,
which I wouldn't recommend, the second is installing the packages into
a different directory with the -i switch to uhd_images_downloader.py.
Perhaps run the following commands

cd ~/
mkdir uhd_images
/usr/local/lib/uhd/utils/uhd_images_downloader.py -i ~/uhd_images

That should get you the download images I think.

Hope this helps,

Chris

On Tue, Aug 6, 2024 at 4:16 AM Dr. Scott Best via USRP-users
<usrp-users@lists.ettus.com> wrote:
>
> Dear USRP-Users Group,
>
>
>
> I installed UHD 4.7 on an Ubuntu MiniPC following the online instructions.  
> It seems to be working OK, so I tried updating the firmware for an N200 that 
> I picked up as a test vehicle for my set of new N320s.  I ran into a bug that 
> I have not found an answer to, as seen in the following Terminal script with 
> UHD commands shown in BOLD TYPE:
>
>
>
> drscott@Ubuntu:~/workarea/uhd/host/utils$ uhd_find_devices
>
> [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; 
> UHD_4.7.0.0-0-ga5ed1872
>
> --------------------------------------------------
>
> -- UHD Device 0
>
> --------------------------------------------------
>
> Device Address:
>
>     serial: E2R16TEUN
>
>     addr: 192.168.10.2
>
>     name:
>
>     type: usrp2
>
>
>
>
>
> drscott@Ubuntu:~/workarea/uhd/host/utils$ uhd_usrp_probe
>
> [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; 
> UHD_4.7.0.0-0-ga5ed1872
>
> [INFO] [USRP2] Opening a USRP2/N-Series device...
>
> Error: RuntimeError:
>
> Please update the firmware and FPGA images for your device.
>
> See the application notes for USRP2/N-Series for instructions.
>
> Expected FPGA compatibility number 11, but got 9:
>
> The FPGA build is not compatible with the host code build.
>
> Please run:
>
>
>
> "/usr/local/lib/uhd/utils/uhd_images_downloader.py"
>
> "/usr/local/bin/uhd_image_loader" \
>
>     --args="type=usrp2,addr=192.168.10.2"
>
>
>
> drscott@Ubuntu:~/workarea/uhd/host/utils$ 
> /usr/local/lib/uhd/utils/uhd_images_downloader.py
>
> [INFO] Using base URL: https://files.ettus.com/binaries/cache/
>
> [INFO] Images destination: /usr/local/share/uhd/images
>
> [ERROR] Invalid permissions to write images destination
>
> drscott@Ubuntu:~/workarea/uhd/host/utils$
>
>
>
> UHD on Ubuntu is able to find the N200, and is able to probe the N200 with 
> the second UHD command.  However, the third command is 
> /usr/local/lib/uhd/utils/uhd_images_downloader.py, which produces the 
> following ERROR MESSAGE - Invalid permissions to write images destination.  
> The N200 was not booted in SAFE MODE, so it should be available for firmware 
> updates.
>
>
>
> I have been unable to locate any information online for how to eliminate this 
> problem so I can write firmware updates to the N200.  Is a document available 
> for fixing this problem?  If not, can you tell me how to fix this firmware 
> update problem on the N200?
>
>
>
> Thanks in advance for your assistance with fixing this problem.
>
>
>
> Respectfully,
>
>
>
> Scott
>
>
>
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to