Skip to content

RaspberryPi Software Configuration

Benny Lach edited this page Dec 6, 2018 · 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.

Installation and configuration

See the Linux installation page.

Interface configuration (Raspian Jessie)

Since Rapsian Jessie, the Raspberry Pi uses dhcpcd to configure its interfaces, which conflicts with 6LBR. In order to have a correct configuration, you can either disable dhcpcd and enable vanilla Debian networking or update the configuration as follow :

In /etc/network/interfaces,the line :

iface eth0 inet manual

Must be replaced by :

iface eth0 inet static
    address 0.0.0.0

auto br0
iface br0 inet manual
    bridge_ports eth0
    bridge_stp off
    up echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
    post-up ip link set br0 address `ip link show eth0 | grep ether | awk '{print $2}'`

Also, in /etc/dhcpcd.conf, the following line must be added :

denyinterfaces eth0 tap0

Specific configuration for the UART-based radio

UART radio conflicts with the kernel serial console and the serial login. In order to work properly, they must be disabled.
Some USB based radio are emulating a UART, this is the case if the system creates a /dev/ttyAMA* device for the radio.

Automatic method:
Use raspi-config to disable serial console, (but keep uart interface active) in the Interfaces menu.

Manual method:

Remove the following parameters from /boot/cmdline.txt

console=serial0,115200

For Raspian Jessie, disable the serial console daemon :
systemctl disable serial-getty@ttyAMA0.service

For Raspian Wheezy, remove or comment the following line from /etc/inittab :
… respawn:/sbin/getty -L ttyAMA0 115200 vt100

And reboot your RPi afterwards.

Clone this wiki locally