PHYTEC
Page 15
u-boot=> tftp ${loadaddr} ${serverip}:phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard
d
Using ethernet@30be0000 device
TFTP from server 192.168.3.10; our IP address is 192.168.3.11
Filename 'phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard'.
Load address: 0x40480000
Loading: #################################################################
#################################################################
#################################################################
...
...
...
#################################################################
#############
11.2 MiB/s
done
Bytes transferred = 911842304 (36599c00 hex)
Write the image to the eMMC:
u-boot=> mmc dev 2
switch to partitions #0, OK
mmc2(part 0) is current device
u-boot=> mmc write ${loadaddr} 0x0 0x1B2CCE # number of blocks to write. In
this case 911842304 bytes / 512 = 0x1B2CCE
MMC write: dev # 2, block # 0, count 1780942 ... 1780942 blocks written: OK
Updating eMMC in Linux on Target
You can update the eMMC from your target.
Take an uncompressed or compressed image on the host and send it with
through the network (then uncompress it, if necessary) to the
ssh
eMMC of the target with a one-line command:
target$ ip address add 192.168.3.11 dev eth1
target$ ssh <USER>@192.168.3.10 "dd if=<path_to_file>/phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard" |
dd of=/dev/mmcblk2
Updating eMMC in Linux on Host
It is also possible to update the eMMC from your Linux host. As before, you need a complete image on your host.
Show your available image-files on host:
host$ ls
phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard
Uncompress and send image with dd command combined with
through the network to the eMMC of your device:
ssh
host$ dd if=phytec-qt5demo-image-phyboard-pollux-imx8mp-1.sdcard status=progress | ssh [email protected] "dd of=
/dev/mmcblk2"
Tip
A working network is necessary!
Tip
A working network is necessary!