![Phytec L-1017e.A3 i.MX 8M Plus Manual Download Page 13](http://html1.mh-extra.com/html/phytec/l-1017e-a3-i-mx-8m-plus/l-1017e-a3-i-mx-8m-plus_manual_1554092013.webp)
L-1017e.A3 i.MX 8M Plus BSP Manual
•
•
•
Flash eMMC from USB
Flash eMMC from USB in
u-boot
on Target
These steps will show how to update the eMMC via a USB device.
and put in an SD card. Power on the board and stop in
. Insert a USB device with the copied
*.sdcard
image to the USB slot.
Load your image from the USB device to RAM:
u-boot=> usb start
starting USB...
USB0: USB EHCI
1.00
scanning bus
0
for
devices...
2
USB Device(s) found
scanning usb
for
storage devices...
1
Storage Device(s) found
u-boot=> fatload usb
0
:
1
${loadaddr} *.sdcard
497444864
bytes read in
31577
ms (
15
MiB/s)
Write the image to the eMMC:
u-boot=> mmc dev
2
switch
to partitions #
0
, OK
mmc2(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
1024000
...
1024000
blocks written: OK
u-boot=> boot
Flash eMMC from USB in Linux
These steps will show how to flash the eMMC on Linux with a USB stick. You only need a complete image saved on
the USB stick and a bootable sdcard. (e.g.
phytec-qt5demo-image-phyboard-pollux-imx8mp-3.sdcard
). Set
the
bootmode switch
.
Insert and mount the USB stick:
[
60.458908
] usb-storage
1
-
1.1
:
1.0
: USB Mass Storage device detected
[
60.467286
] scsi host0: usb-storage
1
-
1.1
:
1.0
[
61.504607
] scsi
0
:
0
:
0
:
0
: Direct-Access
8.07
PQ:
0
ANSI:
2
[
61.515283
] sd
0
:
0
:
0
:
0
: [sda]
3782656
512
-
byte
logical blocks: (
1.94
GB/
1.80
GiB)
[
61.523285
] sd
0
:
0
:
0
:
0
: [sda] Write Protect is off
Tip
This step only works if the site of the image file fits into the free RAM space of the Bootloader.