summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fastboot.sh')
-rwxr-xr-xfastboot.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/fastboot.sh b/fastboot.sh
index 77449dd..cd8cf45 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -63,13 +63,13 @@ fi
63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` 63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'`
64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` 64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'`
65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` 65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'`
66boardrev=`${FASTBOOT} getvar board_rev 2>&1 | grep board_rev | awk '{print$2}'` 66boardrev=`${FASTBOOT} getvar board_rev 2>&1 | grep board_rev | awk '{print$2}' | cut -b 1`
67 67
68 68
69# Make EMU = HS 69# Make EMU = HS
70if [ ${cputype} = "EMU" ] || [ ${cputype} = "HS" ]; then 70if [ ${cputype} = "EMU" ] || [ ${cputype} = "HS" ]; then
71 cputype="HS" 71 cputype="HS"
72 xloader="${PRODUCT_OUT}${cputype}_QSPI_MLO" 72 xloader="${PRODUCT_OUT}u-boot-spl_HS_X-LOADER"
73 uboot="${PRODUCT_OUT}${cputype}_u-boot.img" 73 uboot="${PRODUCT_OUT}${cputype}_u-boot.img"
74# If fastboot does not support getvar default to GP 74# If fastboot does not support getvar default to GP
75elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then 75elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then
@@ -81,15 +81,15 @@ fi
81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10 81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10
82if [ ${cpu} = "J6ECO" ]; then 82if [ ${cpu} = "J6ECO" ]; then
83 if [ ${boardrev} = "C" ]; then 83 if [ ${boardrev} = "C" ]; then
84 environment="${PRODUCT_OUT}dra72-evm-lcd-osd.dtb" 84 environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb"
85 else 85 else
86 environment="${PRODUCT_OUT}dra72-evm-lcd10.dtb" 86 environment="${PRODUCT_OUT}dra72-evm-lcd-lg.dtb"
87 fi 87 fi
88else 88else
89 if [ ${boardrev} = "H" ]; then 89 if [ ${boardrev} = "H" ]; then
90 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" 90 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb"
91 else 91 else
92 environment="${PRODUCT_OUT}dra7-evm-lcd10.dtb" 92 environment="${PRODUCT_OUT}dra7-evm-lcd-lg.dtb"
93 fi 93 fi
94fi 94fi
95 95