Este contenido no está disponible en su idioma de su preferencia.

El contenido se mostrará en otro idioma disponible. Su navegador puede proporcionar una funcionalidad para ayudarle a traducir el texto.

Restore NI Linux RT Target to Factory Default Configuration

Updated Jul 9, 2024

Environment

Hardware

  • CompactRIO Controller
  • myRIO-1900
  • myRIO-1950
  • CompactRIO Single-Board Controller
  • Industrial Controller

Software

  • LabVIEW Real-Time Module

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

This article explains how to restore an NI Linux Real-Time device to the factory default configuration. This may be necessary for the following reasons:

  • To reset the password for the target.
  • To restore my Linux x64-based CompactRIO (cRIO), sbRIO, PXI Real-Time controller, stand-alone USRP controller, or other real-time targets to factory default.
  • To format the disk and reinstall software

The method of restoration differs depending on the operating system of the target. Please refer to Real-Time Controllers and Real-Time Operating System Compatibility to determine which operating system each real-time target is running.

This article is focused on NI Linux Real-Time Targets (Intel x64-based targets), please consult the following if you have another device:

 

Please note the following before restoring your RT target to the factory default configuration:

  • When you format the disk, you will lose all programs and configuration data on your controller. Make sure you have a backup copy of any files you may need from your controller and make a note of your IP configuration. There is no need to back up any of the driver or run-time files as they will be reinstalled after the format.

    In this guide are the following sections:

    1. Method Requirements
    2. Method 1: Recovering a NI Linux Real-Time target with a monitor and keyboard
    3. Method 2: Recovering a NI Linux Real-Time target without a monitor and keyboard 
     

    Method Requirements

    To use the methods/utilities with your controller, you will need the following tools: 

    • FAT16 or FAT32 USB drive with FAT on the first partition. 
    (Note: Some systems are unable to recognize a bigger USB driver than 8GB. Try to use a maximum size of 8GB USB drive or less.) 
    • Monitor and display cables (to view the BIOS and format steps). 
    • Mini DisplayPort Adaptor (if the monitor does not have a DisplayPort). 
    • USB Keyboard (to interact with BIOS and format process). 

    Note: If you don't have the above tools (spare monitor and Mini DisplayPort Adaptor to access BIOS) or are using a NI Linux Real-Time target with no monitor (e.g. 905x), please move on to Creating the Reset USB from NIRECOVERY.zip section, for which you only need FAT16 or FAT32 USB drive.

    Back to the Top

    Method 1: Recovering a NI Linux Real-Time target with a monitor and keyboard

    For recovering an NI Linux Real-Time target with a monitor and keyboard, the "Reset USB" can be created from NI Measurement and Automation Explorer (MAX)

    Create the USB recovery utility from MAX: 

    1. Install LabVIEW and the LabVIEW Real-Time Module. 
    2. Plug the USB storage device into the computer. 
    3. Launch NI MAX
    4. Select Tools >> Create NI Linux RT Recovery USB Drive
    5. Select your USB storage device under Drive. 
    6. Select your Disk Image
    7. Click Format.
    8. Once complete, eject the USB from the computer. 
    9. When finished with the Linux RT controller reset, use [External] Rufus to recover the USB drive, as it will not be discoverable by Windows.

    NI Linux Real-Time target with keyboard or monitor.

    1. Ensure your Target is switched ON
    2. Plug the USB drive, keyboard, and monitor into the target. 
    3. Reset the target (do not boot into safe mode by holding the RESET button for 5 seconds). 
    4. Press the Delete or the F10 key while the target is restarting to enter the BIOS. 
    5. In the BIOS go to the Boot tab and ensure that the UEFI USB drive is set as the first boot option.
      • Note: It is important that you correctly configure this boot option or the reformat will not work properly. 

    Screenshot_2.png

    1. On the Save & Exit tab and proceed to Save Changes and Reset. When the target reboots it will begin the format process. 
    2. The format process will start with a request, NI Real-Time Provisioning USB key.
      • Continuing, will partition, format, and install safe mode to the target.
    3. Type and press Enter to begin the partition and installation of the new safe mode. 
    4. After the installation completes you will see a Safe mode was successfully installed. message on the console. 
    5. Next, the console says Remove the Recovery USB key before rebooting. 
    6. Remove the USB and then reboot the target. 
    7. The controller will now boot into safe mode. In MAX, the Status should read Safe Mode (No Software Installed). Now you can install software to the target and configure a new password if desired.
    8. To recover the USB drive for future use, use [External] Rufus or similar software on the PC to format the USB drive to make it discoverable by Windows. Under Boot selection choose the Non-bootable option. 
                Screenshot_3.png

    Method 2: Recovering a NI Linux Real-Time target without a monitor and keyboard

    For recovering an NI Linux Real-Time target without a monitor and keyboard, the "Reset USB" can be created from NIRECOVERY.zip found in the attachments on this page.

    Creating the Reset USB from NIRECOVERY.zip 

    Use the steps below to create a USB drive from NIRECOVERY.zip (Attachments section) that can be used to reset the password on your controller (by formatting the target and reinstalling safe mode):

    1. Extract the contents of the provided NIRECOVERY.zip file to the USB drive. 
    2. Rename the USB drive to NIRECOVERY. 
    Screenshot_1.png
     

    NI Linux Real-Time target without keyboard or monitor

    1. Ensure your Target is switched ON
    2. Plug the USB drive into the controller. 
    3. Turn the controller off by pressing the power button. If there is no power button, power off the controller by unplugging the power supply. 
    4. Push and hold the RESET button (continue to hold through step 5). 
    5. Push and release the POWER button. If there is no power button, power on the controller by plugging the power supply back in (continue to hold the RESET button while powering on).
    6. Wait 5 seconds while continuing to hold the RESET button. 
    7. When the status LED illuminates after ~5 seconds, release the RESET button. 
    8. After the installation completes you will see a Safe mode was successfully installed message on the console. If the monitor is not connected to the controller, wait a few minutes before proceeding to the next step.
    9. Next, the console says Remove the Recovery USB key before rebooting. 
    10. Remove the USB and then reboot the target. 
    11. The controller will now boot into safe mode. In MAX, the Status should read Safe Mode (No Software Installed). Now you can install software to the target and configure a new password if desired.

    Intel ARM-based targets

    Our Technical Support Engineering department will be able to assist customers who need to reset passwords on Linux Real-Time targets (ARM-based targets). To get in touch with a Technical Support Engineer, open a support request at NI Support.

     

    Attachments