Build the BSP

You can use the QNX Momentics IDE or the commandline on Linux or Windows to build an image.

Generic instructions on how to extract and build a BSP can be found in the Building Embedded Systems guide, available as part of the QNX Software Development Platform 8.0 documentation.

For instructions on how to build using the IDE, see Build the BSP (IDE). For generic information on how to build using the IDE, see the IDE User's Guide as part of the QNX SDP 8.0 documentation.

If you plan to work with multiple, different BSPs, we recommend that you create a top-level BSP directory, then create subdirectories for each different BSP. The directory you create for each 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 convenience for you 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 development environment.

To build your BSP, complete the following tasks:

  1. Build the BSP, either using the commandline or the QNX Momentics IDE.
  2. Create a bootable USB device using your host or using a VMWare machine running QNX OS.
Note:

Once you've unzipped the BSP, you may notice prebuilt IFS images, such as generic-bios/x86_64-generic-bios.bin, generic-uefi/x86_64-generic-uefi.efi, elkhart-lake/x86_64-ehl-crb-uefi.efi, amston-lake/x86_64-seco-amstonlake-uefi.efi in the $BSP_ROOT_DIR/images directory. You need to run make clean if you need remove these files in the commandline. You don't need to remove them if you use the IDE to build the BSP because the IDE does a make clean each time it builds.

Support for AMD-based systems

By default, the BSP are configured to build for Intel-based targets and therefore, the prebuilt QNX IFS images provided with this BSP works only on Intel-based targets. To build an image for AMD-based targets, you need edit the buildfile and comment out the Intel-specific drivers and uncomment the AMD-based drivers.

For example to build for AMD-based targets, make these changes in buildfile generic-uefi/x86_64-generic-uefi.build and rebuild your QNX IFS image:
  1. Change the code from:
    PCI_HW_MODULE=/lib/dll/pci/pci_hw-Intel_x86.so
                            
    to
    PCI_HW_MODULE=/lib/dll/pci/pci_hw-AMD_x86.so
                            
  2. Change the code from:
    export PCI_HW_MODULE=/lib/dll/pci/pci_hw-Intel_x86.so
                            
    to
    export PCI_HW_MODULE=/lib/dll/pci/pci_hw-AMD_x86.so
                            
Page updated: