Jetos

From TinyOS Wiki
Revision as of 16:07, 30 April 2008 by Ingenieroariel (talk | contribs) (New page: <nowiki>#JETOS VM - Just Enough Tiny OS Virtual Machine # Based on Xubuntos reconstructor script and a tutorial on kegel.com #Recipe #-------------- On the host (Linux Mint Daryna in my c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

#JETOS VM - Just Enough Tiny OS Virtual Machine # Based on Xubuntos reconstructor script and a tutorial on kegel.com #Recipe #-------------- On the host (Linux Mint Daryna in my case) --------------------------# #Started with a Ubuntu 7.10 jeos VM with VMware tools installed #http://www.vmware.com/appliances/directory/1164 wget http://kegel.com/linux/jeos-vmware-player/ubuntu-7.10-jeos-vmware.7z #Installed 7zip to decompress the image sudo apt-get install p7zip; 7zip -d *.7z #Created a jetos folder with this README and copied the VM mkdir jetos mv gutsy.vm* jetos #Opened the virtual machine with VMware Server #Edited the VM settings, to add the USB controller. #-------------- On the JETOS guest --------------------------# #Logged on the VM with notroot, notpass #Updated the machine sudo apt-get update; sudo apt-get upgrade # Add ssh server, so the rest can be done from ssh on another system (There is no copy paste on the VM :( ) sudo apt-get install ssh # Find the ip of the server, for the remote login ifconfig eth0 # Congrats, now you know the ip, let's go to the host. #--------------- On the host --------------------------------# ssh <JETOSVM_IP> -l notroot # Become root, for the rest of the operations sudo su # Backup sources.list before adding the tinyos stanford repo. cp /etc/apt/sources.list /etc/apt/sources.list.bak vim /etc/apt/sources.list # Add the line: deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main #Using Xubuntos Reconstructor module as a guide: #http://toilers.mines.edu/files-XubunTOS/mod-install-tinyos.rmod echo "Installing Tinyos..." apt-get update # Prerequisites apt-get install -y cvs subversion autoconf automake1.9 python-dev gperf swig sun-java5-jdk graphviz alien fakeroot libc6-dev build-essential # Install TinyOS 2.x apt-get install tinyos-msp430 tinyos-avr # Install TinyOS 2.x contrib cd /opt cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co tinyos-2.x-contrib # Install TinyOS 2.x doc cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co tinyos-2.x/doc # We installed TinyOS 2.x from debs, but the doc/ CVS checkout creates this unwanted directory rm -rf /opt/tinyos-2.x/CVS # Install TinyOS 1.x cd /opt cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co tinyos-1.x echo "Fetching XubunTOS-specific files..." cd / wget http://toilers.mines.edu/files-XubunTOS/XubunTOS-special-sauce.tar.gz tar xvfz XubunTOS-special-sauce.tar.gz rm XubunTOS-special-sauce.tar.gz # Fix Java. We need our modified TOSComm Makefile from special sauce # For TOSComm and getenv tos-install-jni # Build TOSComm export TINYOS_VER=1 . /etc/skel/.bash_tinyos cd /opt/tinyos-1.x/beta/TOSComm make # Compile Java tools cd /opt/tinyos-1.x/tools/java; make; make unset TINYOS_VER # Change ownership of the TinyOS directories to the TinyOS group addgroup --system tinyos #adduser ubuntu tinyos chown -R root:tinyos /opt/tinyos-* chmod -R g+w /opt/tinyos-* find /opt/tinyos-* -type d -exec chmod 2775 {} \; # Clean up apt-get clean apt-get autoclean