You can prepare a bootable eMMC memory device to use to boot your board.
Note:
Before you can perform the steps to prepare a bootable eMMC, you must
first boot your board using a bootable
microSD card . For more information, see Flash U-boot to SD card and Boot the board.
After you have QNX OS running on your target board, complete the following steps to prepare a
bootable eMMC and copy the U-Boot and QNX IFS to it:
Copy the QNX IFS file (ifs-imx93-phyboard-nash.raw), phyBOARD-NASH DTB (imx93-phyboard-nash.dtb)
and U-Boot binary (imx-boot) to the
/tmp directory on your target board.
Delete all existing partitions on the eMMC using the following commands and continue with the proceeding steps:
Mount and format the eMMC device using these commands:
# mount -e /dev/emmc0
# mkdosfs /dev/emmc0t12
Mount the FAT32 partition of the eMMC using the following command:
# mount -t dos /dev/emmc0t12 /fs/emmc
Copy the QNX IFS file (ifs-imx93-phyboard-nash.raw)
from the /tmp directory to the
fs/emmc directory.
You can also use the QNX Momentics IDE to copy the file
or one of the following commands:
Copy the phyBOARD-NASH DTB (imx93-phyboard-nash.dtb)
from the /tmp directory to the
fs/emmc directory as imx93-phyboard-nash.dtb.
You can also use the QNX Momentics IDE to copy the file
or one of the following commands:
Set the boot switches for the phyBOARD-NASH to boot
from the eMMC instead of the microSD card
on your board as shown in the following image:
Figure 1DIP switch configuration for the phyBOARD-NASH to boot from eMMC
For more information about configuring the DIP switches, see Set up the hardware in this chapter.
After use sync to update filesystems to match cached data. Restart the board after removing the SD card from the board. Now the board will Boot
from emmc where images are copied. For example:
$ sync
$ shutdown
U-Boot SPL 2023.04 (Apr 23 2024 - 06:55:08 +0000)
SOC: 0xa1009300
LC: 0x2040010
PMIC: Over Drive Voltage Mode
SoM: PCL-077-23231211I000.A1 PCB rev: 1
M33 prepare ok
Normal Boot
WDT: Started wdog@42490000 with servicing every 1000ms (40s timeout)
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x55800 by ROM_API
NOTICE: BL31: v2.8(release):lf-6.1.55-2.2.0-0-g08e9d4eef
NOTICE: BL31: Built : 06:43:30, Nov 21 2023
U-Boot 2023.04 (Apr 23 2024 - 06:55:08 +0000)
CPU: i.MX93(52) rev1.1 1700 MHz (running at 1692 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 33C
Reset cause: POR (0x1)
Model: PHYTEC phyBOARD-Nash-i.MX93
DRAM: 2 GiB
Core: 215 devices, 28 uclasses, devicetree: separate
WDT: Started wdog@42490000 with servicing every 1000ms (40s timeout)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
BuildInfo:
- ELE firmware version 0.1.0-44880904
flash target is MMC:0
Net: eth0: ethernet@42890000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Press any key on your keyboard to cancel the auto-boot command.
Hit any key to stop autoboot: 0
uboot=>
Run the U-Boot commands to load QNX IFS and board device tree from the mmc i.e. the emmc
then use go command to boot to QNX OS.
For example:
From the U-Boot, saveenv can be used to set environment variables so that the board will be booted automatically. To do this,
restart the board and stop at U-Boot. For example:
U-Boot SPL 2023.04 (Apr 23 2024 - 06:55:08 +0000)
SOC: 0xa1009300
LC: 0x2040010
PMIC: Over Drive Voltage Mode
SoM: PCL-077-23231211I000.A1 PCB rev: 1
M33 prepare ok
Normal Boot
WDT: Started wdog@42490000 with servicing every 1000ms (40s timeout)
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x55800 by ROM_API
NOTICE: BL31: v2.8(release):lf-6.1.55-2.2.0-0-g08e9d4eef
NOTICE: BL31: Built : 06:43:30, Nov 21 2023
U-Boot 2023.04 (Apr 23 2024 - 06:55:08 +0000)
CPU: i.MX93(52) rev1.1 1700 MHz (running at 1692 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 33C
Reset cause: POR (0x1)
Model: PHYTEC phyBOARD-Nash-i.MX93
DRAM: 2 GiB
Core: 215 devices, 28 uclasses, devicetree: separate
WDT: Started wdog@42490000 with servicing every 1000ms (40s timeout)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
BuildInfo:
- ELE firmware version 0.1.0-44880904
flash target is MMC:0
Net: eth0: ethernet@42890000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Press any key on your keyboard to cancel the auto-boot command.
Hit any key to stop autoboot: 0
uboot=>
Note:
saveenv will overwrite default environment variables. Make sure to create a backup or reflash U-boot to revert back.
Run the following commands to save the environment variables to load qnx and DTB from mmc and use boot command to
to boot to QNX OS.
For example: