PHYTEC
Page 17
host$ sudo mkfs.vfat -n "data" /dev/sdb3
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
host$ sudo mount /dev/sdb3 /mnt
Copy your image to the new partition and unmount it afterward:
host$ sudo cp phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard /mnt/ ; sync
Flashing eMMC from u-boot
Configure the boot switch to boot from the SD Card (Switch S3 POS1 ON) and insert the SD card.
Power on the board and stop in
.
u-boot
Flash your
image from the SD card to eMMC. This will partition the card and copy
,
,
, and root
<YOUR_IMAGE>.sdcard
u-boot zImage dtb
filesystem to eMMC. (
for example):
small_test-image.sdcard
u-boot=> fatload mmc 1:3 ${loadaddr} phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard
837614592 bytes read in 36083 ms (22.1 MiB/s)
u-boot=> mmc dev 2
switch to partitions #0, OK
mmc2(part 0) is current device
u-boot=> mmc write ${loadaddr} 0x0 0x18F67E # number of blocks to write. In this case 837614592
bytes / 512 = 0x18F67E
MMC write: dev # 2, block # 0, count 1635966 ... 1635966 blocks written: OK
Reset the board.
Stop in
again and check that the partition table for eMMC is as expected:
u-boot
u-boot=> reset
...
u-boot=> mmc dev 2
switch to partitions #2, OK
mmc2(part 0) is current device
u-boot=> mmc part
Partition Map for MMC device 2 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 8192 123202 3e7970c8-01 0c Boot
2 133120 1502846 3e7970c8-02 83
u-boot=>
Updating SD Card in Linux on Target
You can also update the eMMC under Linux. You only need a complete image saved on the SD card (e.q. phytec-qt5demo-image-phyboard-pollux-
).
imx8mp-1.sdcard
Show your saved image files on the SD card:
target$ ls
phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard
Show list of available MMC devices:
Tip
This step only works if the size of the image file is less then 1GB. If the image file is larger, have a look at
.