From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 8 21:14:06 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 590C71065672 for ; Mon, 8 Feb 2010 21:14:06 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id ECDE98FC24 for ; Mon, 8 Feb 2010 21:14:05 +0000 (UTC) Received: from lightning.wonkity.com (lightning.wonkity.com [10.0.0.8]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o18LE5Rq002882 for ; Mon, 8 Feb 2010 14:14:05 -0700 (MST) (envelope-from wblock@lightning.wonkity.com) Received: from lightning.wonkity.com (localhost [127.0.0.1]) by lightning.wonkity.com (8.14.4/8.14.4) with ESMTP id o18LE56p041367 for ; Mon, 8 Feb 2010 14:14:05 -0700 (MST) (envelope-from wblock@lightning.wonkity.com) Received: from localhost (wblock@localhost) by lightning.wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id o18LE5SJ041364 for ; Mon, 8 Feb 2010 14:14:05 -0700 (MST) (envelope-from wblock@lightning.wonkity.com) Date: Mon, 8 Feb 2010 14:14:05 -0700 (MST) From: Warren Block To: embedded@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [10.0.0.1]); Mon, 08 Feb 2010 14:14:05 -0700 (MST) Cc: Subject: Arduino on FreeBSD, native and WINE X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 21:14:06 -0000 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