Author Topic: Anyone running Linux with any success?  (Read 10248 times)

oodavid

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Anyone running Linux with any success?
« Reply #15 on: March 15, 2014, 03:48:21 AM »
I got this working by following this post on the Arduino forums, am running RFDuino under Ubuntu 13.10 without wine.

EDIT - spoke too soon, RFDuino is selectable from Tools > Board, as are the examples, but when I go to upload I get this error:

Sketch uses 16,872 bytes (12%) of program storage space. Maximum is 131,072 bytes.
/home/david/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: 1: /home/david/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: Syntax error: "(" unexpected
« Last Edit: March 15, 2014, 03:55:15 AM by oodavid »

tolson

  • Global Moderator
  • *****
  • Posts: 878
  • Karma: +21/-0
    • View Profile
    • Thomas Olson Consulting
Re: Anyone running Linux with any success?
« Reply #16 on: March 15, 2014, 07:41:32 AM »
The RFDLoader is compiled for newer OS-X only.
The RFDLoader.exe is compiled for MS. But works just fine under wine.

Don't know why a generic Linux version can't be compiled in short order.

In the meantime I renamed RFDLoader to RFDLoader.ORIG to get it out of the way.
Create a new RFDLoader with 755 permissions with this content. Note, I used your path
in this example.

Code: [Select]
#!/bin/bash
/usr/bin/wine /home/david/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader.exe $1 com1 $3

You also have to make sure WINE knows where your serial (USB) port device is.
In your WINE config location add a sym-link to whatever your device name is.

In my case on a SuSE systems...
cd ~/.wine/dosdevices
ln -s /dev/ttyUSB0 com1

Voila! Voici!

[EDIT] You also have to make sure your user is a member of the dialout group in /etc/group.


« Last Edit: January 18, 2015, 07:51:29 PM by tolson »

 

anything