diff options
author | Vishal Mahaveer | 2013-09-05 11:58:06 -0500 |
---|---|---|
committer | Vishal Mahaveer | 2013-09-05 16:38:37 -0500 |
commit | a39c17b3beb0c0e7c8d01c2c6ec5c4c95bdefaee (patch) | |
tree | 4e2b4bde31263372d5fde57c3a6fc92e9a8f8a34 /fastboot.sh | |
parent | 554ae2d4e82da26a2dca89361f650b637d1f3788 (diff) | |
download | device-ti-jacinto6evm-a39c17b3beb0c0e7c8d01c2c6ec5c4c95bdefaee.tar.gz device-ti-jacinto6evm-a39c17b3beb0c0e7c8d01c2c6ec5c4c95bdefaee.tar.xz device-ti-jacinto6evm-a39c17b3beb0c0e7c8d01c2c6ec5c4c95bdefaee.zip |
jacinto6evm: update fastboot script to detect silicon type
- Update fastboot script to detect the silicon type and flash the right MLO.
- Adding step to reboot in to bootloader after flashing xloader and bootloader
Change-Id: Ia9e900181ea52925b137143cc6b97c337d16ca9e
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Diffstat (limited to 'fastboot.sh')
-rwxr-xr-x | fastboot.sh | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/fastboot.sh b/fastboot.sh index bc25725..242ac4a 100755 --- a/fastboot.sh +++ b/fastboot.sh | |||
@@ -61,7 +61,7 @@ fi | |||
61 | ## poll the board to find out its configuration | 61 | ## poll the board to find out its configuration |
62 | #product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` | 62 | #product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` |
63 | #cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` | 63 | #cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` |
64 | #cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` | 64 | cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` |
65 | #cpurev=`${FASTBOOT} getvar cpurev 2>&1 | grep cpurev | awk '{print$2}'` | 65 | #cpurev=`${FASTBOOT} getvar cpurev 2>&1 | grep cpurev | awk '{print$2}'` |
66 | # | 66 | # |
67 | ## Panda board can not be flashed using fastboot | 67 | ## Panda board can not be flashed using fastboot |
@@ -74,14 +74,19 @@ fi | |||
74 | # product="Blaze" | 74 | # product="Blaze" |
75 | #fi | 75 | #fi |
76 | # | 76 | # |
77 | ## Make EMU = HS | 77 | # Make EMU = HS |
78 | #if [ ${cputype} = "EMU" ]; then | 78 | if [ ${cputype} = "EMU" ]; then |
79 | # cputype="HS" | 79 | cputype="HS" |
80 | #fi | 80 | fi |
81 | |||
82 | # If fastboot does not support getvar default to GP | ||
83 | if [ ${cputype} = ""]; then | ||
84 | cputype="GP" | ||
85 | fi | ||
81 | 86 | ||
82 | # Create the filename | 87 | # Create the filename |
83 | bootimg="${PRODUCT_OUT}boot.img" | 88 | bootimg="${PRODUCT_OUT}boot.img" |
84 | xloader="${PRODUCT_OUT}MLO" | 89 | xloader="${PRODUCT_OUT}${cputype}_MLO" |
85 | uboot="${PRODUCT_OUT}u-boot.img" | 90 | uboot="${PRODUCT_OUT}u-boot.img" |
86 | environment="${PRODUCT_OUT}dra7-evm.dtb" | 91 | environment="${PRODUCT_OUT}dra7-evm.dtb" |
87 | systemimg="${PRODUCT_OUT}system.img" | 92 | systemimg="${PRODUCT_OUT}system.img" |
@@ -143,11 +148,10 @@ sleep 3 | |||
143 | 148 | ||
144 | ${FASTBOOT} flash bootloader ${uboot} | 149 | ${FASTBOOT} flash bootloader ${uboot} |
145 | 150 | ||
146 | #TODO | ||
147 | #echo "Reboot: make sure new bootloader runs..." | 151 | #echo "Reboot: make sure new bootloader runs..." |
148 | #${FASTBOOT} reboot-bootloader | 152 | ${FASTBOOT} reboot-bootloader |
149 | # | 153 | |
150 | #sleep 5 | 154 | sleep 5 |
151 | 155 | ||
152 | echo "Flash android partitions" | 156 | echo "Flash android partitions" |
153 | ${FASTBOOT} flash boot ${bootimg} | 157 | ${FASTBOOT} flash boot ${bootimg} |