It's probably possible to do it using socat. Probably something simitar to this: http://www.acmesystems.it/socat
I have done this in the past on other system, I'll try to think on trying it out.
@Cesar-Vargas Glad it helped.
One note, do not update opkg, doing so seems to make it loose the
repo.onion.io/omega2 repo. I have to confirm but looks like it.
I'll add this to my review blog of the Omega2: http://net-forces.blogspot.ca/2017/01/omega2-with-arduino-dock2-review.html
Ok, got it to work !
cd /root opkg remove arduino-dock opkg remove arduino-dock-2 opkg remove avrdude wget http://repo.onion.io/omega2/packages/onion/avrdude_6.1-1_mipsel_24kc.ipk opkg install avrdude_6.1-1_mipsel_24kc.ipk opkg install arduino-dock-2
Then you can use the
sh /usr/bin/arduino-dock flash my_file.hex
Do not use avrdude v6.3-1 as there is a known issue (https://savannah.nongnu.org/bugs/?func=detailitem&item_id=49450)
I have exactly the same behavour. Both via wifi using the Arduino IDE or local from the Omega2:
root@Omega-5923:~# sh /usr/bin/arduino-dock flash /root/blink2.ino.hex > Flashing application '/root/blink2.ino.hex' ... device : /dev/i2c-0 (address: 0x29) version : �������� (sig: 0xff 0xff 0xff => unknown) flash size : 0xffff / 65535 (0xff bytes/page) eeprom size : 0xffff / 65535 writing flash : [ w�Z] (0) failed to write to device > Done
Looks like your connection to Community was lost, please wait while we try to reconnect.