Intel Galileo Gen 2 Getting Started

Source: Internet
Author: User
Tags yocto

Intel Galileo Gen 2 Getting Started

What this article describes

    • Intel Galileo Gen 2 Introduction
    • Setting up an environment on Ubuntu
    • Use the Arduino IDE to swipe into sketch
    • Swipe into the custom Linux system in Galileo Gen 2
    • Swipe into the Debian system in Galileo Gen 2
    • Compiling run OPENCV in Galileo Gen 2
Intel Galileo Gen 2 Introduction

Intel Galileo Gen 2 is a arduino* compatible, powered by Intel? Architecture of the Development Board, compared to the previous generation of Intel Galileo Gen, a significant performance improvement.

(Figure for Intel Galileo Gen 2)

Characteristics:

    • USB Host with standard USB master
    • The serial port uses the TTL level specification
    • Single IO fast level switching
    • Simplified Yocto development Environment Customization system with GUI
    • Debug the shell directly from the USB connection
Part I: Building the Environment on Ubuntu download the required materials:
    • Arduino IDE
      32-bit Linux:
      Http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Linux32.txz
      64-bit Linux:
      Http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Linux64.txz
Install and start the Arduino IDE:
    • Unzip the downloaded installation package
    • Open terminal, CD to this directory
    • ./arduino (may also be required before, sudo chmod 777 Arduino)
    • The Arduino IDE is already open

(pictured as Arduino IDE)

Connect the Intel Galileo Gen 2 to your computer
    • Be sure to connect the power cord first!!!
    • Then connect the USB cable
Configuring the Arduino IDE
    • Note: The use of the Arduino IDE must have a Java environment
    • Open the Arduino IDE
    • Tools > Boards > Intel Galileo Gen2
    • Tools > Ports > Find the corresponding port (my is TTY.) ACM0)


The work of setting up the environment is over


Part II: Use the Arduino IDE to brush into sketch preparation:
    • Connect Intel Galileo Gen 2 via USB cable to Ubuntu
    • Open the Arduio IDE
Build a simple debug circuit

Swipe sketch into the dev version
    • Open Arduino ide,file > Demo > 01.Basics > Blink
    • Then click Vertify > Upload to swipe sketch into the dev version

Sample program:

Lights are lit.

We can see the Intel Galileo Gen 2 has the features of the Arduino

Part III: Swipe into the Custom Linux system (Yocto) in Galileo Gen 2 to download the system image and unzip it to the Micro SD card

    • http://downloadmirror.intel.com/24355/eng/SDCard.1.0.4.tar.bz2
    • Unzip to micro SD card, about 300 m
Booting Intel Galileo Gen 2 from SD card
    • Insert the micro SD card into the board and connect the power supply
    • If the SD light on the board is flashing, it is booting from the SD card, and the whole process takes less than a minute
Debug the board to prepare the material via serial port
    • FT232RL Serial to USB

      (pictured as FT232RL)

    • Screen command: sudo apt-get install screen

Connecting boards and Computers via FT232
    • Wiring

BOARD--FT232RL

Cts--–cts

Txo--–rxd

Rxi--–txd

Rts--–rts

Gnd--–gnd

3.3v--–vcc

    • to power the board.
Start debugging
    • Execute command:
      sudo chmod 777/dev/tty.usb0 (find the corresponding device on your computer)

      sudo screen/dev/tty.usb0 115200
    • This is what you will find in the terminal, the system will appear in the boot information, after the start will let you log in, the default login user: Root default login password: root
    • At this point, we log into the Yocto system which has just been brushed into the board.
Part IV: Swipe into the Debian system in Galileo Gen 2 to download the system image and unzip it to the Micro SD card

    • http://downloadmirror.intel.com/24355/eng/SDCard.1.0.4.tar.bz2
    • Unzip to micro SD card
Booting Intel Galileo Gen 2 from SD card
    • Insert the micro SD card into the board and connect the power supply
    • If the SD light on the board is flashing, it is booting from the SD card
Debug the board via serial port

Debug process as above

1.Debian Boot

2. Start-Up process

3. Login System

Part V: Compiling and running OPENCV preparation in Galileo Gen 2:
    • Connect the board to the network cable via the Ethernet port
    • Debug a development version with FT232
    • Log in to the Debian system
1. Installing CMake

OpenCV needs to use CMake to generate makefile files, so you need to install CMake

Direct installation
    • Execute Apt-get Install CMake
Download installation package Installation
    • Download the installation package from the official website and insert the SD card
    • Tar ZXVF [Compressed package]-c/usr/local/
    • sudo VI/HOME/EMOUSE/.BASHRC set environment variables, add export path= $PATH after file:/usr/local/[folder name]/bin
Review the version to see if the installation was successful
    • Cmake–version
2. Install OPENCV installation Libgtk2.0-dev and Pkg-config
apt-get install libgtk2.0-devapt-get install pkg-config
Download, install OpenCV
    • Download via official website, install SD card and unzip
    • Configuration via config in the CD value directory
    • Then install with make and do install
Configuring OPENCV Environment variables
sudo vi /etc/ld.so.conf.d/opencv.conf

Add the following content

/usr/local/lib

Configuration Library

sudo ldconfig

Changing environment variables

sudo vi /etc/bash.bashrc

After the file is added:

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfigPKG_CONFIG_PATH

At this point, OpenCV has been installed to complete

Later content:
    • Compiling user-defined Linux kernels
    • Custom Yocto systems using Intel-provided quark environments
    • ......

Intel Galileo Gen 2 Getting Started

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.