Prepare a microSD card with an image

After you've downloaded a platform-specific reference image for the QNX Platform for ADAS, you must transfer it for use on your target.

To transfer the reference image to your target board, copy it onto a microSD card. The steps you use depend on the host platform you use and presume that you have downloaded and extracted the reference to a directory on your host system. For more information about downloading and extracting the reference image, see Get a reference image in this chapter.
Warning: Ensure that you put the image on the partition of your microSD card. If accidentally put the image on a partition on your host, you could corrupt and render your host system inoperable.

We recommended that you use microSD card that's at least 8GB in size.

Ensure that you use cards with a speed class of at least UHS-I for better read/write performance. The speed class on the cards can be identified by a “U” with a number “1” (or greater) inside it. For example:
Figure 1. The UHS-I identifier

When you've finished transferring the reference image to your microSD card, follow the steps in Configure hardware and boot a reference image to boot the board.

Transferring an image using Linux

From the directory you extracted the ZIP file to, run the following command in a terminal to copy a reference image to removable storage:
Note: Some variants of Linux don't require that you use sudo.
sudo dd bs=1048576 if=rcarh3spre-sd.img of=/dev/sdX

This command causes the dd utility to write data to the disk in 1 MB chunks. It assumes that sdX is the device entry for the microSD card, where X is a letter index for the drive name on Linux (e.g., a, b).

Note: The device name shouldn't include a partition suffix. For example, do not use /dev/sda1. However, on some Linux variants, the device name can be /dev/mmcblk0 and may differ depending on whether you use a USB hub.

Transferring an image using macOS

On your macOS host system, you run the following commands to put the image on a USB drive.
  1. In a terminal, run diskutil umount /Volumes/VOLUME_LABEL. For example, to unmount No Name from diskX:
    diskutil umount /Volumes/NO\ NAME/ 
                    
  2. Copy the image to the raw device. You may need to run sudo to run the command.
    sudo dd bs=1048576 if=rcarh3spre-sd.img of=/dev/rdiskXsY
    This command causes the dd utility to write data to the disk in 1 MB chunks. This command assumes that rdiskXsY is the device entry for the microSD card, where Y is a letter index for the drive name on macOS (e.g., a, b).
    Note: The device name shouldn't include a partition suffix. For example, don't use /dev/rdisk1s1.
  3. Run diskutil to eject the disk.
    diskutil eject /dev/rdisk1

Transferring an image using Windows

On a Windows system, to copy a reference image to the microSD card:

  1. If you don't already have Win32 Disk Imager on your system, download it from the following location:

    http://sourceforge.net/projects/win32diskimager/

  2. Run Win32 Disk Imager.
  3. Browse to the location where you unzipped the image file from the QNX Software Center and click Open.
  4. Click Write to write the rcarh3spre-sd.img file to your microSD card.
  5. Click Yes to begin the process of writing the image. When it's complete, you'll see the message “Write successful.”
  6. Click OK, then exit Win32 Disk Imager.