levindoneto / microcontrollers-labs

Repository for the course of Microcontrollers of the Federal University of Rio Grande do Sul.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commands for setting Galileo up

Connect to the Galileo as a super user

$ ssh root@<IP_GALILEO_WITHOUT_REPEATED_ZEROS>
$ passwd
$ useradd -c <LOGIN_NEW_USER> -s /bin/bash -m <LOGIN_NEW_USER>
$ passwd <LOGIN_NEW_USER>
$ exit

Log into Galileo with the created user (LOGIN_NEW_USER)

$ ssh <LOGIN_NEW_USER>@<IP_GALILEO_WITHOUT_REPEATED_ZEROS>
$ echo "export PATH=.:$PATH" >> .profile
$ exit

Set up Galileo's system on a host machine and cross compiler

Install the Intel System Studio IoT Edition

  1. Download it from here.

  2. Get it into your machine (inside computer/opt).

$ sudo su
$ cd ~/Downloads
$ cp iss-iot-linux_03-24-16.tar.bz2 /opt
$ cd /opt
$ tar -xjf iss-iot-linux_03-24-16.tar.bz2
$ rm iss-iot-linux_03-24-16.tar.bz2
  1. Adjust the permissions of the obtained files
$ chown -R root.root iss-iot-linux
$ chmod -R go-w iss-iot-linux
$ chmod -R -s iss-iot-linux
  1. Create links
$ ln -s iss-iot-linux iot-devkit
$ cd iot-devkit
$ ln -s devkit-x86 1.7.2
$ INSTALL_DIR=`pwd` sdk-relocator/relocate_sdk.sh

Set up cross compiler

For being able to compile programs in your host machine to execute on Galileo, you need to run the script iss_setup everytime a new console is opened:

$ source iss_setup.sh

Clean up cross compiler

Since the cross compiler has been previously set on your the computer, if you try to use the normal compiler it won't work. For this purpose, just type on the terminal the following command:

$ export CROSS_COMPILE=

Useful commands

Establish connection with Galileo

$ ssh <USERNAME_GALILEO>@<IP_GALILEO_WITHOUT_REPEATED_ZEROS>

Copy a file into Galileo (mind the colon at the end of the command!)

$ scp <FILE_IN_HOST> <USERNAME_GALILEO>@<IP_GALILEO_WITHOUT_REPEATED_ZEROS>:

About

Repository for the course of Microcontrollers of the Federal University of Rio Grande do Sul.

License:MIT License


Languages

Language:C 73.5%Language:Makefile 10.3%Language:Shell 6.4%Language:Assembly 5.4%Language:C++ 4.4%