summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongmei Gou2018-07-09 19:18:28 -0500
committerPraneeth Bajjuri2018-07-10 00:31:58 -0500
commit716cb8708d0e47fd9f6b1ddd7c4be18dd67be5a7 (patch)
treefbbc8e5b2e7ee0b005413f60a019edb42a1929ce
parent36c210d268238b930791a6368bff9521fa534a5e (diff)
downloaddevice-ti-am57xevm-716cb8708d0e47fd9f6b1ddd7c4be18dd67be5a7.tar.gz
device-ti-am57xevm-716cb8708d0e47fd9f6b1ddd7c4be18dd67be5a7.tar.xz
device-ti-am57xevm-716cb8708d0e47fd9f6b1ddd7c4be18dd67be5a7.zip
fastboot.sh: update scripts to flash fit image
Signed-off-by: Hongmei Gou <a0271529@ti.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
-rwxr-xr-xfastboot.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/fastboot.sh b/fastboot.sh
index 49556f7..7cc73bf 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -89,6 +89,7 @@ userdataimg="${PRODUCT_OUT}userdata.img"
89cacheimg="${PRODUCT_OUT}cache.img" 89cacheimg="${PRODUCT_OUT}cache.img"
90recoveryimg="${PRODUCT_OUT}recovery.img" 90recoveryimg="${PRODUCT_OUT}recovery.img"
91vendorimg="${PRODUCT_OUT}vendor.img" 91vendorimg="${PRODUCT_OUT}vendor.img"
92bootfitimg="${PRODUCT_OUT}boot_fit.img"
92 93
93# Verify that all the files required for the fastboot flash 94# Verify that all the files required for the fastboot flash
94# process are available 95# process are available
@@ -125,6 +126,10 @@ if [ ! -e "${vendorimg}" ] ; then
125 echo "Missing ${vendorimg}" 126 echo "Missing ${vendorimg}"
126 exit -1; 127 exit -1;
127fi 128fi
129if [ ! -e "${bootfitimg}" ] ; then
130 echo "Missing ${bootfitimg}"
131 exit -1;
132fi
128 133
129 134
130echo "Create GPT partition table" 135echo "Create GPT partition table"
@@ -154,7 +159,7 @@ ${FASTBOOT} flash system ${systemimg}
154${FASTBOOT} flash vendor ${vendorimg} 159${FASTBOOT} flash vendor ${vendorimg}
155 160
156echo "Flashing FIT Boot Image" 161echo "Flashing FIT Boot Image"
157${FASTBOOT} flash boot boot_fit.img 162${FASTBOOT} flash boot ${bootfitimg}
158 163
159 164
160userdataimg_orig="${userdataimg}.orig" 165userdataimg_orig="${userdataimg}.orig"