From d4269585be70208a63cab7acce09fe631bee9c33 Mon Sep 17 00:00:00 2001 From: Daiane Angolini Date: Sat, 1 Apr 2023 09:55:47 -0300 Subject: [PATCH] imx8mm-lpddr4-evk: mfgtool: Set MFGTOOLCONFIG 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 --- conf/machine/imx8mm-lpddr4-evk.conf | 5 +++++ mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in | 15 +++++++++++++++ mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in create mode 100644 mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in diff --git a/conf/machine/imx8mm-lpddr4-evk.conf b/conf/machine/imx8mm-lpddr4-evk.conf index 1387e594b..fc4dbfb4c 100644 --- a/conf/machine/imx8mm-lpddr4-evk.conf +++ b/conf/machine/imx8mm-lpddr4-evk.conf @@ -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" + diff --git a/mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in b/mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in new file mode 100644 index 000000000..070b0e8ae --- /dev/null +++ b/mfgtool/imx8mm-lpddr4-evk/bootloader.uuu.in @@ -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 diff --git a/mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in b/mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in new file mode 100644 index 000000000..7b7489500 --- /dev/null +++ b/mfgtool/imx8mm-lpddr4-evk/fullimage.uuu.in @@ -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