Hi,
As I want to run most of the stuff on the Galileo without the need of a direct USB connection to upload and run sketches Ive created a rather simple workaround.
I made a small script in my home/root directory on the galileo I can use to start Arduino sketches(be aware that I am a newbie on Linux):
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#!/bin/bash
# script to start arduino based sketches
cd /
cd sketch
if [ -f $1 ]
then
echo "file $1 exists"
echo "preparing $1 with chmod"
chmod +x $1
echo "starting $1 as background process"
./$1 /dev/ttyS0 > /dev/null 2>&1 &
else
echo "file $1 does not exist"
fi
>>>>>>>>>>>>>>>>>>>>>>>>>>>
If saved the above in a file called startsketch, made the file it executable with chmod +x startsketch
After compiling any arduino sketch I save the *.elf file using winscp in the sketch/sketch folder on the Galileo.
As long as you dont use the name sketch.elf the file will not be started at bootup.
If I want to run an arduino sketch on the galileo I simply call ./startsketch mysketch.elf either inside winscp or using putty
cheers
CorB