-
Notifications
You must be signed in to change notification settings - Fork 194
RaspberryPi Software Configuration
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:
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.
Due to a limitation in the kernel serial driver in the current Raspian distribution, 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=1This enables the support for the high baudrate usb-serial SLIP connector with the slip-radio mote.
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
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 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
- Install it :
dpkg -i cetic-6lbr-1.3.2-0_armhf.deb
See the Configuration section of Linux Host
See the Compilation section of Linux Host
If you would like to build the packages yourself :
- install devscripts packages
sudo apt-get install devscripts
- repeat steps 1 and 2 of the Installation from sources section
- Build the .deb package :
cd examples/6lbr
debuild -us -uc - Got get a cup of coffee…
- 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!
- Home
- Features
- Supported Hardware
- Download
- Changelog
- FAQ
- Installation:
- Configuration
- Deployment
- Documentation
- Extensions
- Tools
- Examples
- Tutorials
- Publications
- Acknowledgements
- Internal and old