Skip to contentSkip to conversation

setup-uboot-env-am57xx-evm: Add detection of am572x IDK

PATCH New Jacob Stiffler 1 participant 1 message Jun 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 setup-uboot-env-am57xx-evm: Add detection of am572x IDK

---
 setup-uboot-env-am57xx-evm.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
setup-uboot-env-am57xx-evm.sh +8 -1
index e1628b7..4988b96 100644
@@ -130,6 +130,13 @@ check_for_board() {
     then
         board="x15"
     fi
+
+    lsusb -vv -d 0403:6010 > /dev/null 2>&1
+
+    if [ "$?" = "0" ]
+    then
+        board="am5-idk"
+    fi
 }
 
 echo "timeout 300" > $cwd/setupBoard.minicom
@@ -205,7 +212,7 @@ if [ "$minicom" = "y" ]; then
     do
         check_for_board
 
-        if [ "$board" = "x15" ]
+        if [ "$board" != "unknown" ]
         then
             break
         else
Signature · 1 line
1.9.1