Skip to content

Commit

Permalink
imx8mm-lpddr4-evk: mfgtool: Set MFGTOOLCONFIG
Browse files Browse the repository at this point in the history
Set MFGTOOLCONFIG including two scripts, one for flashing only the
bootloader (imx-boot) and the other flashing the complete image.

Signed-off-by: Daiane Angolini <[email protected]>
  • Loading branch information
angolini committed Apr 20, 2023
1 parent a612084 commit cff78e6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conf/machine/imx8mm-lpddr4-evk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ DDR_FIRMWARE_NAME = " \
"

IMXBOOT_TARGETS_BASENAME = "flash_evk"

MFGTOOLCONFIG = "bootloader.uuu.in fullimage.uuu.in"
MFGTOOLCONFIG[bootloader.uuu.in] = "imx-boot:do_deploy,imx-boot"
MFGTOOLCONFIG[fullimage.uuu.in] = "imx-boot:do_deploy ${IMAGE_BASENAME}:do_image_complete,imx-boot ${IMAGE_BASENAME}-${MACHINE}.wic"

15 changes: 15 additions & 0 deletions mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuu_version 1.2.39

SDP: boot -f binaries/imx-boot

SDPV: delay 1000
SDPV: write -f binaries/imx-boot -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash bootloader binaries/imx-boot
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: Done
17 changes: 17 additions & 0 deletions mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

uuu_version 1.2.39

SDP: boot -f binaries/imx-boot

SDPV: delay 1000
SDPV: write -f binaries/imx-boot -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all binaries/@@IMAGE_BASENAME@@-@@MACHINE@@.wic
FB: flash -scanterm -scanlimited 0x800000 bootloader binaries/imx-boot
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done

0 comments on commit cff78e6

Please sign in to comment.