![Phytec L-1017e.A3 i.MX 8M Plus Manual Download Page 15](http://html1.mh-extra.com/html/phytec/l-1017e-a3-i-mx-8m-plus/l-1017e-a3-i-mx-8m-plus_manual_1554092015.webp)
L-1017e.A3 i.MX 8M Plus BSP Manual
•
•
•
•
•
•
•
•
•
Flash eMMC from SD card in
u-boot
on Target
Flash an SD card with a working image and create a third FAT partition. Copy the *.sdcard image (for
example
phytec-qt5demo-image.sdcard
) to this partition.
Configure the
bootmode switch
to
and insert the SD card.
Power on the board and stop in u-boot.
Flash your
<YOUR_IMAGE>.sdcard
image (for example
phytec-qt5demo-image.sdcard
) from the SD card to
eMMC. This will partition the card and copy
imx-boot
,
Image
,
dtb
,
dtbo,
and root file system to eMMC.
Load the image:
u-boot=> fatload mmc
1
:
3
${loadaddr} phytec-qt5demo-image-phyboard-pollux-imx8mp-
3
.sd
card
reading
911842304
bytes read in
39253
ms (
22.2
MiB/s)
Switch the mmc dev:
u-boot=> mmc list
FSL_SDHC:
1
(SD)
FSL_SDHC:
2
(eMMC)
u-boot=> mmc dev
2
switch
to partitions #
0
, OK
mmc0(part
0
) is current device
u-boot=> setexpr nblk ${filesize} /
0x200
u-boot=> mmc write ${loadaddr}
0x0
${nblk}
MMC write: dev #
2
, block #
0
, count
1780942
...
1780942
blocks written: OK
Power off the board and change the
multi-port switch
to
Default SOM Boot
to
.
Flash eMMC from SD card in Linux on Target
You can also flash the eMMC on Linux. You only need a complete image saved on the SD card (e.g.
phytec-qt5demo-
image-phyboard-pollux-imx8mp-3.sdcard
).
Show your saved image files on the SD card:
target$ ls
phytec-qt5demo-image-phyboard-pollux-imx8mp-
3
.sdcard
Show list of available MMC devices:
Tip
This step only works if the size of the image file fits into the free RAM space of the Bootloader. If the image
file is too large use
Updating eMMC from SD card in Linux on Target
.