summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2017-11-29 16:31:09 -0600
committerPraneeth Bajjuri2017-11-29 16:31:09 -0600
commit07c58d221ebef458cc3ee6102e8dd0bc939fd9a7 (patch)
treec3ecc554dfbdbbf2033499e8d488b278960d8dd8
parent6d5ce3d0a53c4ebfec08405caf47586689891a1d (diff)
downloaddevice-ti-am57xevm-07c58d221ebef458cc3ee6102e8dd0bc939fd9a7.tar.gz
device-ti-am57xevm-07c58d221ebef458cc3ee6102e8dd0bc939fd9a7.tar.xz
device-ti-am57xevm-07c58d221ebef458cc3ee6102e8dd0bc939fd9a7.zip
am57xevm: fastboot.sh: IDK: update script for picking correct dtb
After the patch : commit a35e0aa406c88cbb3c1b28cef1d4118881eaaf2e "am57xevm: fastboot: fix board_rev handling " Only the first character of the boardrev is used to detect and flash dtb. This patch fixes script to pick correct dtb for IDK. Change-Id: Id3ec94e6f170c18bbc8bf5d091cbb0bd7089612b Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rwxr-xr-xfastboot.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/fastboot.sh b/fastboot.sh
index f8e4534..b2bd25a 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -85,7 +85,7 @@ if [ ${cpu} = "DRA722" ]; then
85 environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb" 85 environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb"
86 elif [ ${boardrev} = "A" ]; then 86 elif [ ${boardrev} = "A" ]; then
87 environment="${PRODUCT_OUT}dra71-evm-lcd-auo-g101evn01.0.dtb" 87 environment="${PRODUCT_OUT}dra71-evm-lcd-auo-g101evn01.0.dtb"
88 elif [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then 88 elif [ ${boardrev} = "1" ]; then
89 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb" 89 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb"
90 else 90 else
91 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb" 91 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb"
@@ -99,7 +99,7 @@ elif [ ${cpu} = "DRA752" ]; then
99 environment="${PRODUCT_OUT}am57xx-evm-reva3.dtb" 99 environment="${PRODUCT_OUT}am57xx-evm-reva3.dtb"
100 fi 100 fi
101elif [ ${cpu} = "DRA762" ]; then 101elif [ ${cpu} = "DRA762" ]; then
102 if [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then 102 if [ ${boardrev} = "1" ]; then
103 environment="${PRODUCT_OUT}am574x-idk-lcd-osd101t2587.dtb" 103 environment="${PRODUCT_OUT}am574x-idk-lcd-osd101t2587.dtb"
104 else 104 else
105 environment="${PRODUCT_OUT}am574-idk.dtb" 105 environment="${PRODUCT_OUT}am574-idk.dtb"
@@ -164,7 +164,7 @@ fi
164echo "Create GPT partition table" 164echo "Create GPT partition table"
165${FASTBOOT} oem format 165${FASTBOOT} oem format
166 166
167if [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then 167if [ ${boardrev} = "1" ]; then
168 echo "Setting target for bootloader to spi" 168 echo "Setting target for bootloader to spi"
169 ${FASTBOOT} oem spi 169 ${FASTBOOT} oem spi
170else 170else