Hi there
struggling to make the Arduino IDE on Linux play nice with a galileo running a rebuilt LSB image, "clanton-full" build.
I have rebuilt the cross compiler tools, can build eglibc Arduino sketches on Linux, and these work fine, if you manually copy them to the /sketch directory on the SD card and reboot the board.
I would like to get the IDE talking to the board, though.
It seems like my problem is to do with clloader: this is running (it's built as part of clanton-full) but it does not appear to be working.
Or else I don't know how to use it. Or, possibly, both.
I have found the script which is used for downloading sketches to the Galileo in hardware/arduino/x86/tools/izmir so I can see the command being run.
If I manually run a command using "lsz" on my Linux workstation after rebooting the Galileo, e.g
$lsz --escape --zmodem --command "touch /sketch/fred.txt" --verbose < /dev/ttyACM0 > /dev/ttyACM0
this will work. But just once.
No subsequent command is accepted by the Galileo.
/var/log/messages shows the first command will be accepted.
The second or subsequent commands all fail (timeout on the sending side) and in /var/log/messages on the Galileo I just get "no.name/ZMODEM: got error"
If I manually go onto the Galileo and kill the clloader process and allow it to respawn, then the next command will work. This is not much use for the IDE, though, since the IDE runs several commands in the loader script, and only one of those will work ...
Furthermore, just for my information: where does the clloader program want to put sketches which it accepts (before the attempt to rename these)? If I kill the clloader task so that it respawns, and try to send a sketch to it using lsz, I get an error "Retry 0: timeout of pathname"
So it seems to me like the clloader is just broken.
Had anybody made this work from a clanton-full build, or have any idea what I am doing wrong?
Thx
Liam