C

NVIDIA Jetson TX2 Guide

To successfully set up the Boot to Qt software stack, you must closely follow the instructions in this section and perform all the described tasks.

In case of problems, see Troubleshooting.

Note: After you have installed the Boot to Qt software stack and want to connect to the target device with SSH or a serial cable, you can access the device by using the user root and an empty password.

Before you install the Boot to Qt software stack, you should note the requirements related to the development hosts:

2. Installing Boot to Qt Software Stack

You can install the Boot to Qt software stack via the online installer. On Linux, see General Installation Issues for Linux.

Download the Qt online installer via Qt Account Downloads and follow the instructions in the installer. The Select components page in the installer lists all the components that are available for your Qt account.

Select the Boot to Qt software stack for NVIDIA Jetson TX2 with the following steps:

  1. Select Qt for Device Creation.
  2. Select the Boot to Qt software stack version.
  3. Select NVIDIA Jetson TX2.
  4. Select Next.

To finish the installation, follow the instructions in the installation wizard.

Installation Content

The Boot to Qt software stack provides a system image (<target-device> System) and a toolchain (<target-device> Toolchain) for each target device. The system image contains the Boot to Qt software stack and needs to be flashed to the SD card or directly to the target device (see 3. Installing Boot to Qt on Target Device). The toolchain is required for building and developing applications for the target devices.

General Installation Issues for Linux

On Linux, remember to allow the execution of the installer binary. You can do this by using one of the following methods:

  • On the command line enter the chmod +x <filename> command.
  • Right-click the file, and select Properties > Permissions > Allow executing file as program.

Note: Do not execute the installer as a root user or with sudo.

Installation Directory

The installer will let you select a directory where the Boot to Qt software stack will be installed. In this documentation, the installation directory is referred to as <INSTALL_DIR>. The default installation directories are:

  • ~/Qt on Linux
  • C:\Qt on Windows
  • ~/Qt on macOS

3. Installing Boot to Qt on Target Device

Before you can test your Qt applications on the target device, you must flash the target device with an image containing the Boot to Qt software stack. After you have successfully flashed your device, Boot to Qt Demo Launcher automatically appears on the screen when you power on the device.

Use Flashing Wizard to flash the image to your NVIDIA Jetson TX2:

  • Connect your SD card reader to the development host. Make sure that the SD card size is at least 32 GB.
  • Launch Qt Creator.
  • Select Tools > Flash Boot to Qt Device, and follow the instructions in Flashing Wizard.

Flashing Linux for Tegra R32.6.1 onto the system's internal eMMC

In order to successfully boot Jetson TX2 from an sdcard, the device must have the same version of Linux for Tegra as is used by Boot to Qt image. Currently Boot to Qt is using L4T R32.6.1.

Boot to Qt includes additional utilities to flash the image onto the system's internal eMMC:

cd <INSTALL_DIR>/<Qt version>/Boot2Qt/jetson-tx2/images
tar xf b2qt-embedded-qt5-image-jetson-tx2.flasher.tar.gz
cd tegraflash
./prepare-image.sh
./doflash.sh

Alternatively, you can follow the instructions in the NVIDIA's Quick Start Guide to flash NVIDIA's own sample image.

Note: flashing internal eMMC is supported only in Linux host.

4. Configuring a Device Kit in Qt Creator

After you have prepared the target device, you must set up the development tools in Qt Creator for your device. That is, you must configure your target device to be used for each build and run kit.

Connect your device to the development host via USB and launch Qt Creator. In Qt Creator:

  1. Select Edit > Preferences > Kits.
  2. Select one of the predefined kits starting with Boot to Qt... that matches the type of your device.
  3. Select the correct device in the Device field.
  4. Select OK.

You are now ready to start developing with Qt for your device. For detailed information about how to deploy Qt projects to the device, see Tutorial: Deploying Your First Project with Boot to Qt.

5. Powering on with Boot to Qt Demo Launcher

After you have successfully flashed your device with Boot to Qt software stack, Boot to Qt Demo Launcher automatically appears on the screen when you power on the device. With Boot to Qt Demo Launcher, you can test the Boot to Qt demos that are included into Boot to Qt software stack images. For more information, see Qt Device Creation Demos.

Available under certain Qt licenses.
Find out more.