Title: Fireduino using linux. [Print This Page] Author: owennewo Time: 11/4/2016 17:57 Title: Fireduino using linux. During the kickstarter campaign the Firefly team said the folloing about OS Suppport
Arduino IDE Plug-in on Fireduino is support Windows and Linux nowŁ¬we are trying let it also can supported on OSX.Thank you.
I'm on linux. How do I get things working. The downloads page has an empty 'Firduino driver' folder and the 'Arduino IDE' download seems to be windows only.
Linux instructions please!
Owen Author: owennewo Time: 11/4/2016 18:46
OK - I've got a little further. So I already have Arduino IDE linux installed (from Arduino website). As mentioned above the drivers download folder is empty - so I'm hoping this is not required for linux.
I've followed the rest of the windows instructions. i.e. Open Arduino IDE. Click File > Preferences and paste in the Fireduino board manager URL (http://www.t-firefly.com/downloa ... ireduino_index.json). I then went to Tools > Boards > Board Manager and installed fireduino board (55 Mb install).
I have problems with the final step. When I go to Tools > Boards > Fireduino. - it shows the following error (twice)
Invalid library found in /home/owilliams/.arduino15/packages/Firefly/hardware/arm/1.3.0/libraries/LobotServoController: /home/owilliams/.arduino15/packages/Firefly/hardware/arm/1.3.0/libraries/LobotServoController
Copy the code
Author: owennewo Time: 11/4/2016 19:09
I am starting to think its a driver issue. I can get rid of the library error above easily enough (by deleting the LobotServeroController directory) but the Tools > Port is still greyed. I also don't see an additional usb device when I plugin the board. The board gets power (I can see red light and flashing blue and yellow light).
When I plug in a Uno board lsusb shows an additional usb device. When I plug in the fireduino board lsusb shows no additional device.Author: PotateMeHard Time: 11/8/2016 01:04
owennewo Posted at 11/4/2016 19:09
I am starting to think its a driver issue. I can get rid of the library error above easily enough ( ...
Received my Fireduino today and have been trying to get it working. I am having the same issue. It seems that my Linux machine isn't recognizing the Fireduino as anything other than a power consumer. Plugging it into a Win10 computer doesn't seem to work either. Could the board itself be faulty? Author: owennewo Time: 11/9/2016 03:09
This forum doesn't seem to be monitored by firefly. Poor.
Still waiting for the promised linux driver. A bit dubious because it doesn't even show up as an unrecognised usb device. Author: kd8bxp Time: 11/10/2016 01:42
Thank you for the link to the board manager, I couldn't find that any where.
First I don't know anything - this is just a few things I found.
I got a bunch of different errors when trying to upload a sketch form my linux machines - I think it's because it can't find the device.
So I did try it on a Windows box, just for the sake of trying.
The important driver is a ROCKUSB driver - I couldn't really find anything for linux thou (admittedly I only did a very quick search)
The biggest thing I learned however was I have to run the Arduino IDE as ADMIN to get it too work at all in Windows.
The other thing was once the ROCKUSB driver was installed, and you exited out of the "upgrade" mode, Windows did see it as a serial device (normal serial) Windows didn't like the serial drivers that were included.
I was able to get my linux machines to finally see the device when in "upgrade" mode, but I could NOT get them to see it as a serial device when I reset the fireduino.
I now wonder if I should run the Arduino as root on my linux machines.
*BTW the install and usage was not as straight forward as it should be even on a Windows Box - (Window 10, using the Win 8 drivers provided)
Have to disable the driver signature enforcement, reboot a couple of times, and no where did I find that you have to use the IDE as ADMIN (That maybe a Win 10 thing thou)
So it's frustration when things just don't work. I also think there is a language barrier in play here, which is also frustrating.
It looks to me like there are a lot of linux users thou, so hopefully someone smart will figure it out.
-LeRoy Author: kd8bxp Time: 11/10/2016 02:52
I was able to try linux again, running the Arduino IDE as root, And still no joy - I did see the serial port show up, and disappear this time however.
and I am getting a error -
/bin/sh: 0: Illegal option --
That is the same error I got when trying this as a normal user. I think the serial port disappears when the board is reset, and the board is reset by the compiler, but I'm not sure what the "Illegal option" is.
When you hold the reset button, then hold the upgrade button, release the reset button, then release the upgrade button
this shows up if you do a lsusb command;
lfmiller@Sherlock ~/Desktop $ lsusb
Bus 002 Device 004: ID 0c45:6494 Microdia
Bus 002 Device 003: ID 0596:0524 MicroTouch Systems, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0cf3:e004 Atheros Communications, Inc.
Bus 001 Device 003: ID 1058:1021 Western Digital Technologies, Inc. Elements Desktop (WDBAAU)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 413c:2501 Dell Computer Corp.
Bus 003 Device 011: ID 2207:262d
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lfmiller@Sherlock ~/Desktop $
That changes if you exit "upgrade mode" to:
lfmiller@Sherlock ~/Desktop $ lsusb
Bus 002 Device 004: ID 0c45:6494 Microdia
Bus 002 Device 003: ID 0596:0524 MicroTouch Systems, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0cf3:e004 Atheros Communications, Inc.
Bus 001 Device 003: ID 1058:1021 Western Digital Technologies, Inc. Elements Desktop (WDBAAU)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 413c:2501 Dell Computer Corp.
Bus 003 Device 012: ID 8888:0007
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lfmiller@Sherlock ~/Desktop $
You'll notice a new ID: 8888:0007
The first device ID: 2207:262d looks like it is for some rockchip but so far I've not found which one, or what linux is looking for to make it work.
when I searched for the device ID: 8888:0007 I didn't find anything at all.
Author: kd8bxp Time: 11/11/2016 10:28
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 - https://wiki.ubuntu.com/DashAsBinSh
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.Author: tsester Time: 12/6/2016 06:28
i got it to work,
i first uploaded an empty sketch from Windows 7 and only after that, did it attach to /dev/ttyACM0 in Linux ;)
also, it needs
libudev.so.1
Copy the code
32-bit version
EDIT: it plays fine after that, in linux Author: iplayfast Time: 3/21/2017 12:09
I was able to get /dev/ttyUSB0 to show up by adding the following code to /etc/udev/rules.d in file 99-fireduino-boards.rules
#
# Copy this file to the location of your distribution's udev rules, for example on Ubuntu:
# sudo cp 99-fireduino-boards.rules /etc/udev/rules.d/
# Then reload udev configuration by executing:
# sudo reload udev
# Or if that doesn't work try:
# sudo udevadm control --reload-rules
# sudo udevadm trigger
After compiling (seemed ok) I then tried uploading. It kept uploading and uploading. Turns out blink for the fireduino is 1682969. WTF! For an uno it's like 800 bytes.
The upload eventually stopped with java closing the stream. I think it's a timeout.
Can someone please explain what is going on? Author: jeffou66 Time: 8/2/2017 01:02
Fireduino does not work on linux (be it ubuntu kernel for linux mint or another, because the arduino ID does not install in the same way on all linux machines).
I have followed all that is indicated in the wiki, but nothing of appearance of possibility of usveure of the usb port ....
Please buy your device very and there is always nothing for linux.
If you rely on a linux mint 18 this will work easily for 90% of linux users who can adjust the commands.
Thank you for doing something it's urgent now ......
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)