[meta-intel] [meta-intel-galileo] [PATCH 3/3] launcher.sh: kick off sketch reset binary in background
rebecca.swee.fun.chang at intel.com
rebecca.swee.fun.chang at intel.com
Thu Apr 30 04:32:11 PDT 2015
From: Josef Ahmad <josef.ahmad at intel.com>
Signed-off-by: Josef Ahmad <josef.ahmad at intel.com>
Reviewed-by: Ong Boon Leong <boon.leong.ong at intel.com>
Tested-by: Ong Boon Leong <boon.leong.ong at intel.com>
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang at intel.com>
---
recipes-galileo/galileo-target/files/launcher.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/recipes-galileo/galileo-target/files/launcher.sh b/recipes-galileo/galileo-target/files/launcher.sh
index a166345..8dd7301 100755
--- a/recipes-galileo/galileo-target/files/launcher.sh
+++ b/recipes-galileo/galileo-target/files/launcher.sh
@@ -2,6 +2,7 @@
GALILEO_PATH="/opt/cln/galileo"
CLLOADER="$GALILEO_PATH/clloader"
CLLOADER_OPTS="--escape --binary --zmodem --disable-timeouts"
+SKETCH_RESET="$GALILEO_PATH/galileo_sketch_reset"
mytrap()
{
@@ -13,6 +14,8 @@ trap 'mytrap' USR1
arduino_services()
{
+ $SKETCH_RESET $sketch_reset_params &
+
keepgoing=true
while $keepgoing
do
@@ -28,9 +31,11 @@ board=$(dmidecode -s baseboard-product-name)
case "$board" in
*"Galileo" )
galileo_board=true
+ sketch_reset_params="-i 52 -o 53"
;;
*"GalileoGen2" )
galileo_board=true
+ sketch_reset_params="-i 63 -o 47"
;;
esac
--
1.9.1
More information about the meta-intel
mailing list