From 6b2086eb6f30f81166780179c10fd58071bb27e1 Mon Sep 17 00:00:00 2001 From: computermouth Date: Thu, 1 Dec 2016 19:55:18 -0800 Subject: [PATCH] Add no limit to help, save ubootscr --- chip-update-firmware.sh | 1 + common.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chip-update-firmware.sh b/chip-update-firmware.sh index 7844d0d..8a5d1f8 100755 --- a/chip-update-firmware.sh +++ b/chip-update-firmware.sh @@ -72,6 +72,7 @@ while getopts "sgpbfnhB:N:F:" opt; do echo " -p -- PocketCHIP" echo " -b -- Buildroot" echo " -f -- Force clean" + echo " -n -- No limit [enable greater power draw]" echo " -B -- Branch(optional) [eg. -B testing]" echo " -N -- Build#(optional) [eg. -N 150]" echo " -F -- Format(optional) [eg. -F Toshiba_4G_MLC]" diff --git a/common.sh b/common.sh index 168ce1a..42f35a8 100755 --- a/common.sh +++ b/common.sh @@ -118,7 +118,7 @@ flash_images() { local tmpdir=`mktemp -d -t chip-uboot-script-XXXXXX` local ubootcmds=$tmpdir/uboot.cmds - local ubootscr=$tmpdir/uboot.scr + local ubootscr=$IMAGESDIR/uboot.scr local ubootsize=`filesize $IMAGESDIR/uboot-$nand_erasesize.bin | xargs printf "0x%08x"` local pagespereb=`echo $((nand_erasesize/nand_writesize)) | xargs printf "%x"` local sparseubi=$tmpdir/ubi.sparse