sdnwiselab / sdn-wise-contiki

The Open Source OS for the Internet of Things meets the Software Defined Networking
https://sdnwiselab.github.io/
BSD 3-Clause "New" or "Revised" License
25 stars 24 forks source link

can't build sdn-wise-contiki #9

Open EngKhaled91 opened 5 years ago

EngKhaled91 commented 5 years ago

Hello Everybody: I'm trying to build sdn-wise-contiki using command sdn-wise/RUNME.sh but I got the following error: image are there any solutions to this ? thanks for supporting.

RaHeron95 commented 5 years ago

Hi ! I have the same problem too, I don't know if there's a tutorial or some steps to guide how to set up ?

RaHeron95 commented 5 years ago

I hope you have answered your question previously, if not here is the answer. There are missing archives in the contiki folder, if you open it, you'll notice that is in blank. You just need to copy all the folders and files from contiki in that folder, and thats all. You could build SDN-WISE without problems. Have an excellent day!

tarimislam commented 5 years ago
onus

I am facing problem to start onus in sdn wise contiki. Problem is given above

georgefatsis commented 5 years ago

@tarimislam

Firstly you should execute the following:

source $ONOS_ROOT/tools/dev/bash_profile && cd ~/onos &&
tools/build/onos-buck build onos --show-output && tools/build/onos-buck run onos-local -- clean debug

Afterwards, in a new terminal window you execute:

cd ~/onos && tools/test/bin/onos localhost 

when you see Onos: at the terminal then you type:

app activate org.onosproject.sdnwise
tarimislam commented 5 years ago

@tarimislam

Firstly you should execute the following:

source $ONOS_ROOT/tools/dev/bash_profile && cd ~/onos &&
tools/build/onos-buck build onos --show-output && tools/build/onos-buck run onos-local -- clean debug

Afterwards, in a new terminal window you execute:

cd ~/onos && tools/test/bin/onos localhost 

when you see Onos: at the terminal then you type:

app activate org.onosproject.sdnwise

Thanks for your solution. But I did exactly what you said but still facing the

1 onus

same problem

georgefatsis commented 4 years ago

@tarimislam You have the error you are facing in your first screenshot: No space left on the device empty some space and try again. Onos will require around 2gb free space in order to compile it. Empty some space or if you are using a vm do the following to assign more disk space to the vm:

# This is used to increase the size of a VM 

Step 1: Increase the VMDK size
Using Virtual Box

Unfortunately, Virtual Box cannot resize VMDKs, but it can resize VDI images. So, we will convert the disk to a VDI, and then increase its size.

    Shut down the VM.

    Find the location of the VMDK (e.g. /Users/<user>/VirtualBox VMs/<VM Name>/)
    $ cd "~/VirtualBox VMs/<VM Name>/"

    Using VBoxManage to clone the image and resize it.
    $ VBoxManage clonehd <VMDK Name>.vmdk clone.vdi --format vdi
    $ VBoxManage modifyhd clone.vdi --resize 20480 #size in MB (20 GB)
    Update VirtualBox to use the new image. This can be done using the command line, but it's easier to use the GUI. Select the VM and click the Setting button. Navigate to the storage tab, click on the old virtual disk, and then click on the small minus at the bottom to remove the drive. Then, click the little hard drive with the plus sign on the SCSI controller to add your new disk. Select choose existing disk, and then clone.vdi.

Using VMWare

It is really easy to increase the size of a VMDK in VMWare. First, shut down the VM and open the VM Settings Panel. Click on the Hard Disk icon, and enter the new disk size.
Step 2: Increase the Partition size

Some may consider the following "dangerous". However, you already have a backup of your virtual disk if you used the VirtualBox method above. If you want to be "safer", find a LiveCD or GParted ISO, and perform the following steps with /dev/sda1 unmounted. 

But, without further ado:

    Boot up your VM with the new or enlarged virtual disk.

    Turn off swap 
    $ sudo swapoff /dev/sda5
    $ sudo sed -i 's/\(^.*swap.*$\)/#\1/' /etc/fstab

    Remove the swap partitions (/dev/sda5) and the extended partition (/dev/sda2), then resize (delete and recreate) the root partition (/dev/sda1)
    $ sudo fdisk /dev/sda
    Command: d
    Partition number: 5
    Command: d
    Partition number: 2
    Command: d
    Command: n
    Select: p
    Partition number: 1
    First sector: 2048
    Last sector: <enter to take default, which is the end of the disk>
    Command: w

    The changes will not be taken into effect until reboot. We also want to do fsck on reboot.
    $ sudo touch /forcefsck
    $ sudo reboot

Step 3: Increase the Filesystem size

All you need to do is run the following:
$ sudo resize2fs /dev/sda1

You can verify your hard work with:
$ df -h

Also, you should read again the examples from the website.