Build the BSP
You can use the QNX Momentics IDE or the commandline on Linux or Windows to build an image.
Generic instructions to modify your BSP (add contents and modify the buildfile) can be found in the Building Embedded Systems guide, which is available as part of the QNX SDP 8.0 documentation.
For instructions on how to build this BSP using the IDE, see Build the BSP (IDE)
section in this chapter.
For detailed information on how to build using the IDE, see the
IDE User's Guide, which is available as part of the QNX SDP 8.0 documentation.
If you plan to work with multiple BSPs, we recommend that you create a top-level BSP directory and then subdirectories for each different BSP. The directory you create for a specific BSP will be that BSP's root directory (BSP_ROOT_DIR). This allows you to conveniently switch between different BSPs by simply setting the BSP_ROOT_DIR environment variable.
This BSP includes prebuilt IFS images that are provided as a convenience to quickly get QNX OS running on your board, however these prebuilt images might not have the same components as your development environment. For this reason, we recommend that you rebuild the IFS image on your host system to ensure that you pick up the same components from your own environment.
Prebuilt image
After you've unzipped the BSP, a prebuilt QNX IFS image is available in the BSP's /images directory. This prebuilt IFS image (ifs-j721e-evm.raw) can be regenerated with the BSP make file, and is configured for the BSP device drivers already available for your board.
If you modify and build the IFS, the original IFS files are overwritten. If you need to revert to this prebuilt image, simply run the make command from the BSP's root directory using the original buildfiles.
Before you build this BSP
Before you can use this BSP, you must build the images using the commandline or the IDE. Full feature support is not available in this BSP because the PSDK required to support all features is only available from Texas Instruments.
- Extract the archive files that you got from Texas Instruments into a separate directory outside of the BSP_ROOT_DIR directory.
- (Optional) Copy the psdkqa directory to $BSP_ROOT_DIR/src/hardware/support/ti/j721e/
- You can use the export PSDK_QNX_PATH= psdkqa_install_dir (Linux) or set
PSDK_QNX_PATH= psdkqa_install_dir (Windows) command to set the environment variable
to point to your psdkqa.
Note:If you copy the psdkqa to $BSP_ROOT_DIR/src/hardware/support/ti/j721e/ you can set the environment variable in Linux by entering export PSDK_QNX_PATH=$BSP_ROOT_DIR/src/hardware/support/ti/j721e/psdkqa
- You can use the source prebuilt/custom/devf-j7-ospi/env_j721e.sh command to set the environment variable to build for the correct SOC.
- Update the buildfiles by uncommenting the binaries that are in the PSDK before rebuilding. For more information on buildfiles, see the
Binary extracted from Texas Instruments-PSDK Description tisci-mgr Resource manager to communicate with the TI System Controller tiudma-mgr Resource manager to configure UDMA shmemallocator Shared Memory Allocator Resource Manager tiipc-mgr Resource manager to support IPC libti-pdk.so TI PDK Shared Library libti-sciclient.so TI SCI Client Shared Library libti-ipclld.so TI IPCLLD Shared Library libtiipc-usr.so TI IPC USR Shared Library libti-udmalld.so TI UDMA LLD Shared Library libtiudma-usr.so TI UDMA USR Shared Library Build the BSP (commandline)
section in this chapter, respectively. - Build the BSP using commandline or the QNX Momentics IDE. For
more information, see the
Build the BSP (commandline)
orBuild the BSP (IDE)
sections in this chapter, respectively.Note:If you use commandline, ensure that you run make install in the $BSP_ROOT_DIR/src/hardware/flash/ directory after building the BSP. This will ensure that your OSPI driver is built against the PSDK that you previously installed.