On Sat, 30 Jul 2011 19:38:55 +0000, smi...@icebubble.org wrote:
I was thinking about writing 9P client/servers for Arduino.
Developing
for Arduino is SURPRISINGLY easy--at least on Linux--you just install
the gcc avr cross-compiler and avrdude, untar the Arduino library
source, tweak the Makefile, cut-and-paste some skeleton code,
#include
standard stuff you want to use, run make, and use the open source
program avrdude to upload the image to the microcontroller over the
FTDI
USB serial interface. I've done a lot on Linux, and it really
suprised
me how straightforward it was programming the Arduino.
I had some trouble in the past with the cross-compilation tools, but I
have not had time to do anything fun like this for a year or two. Back
before that I had 6+ compilers installed for cross platform work, and it
was a bit twitchy. Other than getting them all installed, yes they were
easy to use.
I looked around to see if there was a canonical 9P implementation
that I
could use as a starting point. Alas, I found about a brazillian
different implementations, in about as many languages. If there was
canonical 9P client/serever skeleton code (in C, pseudocode, or some
other language) with "fill-in-your handler" placeholders, it would be
really straightforward to implement 9P clients/servers on Arduino.
I know that Eric recently submitted some 9p stuff up stream to the
kernel folks. I would start by looking at npfs's source
<http://sourceforge.net/projects/npfs/> -- which BTW, provides a 9p file
system on Linux.
Seriously though, if you start working on an Arduino client let me know
and I'll help if time and legal constraints allow.
EBo --