Skip to content

RaspberryPi Software Configuration

Laurent Deru edited this page Jul 29, 2015 · 39 revisions

6LBR on the RaspberryPi should work with any Linux distribution, but it has been extensively tested with the Raspbian distribution, which is a debian-based operating system optimized for the RaspberryPi.

This supposes that you already have an existing installation of Raspbian on an SD card, or that you would like to install one from the official Raspbian repository. In any case, refer to the Raspbian documentation for information on how to install raspbian.

We provide several ways to get started with 6LBR on the RPi:

Pre-Installation Configuration

Dependencies

Since Contiki 2.7, libncurses is required for building Contiki. It is not shipped with the default raspbian image:

apt-get install libncurses5-dev

If you intent to use tap-bridging, you need to install bridge-utils :

apt-get install bridge-utils

If you’re not sure about this one, please install the package anyways. It will save you a lot of time later when your bridge creation fails because of this missing package.

Specific Configuration for USB Slip-Radio motes

Due to a limitation in the kernel serial driver on some Raspian distributions, you need to modify the system configuration. In the boot partition, open the /boot/cmdline.txt file and add the following configuration parameter :

dwc_otg.speed=1
This enables the support for the high baudrate usb-serial SLIP connector with the slip-radio mote. This is needed for CC2531 dongle, Telos slip-radio, …

Specific configuration for the Nooliberry radio

The Nooliberry radio communicates at 38400 baud over the UART.

  • remove the following parameters from /boot/cmdline.txt
    console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
  • note that you do not need dwc_otg.speed=1 in that file for the Nooliberry, due to the lower baudrate
  • Also, in /etc/inittab the following line at the bottom of the file should be commented out, because the Nooliberry needs to use the ttyAMA0:
    #Spawn a getty on Raspberry Pi serial line
    #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Installation using .deb packages

6LBR can be installed using .deb packages. You can either build the packages yourself, or download the .deb file hosted on the 6LBR project website.

Download binaries package

Download the 6lbr package on the RPI if you do not plan to build it yourself. Check the releases page for the latest packages.

wget https://raw.github.com/wiki/cetic/6lbr/releases/rpi/cetic-6lbr_1.3.2-0_armhf.deb

Installation

  • Install it :
    dpkg -i cetic-6lbr-1.3.2-0_armhf.deb 

Configuration

See the Configuration section of Linux Host

Installation from sources

See the Compilation section of Linux Host

Building the packages yourself

If you would like to build the packages yourself :

  1. install devscripts packages
    sudo apt-get install devscripts
  2. repeat steps 1 and 2 of the Installation from sources section
  3. Build the .deb package :
    cd examples/6lbr
    debuild -us -uc
  4. Got get a cup of coffee…
  5. When done, your .deb file will be available in `examples/`

Use the generated .deb to install and distribute on your other devices. This allows you to package your own customized version of 6lbr!

Clone this wiki locally