MyRIO Gets an Error on OPKG Update

Updated May 3, 2018

Reported In

Hardware

  • myRIO-1900

Software

  • LabVIEW 2017 Professional

Driver

  • NI-RIO 17.0

Other

Windows 7 SP1
Windows 8

Issue Details

I am trying to install third-party Linux software in myRIO using OPKG Package Manager via SSH connection, but execution of "opkg update" command results in wget bad address error:
admin@NI-myRIO-1900-0304756e:~# opkg update
Downloading http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/all/Packages.gz.
wget: bad address 'nickdanger.amer.corp.natinst.com'
Downloading http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/cortexa9-vfpv3/Packages.gz.
wget: bad address 'nickdanger.amer.corp.natinst.com'
Downloading http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/xilinx-zynq/Packages.gz.
wget: bad address 'nickdanger.amer.corp.natinst.com'
Collected errors:
 * opkg_download_backend: Failed to download http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/all/Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/cortexa9-vfpv3/Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download http://nickdanger.amer.corp.natinst.com/feeds/2017/arm/xilinx-zynq/Packages.gz, wget returned 1.

 

Solution

In order to solve that problem execute the following command from a SSH logged in as "admin":
sed -i 's#nickdanger\.amer\.corp\.natinst\.com/feeds/\([^/]\+\)/\([^/]\+\)/#download.ni.com/ni-linux-rt/feeds/\1/\2/ipk/#' /etc/opkg/base-feeds.conf
This will need to be run each time you format your target, possibly after software installation through MAX as well.
 

Additional Information

OS image that ships with LV 2017 and RIO 17.0 has the opkg feeds configured to point to the internal-to-NI feed server and therefore you will be unable to install software through OPKG without changing the configuration in a configuration file.

WAS THIS ARTICLE HELPFUL?

Not Helpful