After you have QNX OS running, complete the following steps to prepare a
bootable xSPI NOR Flash.
Start the devf-flexspi-imx8 driver from
commandline in QNX if not started during QNX boot.
You should see fs0, fs0p0 devices (partitions) appear in device files.
You can use the ls /dev command to show the
dev directory.
Format the SPI NOR Flash memory using following command:
flashctl -p /dev/fs0 -ev
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.
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
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.
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
If you require networking, copy imx8mp-evk.dtb file on the
memory device at 0x100000 offset using this
command:
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
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.
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.
...