Friday, November 11, 2016

Using FireFly FireDuino on a Linux Machine.

I just got my Fireduino board (maybe 3 or 4 days ago Nov 7 or 8th 2016), and found it not as straight forward to setup and use in linux as one would think, this is what I learned, and how I got it too work, as well as some other information that you might find helpful if you have this board.


Setup arduino with board manager

Github


Kickstarter

How to disable driver signature in windows 10

Possible fix for linux?
Install rkflashtool from synaptic package manager

Working method for linux:
This error:
/bin/sh: 0: Illegal option --
has something to do with the default shell being dash, not bash in Ubuntu, and Ubuntu based systems.
I found a "fix" for that here -

OK - So Here is the deal - I did get it this to work in linux, without any drivers, but it wasn't as straight forward as it should have been.
Quickly -
I followed the "hold reset", "push upgrade", "release reset", "release upgrade" - then I hit reset again and a serial port does show up (/dev/tyyACM0)
The IDE has to be run as admin (root), (Issue here is, it uses default sets, an you have to add the board back in the board manager)
Next, There are 3 files that need to have the permissions changed.
The easiest way is in the shell
su
cd /root/.arduino15/packages/Firefly/tools/fireduino_tools/1.0.0
chmod 744 rkImageMaker
chmod 744 upgrade_tool
chmod 744 update_tool

This seemed to work for me, I've been able to upload the audio_play_NET sketch, the blink sketch, and a couple others.
I'm using the Arduino 1.6.12 IDE - and this was done on a different linux box, than any of my above posts.