# Flash and install

Source: [https://docs.qualcomm.com/doc/80-65220-2/topic/flash-and-install_4_3.html](https://docs.qualcomm.com/doc/80-65220-2/topic/flash-and-install_4_3.html)

Describes the procedure for deploying the QIRP SDK on the host machine and install it
    on the device.

## About this task

**Prerequisite:**

- Enable `SSH` in ‘Permissive’ mode with the steps mentioned in [How to SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/how_to.html#how-to-ssh-).

**Flash the robotics image**

**Steps:**

1. Connect the device to the host machine. see [Set up the device](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-253/set_up_the_device.html) of the [Qualcomm® RB3 Gen2 Development Kit Quick Start Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-253)
2. Flash the robotics image to the device.
    - For prebuilt robotics image, follow the steps in [Flash images for unregistered users](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/flash_images_unregistered.html).
    - For the robotics image generated in Build with Github (basic layers),
              follow the steps in [Flash images for unregistered users](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/flash_images_unregistered.html)
    - For the robotics image generated in Build with Github (firmware and extras), follow the steps in [Flash images for registered users](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/flash_images.html).

**Install the QIRP SDK on the device**

**Steps:**

## Procedure

1. On the host machine, move to the artifacts directory and decompress the package using
          the `tar` command.
        
cd <workspace>/build-qcom-robotics-ros2-humble\
        /tmp-glibc/deploy/qirpsdk_artifacts
        tar -zxf qirp-sdk_<qirp_version>.tar.gzCopy to clipboard

The `qirp-sdk` directory is generated.

Note: The `qirp-sdk_<qirp_version>.tar.gz` is in the deployed path of
            QIRP artifacts. The `<qirp_version>` changes with each release, such
            as `2.0.0`, `2.0.1`. For example, the whole package name
            can be `qirp-sdk_2.0.0.tar.gz`. For all released versions, see the [Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0
                    Release Notes](https://docs.qualcomm.com/bundle/publicresource/topics/80-75695-1).
2. To deploy the QIRP artifacts, push the QIRP files to the device using the following
          commands:
        
cd <workspace>/build-qcom-robotics-ros2-humble\
        /tmp-glibc/deploy/qirpsdk_artifacts/qirp-sdk
        scp ./runtime/qirp-sdk.tar.gz root@[ip-addr]:/opt/
        ssh root@[ip-addr]
        (ssh) cd /opt && tar -zxf ./qirp-sdk.tar.gz
        (ssh) chmod +x /opt/qirp-sdk/*.sh
        (ssh) cd /opt/qirp-sdk && ./install.shCopy to clipboard

**Parent Topic:** Build and install

Last Published: Jul 08, 2024

Previous Topic
 
QIRP SDK folder structure Next Topic

Develop a robotic application