From 9513f4e9d3a4e46b51bf659196c62d4404dc5a75 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 05 Nov 2021 22:13:12 +0800 Subject: [PATCH] Add win_flash.bat script --- tools/wintools/win_flash.bat | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/tools/wintools/win_flash.bat b/tools/wintools/win_flash.bat new file mode 100644 index 0000000..348ee64 --- /dev/null +++ b/tools/wintools/win_flash.bat @@ -0,0 +1,22 @@ + +REM This bat script used to flash u-boot or linux system image to EMMC + +REM uuu.exe official address: https://github.com/NXPmicro/mfgtools +REM LingYun download address: http://weike-iot.com:2211/imx6ull/tools + +REM Erase u-boot command in u-boot: mmc dev 1 1 && mmc erase 0 40000 + +@echo off + +set IMAGE_UBOOT=u-boot-imx6ull-14x14-ddr512-emmc.imx +set IMAGE_SYS=linuxsys_iMX6ULL_512MB.img + +echo "Image Download Choices:" + +echo 1: Download bootloader [ %IMAGE_UBOOT% ] +echo 2: Download System Image [ %IMAGE_SYS% ] + +set /p choice= Please Input Your Choice: + +if %choice% == 1 uuu -b emmc %IMAGE_UBOOT% +if %choice% == 2 uuu -b emmc_all %IMAGE_UBOOT% %IMAGE_SYS% -- Gitblit v1.9.1