[Tinyos-devel] TinyOS USB JTAG on Mac OS (was re: TinyOS 2.1 install instruction?)

Eric Decker cire831 at gmail.com
Tue Jul 22 16:17:19 PDT 2008


Follow up on using USB JTAB tools under virtual machines running on MacOS X.

We've had a tested current tinyos 2.1 rc installation running on some kind
of PC laptop running Xubuntu
8.04.  Had to do some messing around to get the TI USB JTAG to behave but in
the end everything worked.

We then switched over to a MacBook Pro running 10.5.4.  We installed
Parallels and brought up an
Xubuntu 8.04 partition within the virtual machine.    We needed to do the
same futzing with the native
install above for the right thing to happen when plugging the USB JTAG in.

So we plug the device in and when watching /var/log/messages see the
messages indicating that the
kernel was seeing and attaching the device.  Last message was about the
device being attached to
/dev/ttyUSB0.

All looked good so far.

When we actually tried to access the device via say "msp430-jtag -l
/dev/ttyUSB0 -r", MacOS X takes
a kernel panic.  What we've noticed is the TI USB JTAG is a little different
in that it has 2 configurations
denoted in its configuration section.  The kernel panic is out of the IOUSB
kit, something about an unmapped
frame (perhaps having something to do with the 2nd configuration memory
area).  We've submitted the
panic to Apple but who knows when it will get looked at.

So we then moved to a native boot via rEFIt which allowed us to put a native
Xubuntu partition on the
hard disk and boot it natively on the Mac Book Pro.  It takes a bit to get
this all working (including getting
the fan control working) but we have this up and it is working.

The only reason to going to this trouble is to allow use of the TI USB JTAG
tools.   GDB, JTAG downloading
etc.  The device we are using does not support downloading code via BSL so
we are forced there.  We have
also found that debugging using GDB via gdbproxy to be a win as well.

But if you don't need the USB JTAG pod then using Mac OS works fine
(download is via bsl).

eric


On Tue, Jul 22, 2008 at 1:38 PM, Razvan Musaloiu-E. <razvanm at cs.jhu.edu>
wrote:

> Hi!
>
> On Thu, 3 Jul 2008, Matt Welsh wrote:
>
> > I think you are going to get a lot of pushback if you abandon Cygwin.
> > Not everyone is comfortable in a UNIX environment. Would love to hear
> > more about Jetos and how big it is compared to Cygwin. (And wouldn't
> > it be nice to use an open source solution rather than VMware player?
> > Xen?)
>
> Here is a Vmware image inspired from Jetos:
>        http://hinrg.cs.jhu.edu/~razvanm/vmware/Jetos-rc3.zip
> Right now the zip file is 347M. Expanded is 2GB. The msp430 and avr tools
> are installed from the Stanford repository. nesc 1.3 beta6 is also from
> there. It contains 3 accounts:
> - tinyos: uses the git repository
> - tinyos-cvs: uses the official cvs repository
> - tinyos-rc3: the RC3 for 2.1
>
> For each account the tinyos tools are installed in the ~/local and the
> tinyos-2.x is in ~/local/src.
>
> The image is optimized for ssh access so it doesn't have any window
> manager but the X libraries are installed so graphical stuff works with
> X11 forwarding. For using in Windows one solution I tried is putty +
> xming.
>
> Any feedback is appreciated! :-)
> Razvan ME
>
> >
> > On Jul 3, 2008, at 4:15 PM, Kevin Klues wrote:
> >
> >> I think the wiki in general is pretty unorganized from this
> >> perspective.....  Problem is finding volunteers to clean things up.
> >>
> >> As a side (possibly controversial) note, what are peoples thoughts on
> >> discontinuing support on cygwin and moving support into a vmware
> >> solution either running full blown xubuntos, or something similar to
> >> this 'jetos' described below which looks similar to a cygwin
> >> environment in that you can share files with you native windows
> >> machine, but runs inside vmware player.  I'de be willing to play
> >> around with it and make sure its stable.  What do people think?  This
> >> would make distribution of packages, etc. much easier as we wouldn't
> >> have to compile for both linux and windows anymore.....
> >>
> >> The instructions below tell you how to set it up, but I could run
> >> through it, create a virtual machine for it and make sure everything
> >> is stable.  It is claimed to be much smaller than the full blown
> >> xubuntos as well (as it should be if its derived from jeos).
> >>
> >> http://docs.tinyos.net/index.php/Jetos
> >>
> >>
> >> Kevin
> >>
> >> On Thu, Jul 3, 2008 at 12:58 PM, Philip Levis <pal at cs.stanford.edu>
> wrote:
> >>>
> >>> On Jul 3, 2008, at 12:48 PM, Kevin Klues wrote:
> >>>
> >>>> Just updated the wiki (ignore the name of the document)i:
> >>>>
> >>>> http://docs.tinyos.net/index.php/Windows_Installation
> >>>
> >>> Would it make sense to have separate wiki pages for different versions?
> >>> E.g., right now there is no 2.0.2 instructions...
> >>>
> >>> Phil
> >>>
> >>
> >> --
> >> ~Kevin
> >
> >
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080722/ec6e25d5/attachment.htm 


More information about the Tinyos-devel mailing list