Ubuntu Setup

ODROID XU 4 supports both Ubuntu and Android, see the details on odroid page. Here we will discuss how to setup Ubuntu 16.04LTS

Flashing Ubuntu image

You can use either an SD card or eMMC. eMMC is recommended as it is much faster than SD card. (16GB (or more) is recommended).

You can flash either full ubuntu image with GUI ubuntu-16.04.3-4.14-mate-odroid-xu4-20171212.img.xz or minimal image ubuntu-16.04.3-4.14-minimal-odroid-xu4-20171213.img.xz. Minimal image will have much smaller size and faster boot and less overhead in general. Extract the downloaded image to obtain the .img image. Then, use Etcher to flash it to either SD or eMMC card. You can extract the /xz image using

xz -d /path/to/image.img.xz

The previous images are bare images in the sense that you will have to install all required software in this tutorial yourself e.g. ROS, MAVORS, OpenCV, ...etc.

If you want a ready image with most of the required software in this tutorial, you can find a minimal image (no GUI) for your eyes in this link.

Until you setup a WiFi connection, you will need to use an ethernet cable to connect your odroid to internet.

User account setup

After a fresh Ubuntu installation, it is recommended to setup a user account for easier handling in the future. The Ubuntu full image (that you download from ODROID repo) already comes with an account called odroid with default password odroid. However, the minimal image (or sometimes called Ubuntu server) is just a bare bones image, and you will need to do a lot of configuration to get it ready.

  • In the minimal image, you can add a user account (call it odroid) using the following commands. You can do this by plugging a screen, keyboard/mouse, or through the console cable. If you use the console cable, login using the root account (user: root, password: odroid). Also make sure that your odroid is connected to internet via ethernet cable.
    adduser odroid
    adduser odroid sudo
    apt-get update
    apt-get upgrade
    
If you use the minimal image above (that is already pre-configured), skip this step.
  • Also, add user to dialout group to access serial ports
    sudo adduser odroid dialout
    
    odroid is the account/user name.

Network Setup

It is recommended that you use static IP address if you plan to use ODROID via a WiFi network. This will reduce latency over wifi.

to set static IP address on full Ubuntu using GUI, check the this video

You might need to reserve the IP on the router side

To set a static IP address on Ubuntu server (minimal image), do the following.

  • add the following lines in the /etc/network/interfaces file.
    nano /etc/network/interfaces
    
    add the following
    auto wlan0
    # the following will auto-start connection after boot
    allow-hotplug wlan0
    iface wlan0 inet static
    address 192.168.1.131 # choose a static IP, usually you change the last number only for different devices
    netmask 255.255.255.0
    broadcast 192.168.1.255
    gateway 192.168.1.1 # your router IP
    dns-nameservers 8.8.8.8
    wpa-ssid "wifi_name"
    wpa-psk "wifi_password"
    
    You will need modify 'wlan0' to match the wifi card number on your odroid once the wifi device is connected. Is possible that it changes when you change the wifi device.
    To check your wifi card number,
    ifconfig -a
    
If you use the provided minimal image above (that is already pre-configured), but you will need to adjust the WiFi name and password to match your router access point that you use.

results matching ""

    No results matching ""