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 $QNX_BASE/bsp directory where QNX_BASE represents the directory where your QNX SDP 8.0 installation is located. 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 installation and build paths that are used in this BSP can function independently as long as you have the QNX Software Development Platform 8.0 installed.
Extract from the commandline
We recommend that you create a directory named after your BSP and extract the archive from there:
- 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.
-
Create and navigate to the directory where you want to extract the BSP (e.g., cd /BSPs/nxp-imx93-evk). 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 cd 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 (Linuxg) or set BSP_ROOT_DIR=bsp_working_dir (Windows) command to set the environment variable.
- Use the unzip command to extract the ZIP file for this BSP.
This file was downloaded by the QNX Software Center
to the directory you had created in the previous step. For example:
unzip -d bsp_working_dir $QNX_BASE/bsp/BSP_nxp-imx93-evk_be-800_build_ID.zip
where build_ID is the BSP build number (e.g., _SVN986515_JBN6).
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:
- Open the QNX Momentics IDE.
- From the C/C++ Perspective, select .
- Expand the QNX folder.
- Select QNX Source Package and BSP (archive) from the list and then click Next.
- In the Select the package dialog box, click Browse for ZIP Archive....
- 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.
- Confirm the BSP package you want is shown in the Selected Package list and then click Next to proceed importing the BSP archive file.
- 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.
- 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-nxp-imx93-evk). 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
For more information about the contents of the directory structure, see the Building Embedded Systems guide in the QNX SDP 8.0 documentation.