It is possible to run Contiki OS on OSX, but it took me several days to do so. Fortunately it is easy as eating pie, so here it goes:
1 ) Get Contiki OS
git clone https://github.com/contiki-os/contiki.gi
for the latest 2.7 version of contiki.
2 ) Compile/install the TOOLCHAIN for msp430 processors
It is crucial that you use the development version, as the long term supported toolchain msp430, on version 4.6.3, has a bug on the display of the mote's readings in the console (as shown in the image):
sudo port install msp430-binutils-devel msp430-gcc-devel msp430-gdb-devel msp430-libc-devel msp430mcu-devel mspdebug
This is MANDATORY, and, at the end, you should have the following packages installed:
3 ) Install the support for the Zolertia Z1 hardware
Install the latest VCI drivers from SiLabs:
"CP210x USB to UART Bridge VCP Drivers
The CP210x USB to UART Bridge Virtual COM Port (VCP) drivers are required for device operation as a Virtual COM Port to facilitate host communication with CP210x products. These devices can also interface to a host using the USBXpress direct access driver."
BSL (Bootstrap Loader).
You have more than one option (see http://processors.wiki.ti.com/index.php/B
pyserial (download from http://pypi.python.org/pypi/pyserial)
(in command line:) python setup.py install
python-msp430-tools (not mandatory, but it helped me debuging several problems)
download ActivePython (https://code.activestate.com/pypm/python-m
(in command line:) pypm install python-msp430-tools
In order to fix the following error while "make login" into the mote:
"... serialdump-linux: cannot execute binary file"
we need to do the extra steps:
4 ) Recompile the file contiki/tools/sky/serialdump.c
This is so because the serialdump-linux was compiled for 32bit environments:
edit serialdump.c file:
edit the following lines:
#define BAUDRATE B57600
#define BAUDRATE_S "57600"
for Z1's correct baudrate:
"#define BAUDRATE B115200
#define BAUDRATE_S "115200""
(in command line:) gcc -o serialdump-macos serialdump.c
5 ) Edit the file contiki/platform/z1/Makefile.common
In the line 63:
"SERIALDUMP = $(CONTIKI)/tools/sky/serialdump-linux"
and put your compilation:
"SERIALDUMP = $(CONTIKI)/tools/sky/serialdump-macos"