Odroid XU

  • Weight: 75g

Image Installation

Installation on MicroSD card

Follow these instructions.

Don't forget to set the switches to OFF|ON.

Installation on emmc card

Taken from the forum:

  1. Rebuild the emmc with hardkernel's tool (http://dn.odroid.com/ODROID-XU/Recovery_0.5/). This will restore the original uboot in the emmc card, in case something wiped it.
  2. Follow the instructions for the MicroSD card, skipping the point 3. (there's no need to copy the xuboot.img to the emmc card since the emmc has the uboot already in a hidden partition).
  3. Modify the “boot.ini” file from the FAT partition and comment out the “run verify” line (this function is checking if the uboot on the emmc is up to date and if not it rewrites it, but this is not working well and renders the card unbootable).
  4. Set the switches to ON|ON

Connect over LAN

Plug the Odroid into your LAN network.

To find out the Odroid's IP there are multiple ways:

  • Open your router's configuration and lookout for connected LAN devices, it should be listed somewhere.
  • Scan your network, e.g. using:
  nmap -p 22 -sV 192.168.0.0/24 (if your computer's IP is 192.168.0.x)
  nmap -p 22 -sV 192.168.1.0/24 (if your computer's IP is 192.168.0.x)
  • Connect over UART, login with root/root and type:
  ip addr show eth0

Once you have found the IP of the Odroid, connect using SSH:

  ssh root @192.168.x.x # remove space before @

(Password: root)

Arch Linux Configuration

This is all nicely documented in the Arch Linux Wiki.

Change root password

  passwd root

Create user

  useradd -m -g users -s /bin/bash USERNAME

Set password:

  passwd USERNAME

Add to some groups:

  usermod -a -G uucp USERNAME
  usermod -a -G wheel USERNAME
  usermod -a -G power USERNAME

Install sudo

  pacman -S sudo
  visudo

Change line:

  # %wheel ALL=(ALL) ALL

to:

  %wheel ALL=(ALL) ALL

to allow all users in the group wheel to use sudo

Login as user

  exit
  ssh USERNAME at ip
  

Update packages

  sudo pacman -Syu

Set time/timezone

  sudo timedatectl set-timezone Europe/Zurich

Allow X11 Forwarding over SSH

  sudo pacman -S xorg-xauth xorg-xclock
  sudo nano /etc/ssh/sshd_config
  AllowTcpForwarding yes
  X11Forwarding yes 
  X11DisplayOffset 10
  X11UseLocalhost yes
  sudo systemctl restart sshd

Exit and log back in with -X option:

  exit
  ssh -X USERNAME at IP

Test using:

  xclock

Install onboard software stack

  sudo pacman -S yaourt git
  mkdir ~/src
  cd ~/src
  cd ~/src
  sudo pacman -S python2 tk
  git clone https://github.com/mavlink/mavlink.git
  cd mavlink
  python2 pymavlink/generator/mavgen.py --output ~/src/mavlink/include --lang C  message_definitions/v1.0/common.xml
  python2 pymavlink/generator/mavgen.py --output ~/src/mavlink/include --lang C message_definitions/v1.0/pixhawk.xml
  cd ..

Mavconn

  sudo pacman -S svn cmake base-devel opencv gsl glibmm libgtop boost gpsd libjpeg-turbo expat
  
  svn checkout http://lcm.googlecode.com/svn/trunk/ lcm-read-only
  cd lcm-read-only
  sh bootstrap.sh
  ./configure --without-python
  make -j4
  sudo make install
  cd ..
  
  sudo ln -s /usr/lib/libexpat.so /usr/lib/libexpat.so.0
  
  git clone https://github.com/pixhawk/mavconn
  cd mavconn
  git fetch origin
  mkdir build
  cd build
  cmake -D CMAKE_BUILD_TYPE=Release -D MAVLINK_INCLUDE_DIR=~/src/mavlink/include -D MAVLINK_TYPES_INCLUDE_DIR==~/src/mavlink/include ..
  make -j4
Translations of this page:


Quick Links

QR Code: URL of current page