Hi there,
We wish to flash and boot from the eMMC's boot0 and boot1 partitions using the i.MX8M MINI board.
Could you advise me on any necessary kernel modifications and uuu file changes to flash the images into the board?
Regards,
Dharmik
Hello,
Yes, please refer to the UUU github for a sample script for this task, and for the modifications you may refer to the documentation:
https://github.com/nxp-imx/mfgtools/wiki/Sample-scripts#burn-yocto-image-to-emmc-by-linux-kernel
Documentation:
https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.5.243/UUU.pdf
Best regards/Saludos,
Aldo.
You can read the doc:i.MX8QXP eMMC Secondary Boot and change to 8mm
i.MX8QXP_emmc_boot_part_secondary_boot.uuu
write to boot2 section, what you want.
# Secondary boot
FB: ucmd setenv part 2
FB: ucmd if test ${part} != 7; then mmc dev ${emmc_dev} ${part}; else mmc dev ${emmc_dev}; fi
#FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.47-2.2.0
FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.70-2.3.0
FB: ucmd echo ${fastboot_bytes}
FB: ucmd setexpr blks ${fastboot_bytes} / 0x200; setexpr blks ${blks} + 1
FB: ucmd mmc write ${loadaddr} ${boot_offset} ${blks}full script
uuu_version 1.2.39
SDPS: boot -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.70-2.3.0
SDPV: delay 1000
SDPV: write -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.70-2.3.0 -skipspl
SDPV: jump
#FB: ucmd setenv emmc_dev 1
FB: ucmd setenv part 1
FB: ucmd setenv boot_offset 0x0
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd if test ${part} != 7; then mmc dev ${emmc_dev} ${part}; else mmc dev ${emmc_dev}; fi
FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.47-2.2.0
#FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.70-2.3.0
FB: ucmd echo ${fastboot_bytes}
FB: ucmd setexpr blks ${fastboot_bytes} / 0x200; setexpr blks ${blks} + 1
FB: ucmd mmc write ${loadaddr} ${boot_offset} ${blks}
# Secondary boot
FB: ucmd setenv part 2
FB: ucmd if test ${part} != 7; then mmc dev ${emmc_dev} ${part}; else mmc dev ${emmc_dev}; fi
#FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.47-2.2.0
FB: download -f imx-boot-imx8qxpc0mek-sd.bin-flash-L5.4.70-2.3.0
FB: ucmd echo ${fastboot_bytes}
FB: ucmd setexpr blks ${fastboot_bytes} / 0x200; setexpr blks ${blks} + 1
FB: ucmd mmc write ${loadaddr} ${boot_offset} ${blks}
FB: ucmd setenv part 1
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} ${part} 0
FB: done