From: Josef Ahmad <[email protected]>
Signed-off-by: Josef Ahmad <[email protected]>
Reviewed-by: Ong Boon Leong <[email protected]>
Tested-by: Ong Boon Leong <[email protected]>
Signed-off-by: Chang Rebecca Swee Fun <[email protected]>
---
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
--
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel