...
Hold <esc> in the terminal emulator of your choise choice (e.g. TeraTerm or PuTTY) while powering up the system with the WinPE SD card inserted in the device.
The following series of commands will allow you to load the firmware binary from the SD card and write it to the boot partition 1 of the eMMC:
Select the sd card socket
Code Block mmc dev 1
View the contents of the SD Card, verify that the firmware you want to write to the eMMC is present on the SD card
Code Block fatls mmc 1:2
Load the firmware binary you want to apply (In this example we use firmware.tr8m_v2r1.bin
Code Block fatload mmc 1:2 0x40800000 firmware.tr8m_v2r1.bin
Select the boot partition 1 of the eMMC
Code Block mmc dev 0 1
Write the firmware to the selected partition with the i.MX8M Mini specific offset
Code Block mmc write 0x40800000 0x42 0x1B7B
Select the eMMC Boot Partition as boot partition
Code Block mmc partconf 0 1 1 0
Erase the bootloader environment
Code Block mmc env_erase
Restart the device. It should reboot into the applied bootloader version.
The first line of the serial output contains the build date of the bootloader.Code Block reset
...