diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2014-08-08 10:37:38 -0500 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2014-08-08 11:51:47 -0500 |
commit | 05561662febf80defdd81a2b03a546e10e507b93 (patch) | |
tree | 76706f8e3a7e0466bd5a6b6bded4837185bab08e | |
parent | 965845fd4b9e8866253b7e2dc86f0451beafc32b (diff) | |
download | jacinto6evm-05561662febf80defdd81a2b03a546e10e507b93.tar.gz |
jacinto6evm: update fastboot script with revg option
Add special argument --revg for flashing environemnt partition
with special dtb file if available.
Change-Id: I4f416c5292bc26f423307276383e3a9e61b521b3
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rwxr-xr-x | fastboot.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fastboot.sh b/fastboot.sh index 5ac2730..d1f5946 100755 --- a/fastboot.sh +++ b/fastboot.sh @@ -2,8 +2,10 @@ usage () { - echo "Usage: %fastboot.sh "; + echo "Usage: sudo fastboot.sh <options>"; echo "options:"; + echo " --help Show this message and exit" + echo " --revg Flashes the dtb required for Rev-G J6 EVm which has 10inch panel"; exit 1; } @@ -79,6 +81,11 @@ else environment="${PRODUCT_OUT}dra7-evm.dtb" fi +# Special case to flash dtb for 10" panel board +if [ "$1" = "--revg" ] && [ ${cpu} = "J6" ]; then + environment="${PRODUCT_OUT}dra7-evm-g.dtb" +fi + # Create the filename bootimg="${PRODUCT_OUT}boot.img" |