Download and set up the BSP

You can download Board Support Packages (BSPs) using the QNX Software Center.

BSPs are provided in a ZIP archive file. You must use the QNX Software Center to install the BSP, which downloads the BSP archive file for you into the bsp directory located in your QNX SDP 8.0 installation. To set up your BSP, you can do one of the following steps:

  • Import the BSP archive file into the QNX Momentics IDE (extracting the BSP isn't required)
  • Navigate to where the BSP archive file has been downloaded, and then extract it using the unzip utility on the commandline to a working directory that's outside of your QNX SDP 8.0 installation.
    Note:
    The unzip utility is available on all supported host platforms and is included with your installation of QNX SDP 8.0.

    The QNX-packaged BSP is independent of the installation and build paths, if the QNX Software Development Platform 8.0 is installed. To determine the base directory, open a Command Prompt window (Windows) or a terminal (Linux), and then type qconfig.

Extract from the commandline

We recommend that you create a directory named after your BSP and extract the archive from there:

  1. In a Command Prompt window (Windows) or a terminal (Linux), run qnxsdp-env.bat (Windows) or source qnxsdp-env.sh (Linux) from your QNX SDP 8.0 installation to set up your environment. You must run the shell or batch file to use the tools provided with QNX SDP 8.0.
    Note:
    If you type env, you should see environment variables that are set such as QNX_TARGET.
  2. Navigate to the directory where you want to extract the BSP (e.g., cd /BSPs/raspberrypi-bcm2711-rpi4). The directory where you extracted the BSP is referred to throughout this document as bsp_working_dir. The archive is extracted to the current directory, so you should create a directory specifically for your BSP. For example:
    mkdir bsp_working_dir

    You should also set the BSP_ROOT_DIR environment variable to point to your bsp_working_dir. You can use the export BSP_ROOT_DIR=bsp_working_dir (Linux) or set BSP_ROOT_DIR=bsp_working_dir (Windows) command to set the environment variable.

  3. In the directory you created in the previous step, use the unzip command to extract the BSP. For example:
    unzip -d bsp_working_dir BSP_raspberrypi-bcm2711-rpi4_be-800_build_ID.zip

    where build_ID is the BSP build number (e.g., JBN11).

You should now be ready to build your BSP. See the Build the BSP (commandline) chapter for more information.

Import to the QNX Momentics IDE

If you use the QNX Momentics IDE to build your BSP, you don't need to extract the ZIP file. To import the BSP code into the IDE:

  1. Open the QNX Momentics IDE.
  2. From the C/C++ Perspective, select File > Import.
  3. Expand the QNX folder.
  4. Select QNX Source Package and BSP from the list and then click Next.
  5. In the Select the package dialog box, click Browse for ZIP Archive....
  6. In the Open dialog box, navigate to and select the BSP archive file that you downloaded earlier, and then click Open and then click Next.
  7. Confirm the BSP package you want is shown in the Selected Package list and then click Next to proceed importing the BSP archive file.
  8. Optionally, set the Project Name and Location to import the BSP archive file. Defaults are provided for the project name and location, but you can override them if you choose.
  9. Click Finish. The project is created and the source brought from the archive.

You should see the project in the Project Explorer view (e.g., bsp-raspberrypi-bcm2711-rpi4). You can now build your BSP. For more information, see the Build the BSP (IDE) section in the Build the BSP chapter of this guide.

Structure of a BSP

After you unzip a BSP archive using the commandline, or if you look at the source that's extracted by the IDE in your workspace, the resulting directory structure looks something like this:
Figure 1Structure of a BSP


For more information about the contents of the directory structure, see the Building Embedded Systems guide in the QNX SDP 8.0 documentation.

Page updated: