summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2014-05-14 12:04:39 -0500
committerVishal Mahaveer2014-05-14 12:04:39 -0500
commit09e75ed9d4b31f56fbb2a0a3740f49eb4da4cf4c (patch)
tree3f773029fe77733ac19fc0979e18ba58bb477072
parent2cee8dc68e0f22f1bcdf7fd991b9d24ff387c6b5 (diff)
downloaddevice-ti-jacinto6evm-09e75ed9d4b31f56fbb2a0a3740f49eb4da4cf4c.tar.gz
device-ti-jacinto6evm-09e75ed9d4b31f56fbb2a0a3740f49eb4da4cf4c.tar.xz
device-ti-jacinto6evm-09e75ed9d4b31f56fbb2a0a3740f49eb4da4cf4c.zip
jacinto6evm: update fastboot script for supporting j6eco
Add steps in fastboot.sh script to flash device tree file based on cpu Change-Id: I7a3cb890035c258e46ae42bef248411c5fdcb3a1 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rwxr-xr-xfastboot.sh28
1 files changed, 12 insertions, 16 deletions
diff --git a/fastboot.sh b/fastboot.sh
index 1defc0b..5ac2730 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -57,38 +57,33 @@ else
57 exit -1; 57 exit -1;
58fi 58fi
59 59
60# Skip board/silicon type detection for time being
61## poll the board to find out its configuration 60## poll the board to find out its configuration
62#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` 61#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'`
63#cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` 62cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'`
64cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` 63cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'`
65#cpurev=`${FASTBOOT} getvar cpurev 2>&1 | grep cpurev | awk '{print$2}'` 64
66# 65
67## Panda board can not be flashed using fastboot
68#if [ "${product}" = "PANDA" ]; then
69# errormsg "Panda board can not be flashed using fastboot"
70#fi
71#
72## Backwards compatibility for older bootloader versions
73#if [ "${product}" = "SDP4" ]; then
74# product="Blaze"
75#fi
76#
77# Make EMU = HS 66# Make EMU = HS
78if [ ${cputype} = "EMU" ]; then 67if [ ${cputype} = "EMU" ]; then
79 cputype="HS" 68 cputype="HS"
80fi 69fi
81
82# If fastboot does not support getvar default to GP 70# If fastboot does not support getvar default to GP
83if [ ${cputype} = "" ]; then 71if [ ${cputype} = "" ]; then
84 cputype="GP" 72 cputype="GP"
85fi 73fi
86 74
75# Based on cpu, decide the dtb to flash, default fall back to J6
76if [ ${cpu} = "J6ECO" ]; then
77 environment="${PRODUCT_OUT}dra72-evm.dtb"
78else
79 environment="${PRODUCT_OUT}dra7-evm.dtb"
80fi
81
82
87# Create the filename 83# Create the filename
88bootimg="${PRODUCT_OUT}boot.img" 84bootimg="${PRODUCT_OUT}boot.img"
89xloader="${PRODUCT_OUT}${cputype}_MLO" 85xloader="${PRODUCT_OUT}${cputype}_MLO"
90uboot="${PRODUCT_OUT}u-boot.img" 86uboot="${PRODUCT_OUT}u-boot.img"
91environment="${PRODUCT_OUT}dra7-evm.dtb"
92systemimg="${PRODUCT_OUT}system.img" 87systemimg="${PRODUCT_OUT}system.img"
93userdataimg="${PRODUCT_OUT}userdata.img" 88userdataimg="${PRODUCT_OUT}userdata.img"
94cacheimg="${PRODUCT_OUT}cache.img" 89cacheimg="${PRODUCT_OUT}cache.img"
@@ -158,6 +153,7 @@ ${FASTBOOT} oem format
158 153
159echo "Flash android partitions" 154echo "Flash android partitions"
160${FASTBOOT} flash boot ${bootimg} 155${FASTBOOT} flash boot ${bootimg}
156echo "Flashing device tree ${environment}"
161${FASTBOOT} flash environment ${environment} 157${FASTBOOT} flash environment ${environment}
162${FASTBOOT} flash recovery ${recoveryimg} 158${FASTBOOT} flash recovery ${recoveryimg}
163${FASTBOOT} flash system ${systemimg} 159${FASTBOOT} flash system ${systemimg}