Boot using xSPI NOR flash

After you boot your board, you can prepare a bootable xSPI NOR flash device to use to boot your board.

Note:
Before you can perform the steps to prepare a bootable xSPI NOR flash, you must first boot your board using a bootable SD . For more information, see Prepare a bootable microSD and Use the QNX IPL to boot board.
After you have QNX OS running, complete the following steps to prepare a bootable xSPI NOR Flash.
  1. Start the devf-flexspi-imx8 driver from commandline in QNX if not started during QNX boot.
  2. You should see fs0, fs0p0 devices (partitions) appear in device files. You can use the ls /dev command to show the dev directory.
  3. Format the SPI NOR Flash memory using following command:
    flashctl -p /dev/fs0 -ev
  4. Copy the FlexSPI header (imx-fspi-header.bin), QNX IPL bootloader [ipl-imx8mp-evk_flash.imx], and the QNX IFS (qnx-ifs) files into the /tmp directory of the target that's running the OS. The FlexSPI header is available in the $BSP_ROOT_DIR/images/imx-fspi-header/ directory.
  5. Copy the FlexSPI configuration parameters (FlexSPI header) to the memory device using the following command:
    dd if=/tmp/imx-fspi-header.bin of=/dev/fs0 bs=512 seek=2
    1+0 records in
    1+0 records out
  6. Copy the QNX IFS and QNX IPL files [ipl-imx8mp-evk_flash.imx] to the /tmp directory on your board. Both files are in $BSP_ROOT_DIR/images directory.
  7. Copy the QNX IPL file onto the memory device using the following command:
    dd if=/tmp/ipl-imx8mp-evk_flash.imx  of=dev/fs0 bs=512 seek=8
    624+0 records in
    624+0 records out
  8. If you require networking, copy imx8mp-evk.dtb file on the memory device at 0x100000 offset using this command:
    dd if=/tmp/imx-8mp-evk.dtb of=dev/fs0 bs=512 seek=2048
  9. Copy the QNX IFS file qnx-ifs on the memory device at 0x200000 offset using this command:
    dd if=/tmp/qnx-ifs of=dev/fs0 bs=512 seek=4096
  10. Configure the DIP switches to boot your board using xSPI NOR Flash memory instead of the SD as follows:
    Figure 1DIP switch configuration for the i.MX 8MP EVK board to boot from QSPI
    For more information, see Set up the hardware in this guide about configuring the DIP switches on the board.
  11. Press the SW2 (RESET) switch on the i.MX 8MP EVK board to reset the board and press the F key to boot from xSPI NOR Flash:
    ...
    Welcome to QNX OS Initial Program Loader for NXP i.MX8MPlus Evaluation Kit Board (ARM Cortex-A53)
    ATF commit: 47baad8
    Command:
    Press 'D' for serial download, using the 'sendnto' utility
    Press 'M' for SDMMC download, IFS filename MUST be 'QNX-IFS'.
    Press 'E' for eMMC download, IFS filename MUST be 'QNX-IFS'.
    Press 'F' for NOR flash download, image offsets MUST be - DTB:0x100000, IFS:0x200000.
    ...
Page updated: