Directions on how to setup a test environment for RIOTOS (Real Time OS for tiny embedded devices)

Hi I have performed the following in order to setup a test network of devices on Ubuntu 14.04 with Vagrant and vbox. (see below)

I am getting the following error:

ifconfig 4 add 2001:db8::1 error: unable to add IPv6 address.

I cant get around this. I believe I am using the native chipset in order to work on Linux.

Please take a look and tell me what I am doing wrong.

Thanks in advance!

Steven

Directions on how to setup a test environment for RIOTOS (Real Time OS for tiny embedded devices)

install Ubuntu 14.04 http://releases.ubuntu.com/14.04/ubuntu-14.04.5-desktop-amd64.iso and burn it to a CD install it on a x86_64 bit machine

Install VirtualBox 4.3 https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

install “VirtualBox Extension Pack 4.3” https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

Install vagrant (DONT DO sudo apt-get install vagrant ) instead do sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade WARNING: do not upgrade to later version of ubuntu if it asks! sudo apt-get install wget build-essential subversion git linux-header-`uname -r’ nano gedit cd /home//Downloads mkdir vagrant cd vagrant wget https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb sudo dpkg -i vagrant_1.8.5_x86_64.deb mkdir /home//Downloads/RIOT-OS cd /home//Downloads/RIOT-OS git clone --recursive https://github.com/RIOT-OS/Tutorials git clone git://github.com/RIOT-OS/RIOT.git cd /home//Downloads/RIOT-OS/RIOT NOTE: if your computer does not have USB3 then you will need to do the following gedit Vagrantfile find the line that reads vb.customize [“modifyvm”, :id, “–usbxhci”, “on”]

and comment it out by putting a # sign in front of it

vb.customize [“modifyvm”, :id, “–usbxhci”, “on”]

this fixes a usb3 error that is generated by vagrant and vbox

The following commands must be run from the RIOT-OS root directory on the host system. This will set the ability to name a terminal with set-title command inside terminal on Ubuntu install. NOTE: This is different than the repeat of this step you are going to do for Vagrant VM inside vbox. More info on this helpful shortcut can be found here: http://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal This seems like a lot of work but it actually saves lots of confusion later on. gedit /home//.bashrc

at the bottom of the .bashrc file that appears type function set-title() { if [[ -z “$ORIG” ]]; then ORIG=$PS1 fi TITLE="[\e]2;$*\a]" PS1=${ORIG}${TITLE} }

save the .bashrc and exit

NOW you will open terminal tabs one for each of the RIOTOS devices you wish to create. For ease of use open them as tabs. DO this by opening a terminal and then go to FILE-Open TAB on Ubuntu Desktop. For example,VirtualBox I wanted to have 4 devices with 4 tap interfaces so I opened 4 terminals. After you open the terminals go into each terminal and type set-title RIOT-OS tap{0,1,2,3,4}…number of terminals consecutively one in each terminal for example set-title RIOT-OS tap0 or in next terminal set-title RIOT-OS tap1, etc…etc.

vagrant up This will start up the virtual machine and download the Ubuntu image as well as all necessary toolchains. This will download and build a VirtualBox VM with Ubuntu 15.04 in it for use as a platform for RIOTOS, it will then build RIOTOS inside the VM assuming all goes well You will do the next step once for each of the instances of native RIOTOS hardware instances you wish to create. If your not there already type cd /home//Downloads/RIOT-OS/RIOT (you should be here) type: vagrant ssh

<Begin do only after first vagrant up > For the very first time after building with vagrant up or after a vagrant destroy you will need to edit the .bashrc in the vagrant / VirtualBox VM

gedit /home/vagrant/.bashrc

at the bottom of the .bashrc file that appears type function set-title() { if [[ -z “$ORIG” ]]; then ORIG=$PS1 fi TITLE="[\e]2;$*\a]" PS1=${ORIG}${TITLE} }

save the .bashrc and exit

<End do only after first vagrant up >

cd /home/vagrant/RIOT/dist/tools/tapsetup ./tapsetup -c 10 where -c 10 is the number of virtual different boards you want

[NOTE: if you previously created a tap interface you will need ./tapsetup -d to delete other tap interface ] cd /home/vagrant/RIOT/examples/default type in: make all term wait a minute and hit enter to bring up prompt > BEGIN REPEAT SECTION: For each of the ./tapsetup -c 10 ←-- do the following open a new terminal on your desktop (not the VirtualBox VM created early but on the actual desktop) In the terminal type: set-title RIOT-OS tap<0> where <0> is the number of the tap interface this will name the terminal according to which tap interface you are accessing. More info on this helpful shortcut can be found here: http://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal

cd /home//Downloads/RIOT-OS/RIOT vagrant ssh (this puts you into the vagarant vm running on vbox)

In the terminal type: set-title RIOT-OS tap<0> where <0> is the number of the tap interface this will name the terminal according to which tap interface you are accessing.

cd /home/vagrant/RIOT/examples/default {inside VM here in second,third,forth…terminal}

make term PORT=tap<1> —where each of the tap<1> is incremented as you do the repeat steps END REPEAT SECTION