EasyManua.ls Logo

Phytec i.MX 93 - Page 13

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
Warning
bmaptool only overwrites the areas of an SD card where image data is located. This means that a
previously written U-Boot environment may still be available after writing the image.
2.2.3 Using partup
Writing to an SD card with partup is done in a single command:
host:~$ sudo partup install phytec-qt6demo-image-phyboard-segin-imx93-2?(.rootfs).partup /dev/
,<your_device>
Make sure to replace <your_device> with your actual device name found previously.
Further usage of partup is explained at its ocial documentation website.
Warning
Host systems which are using resize2fs version 1.46.6 and older (e.g. Ubuntu 22.04) are not able to write
partup packages created with Yocto Mickledore or newer to SD-Card. This is due to a new default option
in resize2fs which causes an incompatibility. See release notes.
Note
partup has the advantage of allowing to clear specic raw areas in the MMC user area, which is used in
our provided partup packages to erase any existing U-Boot environments. This is a known issue bmaptool
does not solve, as mentioned in the previous chapter.
Another key advantage of partup over other ashing tools is that it allows conguring MMC specic
parts, like writing to eMMC boot partitions, without the need to call multiple other commands when
writing.
2.2.4 Using dd
After having unmounted all SD card’s partitions, you can create your bootable SD card.
Some PHYTEC BSPs produce uncompressed images (with lename-extension *.wic), and some others pro-
duce compressed images (with lename-extension *.wic.xz).
To ash an uncompressed images (*.wic) use command below:
host:~$ sudo dd if=phytec-qt6demo-image-phyboard-segin-imx93-2?(.rootfs).wic of=/dev/<your_
,device> bs=1M conv=fsync status=progress
Or to ash a compressed images (*.wic.xz) use that command:
host:~$ xzcat phytec-qt6demo-image-phyboard-segin-imx93-2?(.rootfs).wic.xz | sudo dd of=/dev/
,<your_device> bs=1M conv=fsync status=progress
Again, make sure to replace <your_device> with your actual device name found previously.
The parameter conv=fsync forces a sync operation on the device before dd returns. This ensures that all
blocks are written to the SD card and none are left in memory. The parameter status=progress will print
out information on how much data is and still has to be copied until it is nished.
Getting Started 9