Arduino on FreeBSD, native and WINE

Warren Block wblock at wonkity.com
Mon Feb 8 21:14:06 UTC 2010


Some notes on installing the Arduino environment, either native or in 
WINE.

The native install seems quite a bit faster than WINE, maybe due to my 
jdk and avr-gcc being built with cputype set.  But the WINE install 
is functional.

A fresh Seeduino would not talk to the FreeBSD system initally.  RX and 
LEDs flashed, sometimes continuously, but no response.  After connecting 
to a Windows system and downloading a single sketch, it now works fine 
on FreeBSD.  Just finicky, hidden firmware update to FTDI chip by the 
Windows driver, user error?  No idea.

----

Arduino FreeBSD Native Setup

Required ports (RUN_DEPENDS):
   java/jdk16 (probably diablo-jre16 would be adequate)
   comms/rxtx
   devel/avr-binutils
   devel/avrdude
   devel/avr-libc

Download Linux file (3.7M):
   http://arduino.googlecode.com/files/arduino-0018.tgz
Extract to a convenient directory, let's say ~/
ln -sf /usr/local/jdk1.6.0/jre/lib/i386/librxtxSerial.so ~/arduino-0018/lib/
mkdir -p ~/arduino-0018/hardware/tools/avr/
ln -sf /usr/local/bin/ ~/arduino-0018/hardware/tools/avr/bin
ln -sf /usr/local/etc/ ~/arduino-0018/hardware/tools/avr/etc

Add user to dialer group for access to serial port:
   (as root) pw usermod myuser -G dialer

To run, ~/arduino/arduino

Edit settings in ~/.arduino/preferences.txt:

serial.port=/dev/cuaU0
launcher=/usr/local/bin/firefox

Use cuaU0 above for USB, or cuau0 for a real serial port.

----

Arduino in WINE on FreeBSD

Required ports:
   emulators/wine (well, obviously)

Download Windows file (85.8M):
   http://arduino.googlecode.com/files/arduino-0018.zip
Unzip ~/.wine/drive_c
Create a link to the serial port:
   ln -sf /dev/cuaU0 ~/.wine/dosdevices/com4

Add user to dialer group for access to serial port:
   (as root) pw usermod myuser -G dialer

To run, wine ~/.wine/drive_c/arduino-0018/arduino.exe

-Warren Block * Rapid City, South Dakota USA


More information about the freebsd-embedded mailing list