Skip to content

Toolchain installation on Linux

Harald edited this page Mar 2, 2018 · 4 revisions

Install development tools for OSD-Contiki

Start by installing some necessary packages:

$ sudo apt update
$ sudo apt install build-essential doxygen git curl python-serial
$ sudo apt install python-pip
$ pip install intelhex
$ sudo apt install picocom libcoap-1-0-bin

Install AVR compiler

An AVR compiler is needed to compile for AVR-based platforms such as osd-merkur and avr-rss2

$ sudo apt-get install avr-libc binutils-avr gcc-avr gdb-avr simulavr avrdude

Clone OSD-Contiki

$ git clone https://github.com/osdomotics/osd-contiki.git
$ git submodule update --init --recursive

Note: we recommend cloning and then initializing the submodules rather than using git clone --recursive. The latter results in submodules that use absolute paths to the top-level git, rather than relative paths, which are more flexible for a number of reasons.

User access to USB

To be able to access the USB without using sudo, the user should be part of the groups plugdev and dialout.

$ sudo usermod -a -G plugdev <user>
$ sudo usermod -a -G dialout <user>

After configuration

Logout the system after all configurations have been made and Login again.

Clone this wiki locally