odroidhk_green 201412051744489785

  1. Characteristics of ODRIOD
  • Amlogic ARM® Cortex®-A5(ARMv7) 1.5Ghz quad core CPUs 
  • Mali™-450 MP2 GPU (OpenGL ES 2.0/1.1 enabled for Linux and Android)
  • 1Gbyte DDR3 SDRAM
  • Gigabit Ethernet
  • 40pin GPIOs
  • eMMC4.5 HS200 Flash Storage slot / UHS-1 SDR50 MicroSD Card slot
  • USB 2.0 Host x 4, USB OTG x 1,
  • Infrared(IR) Receiver
  • Ubuntu 14.04 or Android KitKat

ODROID-C1-Especificaciones Setup

  1. Download IMG from odrio official web page this is the link: Ubuntu14.04
  2. Write img with Win32DiskImager Download link: Win32DiskImage(Windows)
  3. Write img with Command line in linux

Firts step:

  • Connect your microSD card and open terminal
  • Write in your terminal and press Enter:
  • you will see for example this /dev/mmcblk0p1 or /dev/sdd1
  • if your sd card has been previously written  with RaspberryPi img or ODROID img you have two partitions.(/dev/mmcblk0p1,/dev/mmcblk0p2 or  /dev/sdd1, /dev/sdd2). Remember sd’b’1 is your disk where ‘ b ‘ is letter of your disk and probably in your case the letter of disk be a, b ​​, c, d .. etc (example sdb , sde or sba )
  • Run in the terminal:

  • Replace sdd1 for the name of your disk you viewed  in the previous step
  • move to image directory in the terminal run this

  • Remplace “odroid_image.img” with your image’s name (ubuntu-14.04.2lts-lubuntu-odroid-c1-20150401.img) and “sdd” with your disk’s name, remember write sdd not sdd1 or mmcblk0 not mmcblk0p1.
  • The dd command don’t show progress of this process
  • For show progress follow this steps
  • run this in other terminal for show the progress
  • Other option is pv (Pipe Viewer) example:
  • Check that “pv” are install previously to continue.

Starup

  1. Connect to 5V power supply
  2. Connect hdmi
  3. Connect mouse and keyboard
  4. Enjoy

primeros_pasos_odroid-c1_inicio-1024x576   Compile

  1. Open your linux develepment system
  2. Install Sublimetext : How to install

Now come on give to an short descrioption of how to works compile  in linux and cross compile for embedded systems (RaspbberryPi, Odriod, BeagleBone… etc). In Windows compile your code in very easy but in Linux is not so easy, starting with short concepts of Linux and your Comparing with Windows(go direct to cross compile if you usually use Linux). First compile hello word in your system: In C:

In C++:

Save this program in your testing directory, open your terminal, move to testing directory and run this command. for C:

Build an executable file hello for C++:

Build an executable file hello If you get a error of not found gcc or g++ you install build-essentials

For run example write ./ after hello and Enter

This example is a introduction for adapting to linux environment. Cross compile the concept of cross compile is reference of compiling in a system(amd64 or i386) for other system for example ARM, this means that program compiled in amd64 doesn’t run in i386 or in ARM.

Well let’s start with the cross compile for ODROID-C1: