How to update my cRIO's firmware using the SSH commands

Updated Aug 4, 2024

Environment

Hardware

  • CompactRIO Controller

Other

If you would like to avoid using NI MAX to update your  cRIO target's firmware, you may use the SSH commands explained on this article.

  • I need to update the firmware image on my cRIO target using SSH commands.
  • The system is already pre-configured, and I want to update the firmware without installing or using the Measurement & Automation Explorer (MAX) software.
  • What SSH commands should I use to update my cRIO's firmware?

To update the RT firmware on your target using SSH commands, follow these steps:

  • Download the Firmware image:  You can obtain your cRIO's firmware image from our website. 

  • Transfer the Firmware File:

    • Transfer the firmware file (*.cfg) to the cRIO (Check the table to locate the firmware in the link here) under the directory (/home/lvuser).
    • One way to transfer the file is by mapping the cRIO on your host PC. Alternatively, you can use other file transfer methods.
  • SSH into the Target:

admin@NI-cRIO-xxxx-xxxxxxx:~# niinstallsafemode /home/lvuser/cRIO-9040_24.0.0.cfg
  • Verify the Firmware Version:

    • To confirm the firmware has been updated, check the version with this command:
admin@NI-cRIO-xxxx-xxxxxxxx:~# nisafemodeversion

 

This process ensures that your RT target is running the latest firmware.