IGEP SDK Virtual Machine
From IGEP - ISEE Wiki
- 1 Overview
- 2 General information about software used
- 3 Features
- 4 Install the IGEP SDK Virtual Machine
- 5 Using Virtual Machine
- 5.1 Customize your Virtual Machine
- 5.2 Attach removable devices to Virtual Machine
- 5.3 Connect your board to the Virtual Machine
- 5.4 Compile an run and debug a 'C' application using Eclipse IDE
- 6 Other uses:
The IGEP SDK Virtual Machine allows you to boot a custom Linux distribution image using a non-Linux development system. We don't recommend that you use the virtual machine as a day-to-day production development environment. You should limit the virtual machine to testing out and experiencing with the IGEP Technology.
We use a virtual machine (VM) to make an easy way to introduce quickly to a complete development environment for IGEP Technology based devices.
To understand the virtual machine, you need to be familiar with some terms and concepts:
Host Computer: The system on which you are running the virtual machine. For example, the host computer could be your laptop computer running the Windows operating system.
- VirtualBox: An Oracle product that lets you run multiple operating systems at the same time on your PC. It allows you to create isolated virtual machines to try things out. See https://www.virtualbox.org for more information.
- VMware Player: A VMware product that lets you run multiple operating systems at the same time on your PC. It allows you to create isolated virtual machines to try things out. See VMware player version 5 for more information.
OVA File: Is a TAR file with the OVF directory inside. The Open Virtual Machine Format file defines the Virtual Machine, including which disk image (vmdk) to use. The disk image contains a Linux distribution build by ISEE. For information on the Open Virtual Machine Format file, see this page.
|VMware player version 6 contains a bug importing OVA files, we suggest to use VMware player version 5 instead.|
General information about software used
IGEP SDK and IGEP firmware runs Linux kernel. Linux is a clone of the operating system UNIX, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance.
It has all the features you would expect in a modern fully-fledged UNIX, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and multistack networking including IPv4 and IPv6.
Although originally developed first for 32-bit x86-based PCs (386 or higher), today Linux also runs on (at least) the Alpha AXP, Sun SPARC, Motorola 68000, PowerPC, ARM, Hitachi SuperH, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, AMD x86-64, AXIS CRIS, Renesas M32R, Atmel AVR32, Renesas H8/300, NEC V850, Tensilica Xtensa, and Analog Devices Blackfin architectures; for many of these architectures in both 32- and 64-bit variants.
A Linux distribution is a member of the family of Unix-like operating systems built on top of the Linux kernel. Such distributions (often called distros for short) are operating systems including a large collection of software applications such as word processors, spreadsheets, media players, and database applications. These operating systems consist of the Linux kernel and, usually, a set of libraries and utilities from the GNU Project, with graphics support from the X Window System. Distributions optimized for size may not contain X and tend to use more compact alternatives to the GNU utilities, such as BusyBox, uClibc, or dietlibc. There are currently over six hundred Linux distributions. Over three hundred of those are in active development, constantly being revised and improved.
Because most of the kernel and supporting packages are free and open source software, Linux distributions have taken a wide variety of forms—from fully featured desktop, server, laptop, netbook, mobile phone, and tablet operating systems as well as minimal environments (typically for use in embedded systems or for booting from a floppy disk). Aside from certain custom software (such as installers and configuration tools), a distribution is most simply described as a particular assortment of applications installed on top of a set of libraries married with a version of the kernel, such that its "out-of-the-box" capabilities meet most of the needs of its particular end-user base.
IGEP SDK Virtual Machine provides IGEP SDK. IGEP SDK is located into the /opt/poky directory and contains a setup script, which can be sourced to initialize a suitable environment. After sourcing this, the compiler, a special version of pkgconfig and other useful utilities are added to the PATH. Variables to assist pkgconfig and autotools are also set. IGEP SDK can compile programs for Gnome mobile environment (GMAE) and Qt Embedded environment (Qte).
|GMAE architecture||Qte architecture|
IGEP SDK Virtual Machine includes Software Development Kit (SDK) from ISEE. All components are installed and configured to speed up getting started with IGEP Technology. It is based in Linux Mint distribution (Ubuntu/Debian variant) with the following features:
Distribution based on:
- Release: Linux Mint 12 (Lisa)
- Edition: Gnome Desktop, x86
- IGEP SDK Yocto Toolchain
- Eclipse IDE with Yocto Plug-in and Linux Tools.
- Qt creator IDE
- Username: jdoe
- Password: letmein
Network configuration (IP addresses):
- eth0 − assigned via dhcp.
- eth0:0 − static ip address 192.168.5.10
- usb0 − assigned via dhcp.
Install the IGEP SDK Virtual Machine
This tutorial guide shows the steps for setup the IGEP SDK Virtual Machine (VM) in your computer, which includes a software development kit with all its software completely installed and ready to use.
It also shows how to connect the VM to an IGEP Processor Board, to test your applications directly into your board.
- a computer with Linux, Mac or Windows
Download the IGEP SDK Virtual Machine
First of all, download the Virtual Machine:
You can also download the Virtual Machine manual:
.. or you can:
- Open a web browser and go to www.isee.biz, the main page from ISEE.
- In the product section, go to the page of the product you have, for example, IGEPv2.
- Select the "IGEP SDK Virtual Machine" and downloaded it into your PC.
Install and configure the Virtual Machine
The IGEP SDK Virtual Machine can be used with:
- Virtualbox , a multiplatorm application for Linux, Mac or Windows
- VMWare Player , which can be downloaded for Windows or Linux.
NOTE: Old virtualization software maybe has problems with IGEP SDK VM ova file. Upgrade it to solve this problem.
Go to file / import ampliance, select the downloaded .ova file and click next.
Continue with the installation, leave the default configuration of the Virtual Machine and finally click to import.
If you edit the default configuration, ensure to set bridge mode to the network adapter
Open a new virtual machine and select the .ova downloaded file.
Install additional features to the VM
If you want to add some functionalities to the virtual machine install the guest additions.
- Select guest additions.
- Run the autorun application.
- Remember that the root user has the password: letmein
- At the top of the application, go to Virtual Machine menu and select "Install VMWare tools"
- Select "Download and install"
- Extract the downloaded file
- Open a terminal session and go to the extracted folder.
- Run the vmware-install.pl
- Press return key and continue with the installation at all the installation prompts
When finnishing the installation, restart the VM and you will be able to switch to full screen, copy/paste between OS's, etc.
Using Virtual Machine
Customize your Virtual Machine
Maybe you need more software to develop your applications or do your task.
Use “Synaptic Package Manager”, this application is a graphical package management program for apt. It provides the same features as the apt-get command line utility with a GUI front-end based on Gtk+.Features:
- Install, remove and upgrade any packages or whole system.
- Manage package repositories (sources, list).
- Find packages by name, description and several other attributes.
- Browse all available online documentation related to a package.
- Download the latest changelog of a package.
- Lock packages to the current version.
- Force the installation of a specific package version.
- Undo/Redo of selections.
- Built-in terminal emulator for the package manager.
- And select the packages you wish to install.
Command line text procedure
You can also use the “apt” command line program to install and remove software packages from your system (one at a time or many at once), as well as update your system's internal listing of what packages are available from your currently selected list or repositories. Use a terminal to execute apt-get:
- Install a “NameOfPackage” package:
apt-get install NameOfPackage
- Remove a package:
apt-get remove NameOfPackage
- Search for a package:
apt-cache search NameOfPackage
- Update the repository (list of available .deb's):
- Upgrade your system (can be useful in maintaining an up-to-date system):
- To see a short list of common commands:
Attach removable devices to Virtual Machine
Sometimes you will need to connect some external peripherals to your Virtual Machine like: USB serial converters, SD Card readers, USB Ethernet Gadget, etc. These peripherals can be connected in your native operating system or in your guest operating system.
Connect external peripherals in Virtual Box
Disconnect from Virtual Machine unsetting your peripheral
Connect external peripherals in VMware Player
Disconnect from Virtual Machine unsetting your peripheral
Connect your board to the Virtual Machine
In this tutorial we are going to connect IGEPv2 via ethernet to your computer, but you can use other boards and interfaces, such USB-Ethernet Gadget.
First of all, connect IGEPv2 to your computer via the Ethernet interface and power it up.
ASSUMING THE DEFAULT CONFIGURATION of the pre-installed software
In the Virtual Machine, open a terminal session and check that appears a network interface called eth0:0
If it does not mount it, check the connections and reconnect the wired connection of the Virtual machine.
Compile an run and debug a 'C' application using Eclipse IDE
You can use any of the preinstalled IDE's in the IGEP SDK Virtual Machine. The VM has many installed and configured IDE's such Eclipse and Qt creator ready to develop your applications.
In this tutorial, let's try Eclipse IDE and compile one of the available examples.
- Start Eclipse from the Desktop of the VM and open a C application example, such C_Example.
- If you right click the project and select "build project", it will cross compile your project for ARM architecture, suitable to run in your IGEP Processor Board.
- Go to the Run menu and select Run Configurations.
- Select your project and click RUN.
- When the system prompts for a user, use: root and empty password and click OK
At the console tab you will see the remote program execution.
Debugging your applications
You can also debug your applications:
- At the Ecplise menu, select the debug configurations and click Debug.
- Click the Step Over option to debug your source code.
- Close the communication with the stop button.
Set up a Network file system
Network File System (NFS) is a Distributed file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client Computer to access files over a network in a manner similar to how local storage is accessed. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system. The Network File System is an open standard defined in RFCs, allowing anyone to implement the protocol. More information here.
In IGEP Boards, NFS protocol can be used to mount a whole rootfs partition located in a remote disk like Virtual Machine, this method can be useful for:
- Your remote rootfs will not be limited by flash or MicroSD storage.
- You can transfer binaries without using remote connections.
- You can test other rootfs only editing igep.ini configuration file.
Work under NFS environment has its limitation too:
- Remote system is a bit slower than a Micro SD or Flash system
- IGEP X-loader and Kernel will be hosted in Micro SD or Flash
Click to enlarge image
Develop with Qt under IGEP Technology
This guide can be helpful to learnt to develop Qt applications under IGEP Boards. Qt is a cross-platform application framework that is widely used for developing application software with a graphical user interface, and also used for developing non-GUI programs such as command-line tools and consoles for servers. You can get more information here.
Develop with Codeblocks
Codeblocks is a free and open source, cross-platform IDE which supports multiple compilers including GCC and MSVC. It is developed in C++ using wxWidgets as the GUI toolkit. Using a plugin architecture, its capabilities and features are defined by the provided plugins. Currently, Codeblocks is oriented towards C and C++. It can also be used for creating ARM, AVR, D, DirectX, FLTK, Fortran, GLFW, GLUT, GTK+, Irrlicht, Lightfeather, MATLAB, OGRE, OpenGL, Qt, SDL, SFML, STL, SmartWin and wx programs and applications, although in some cases installing third-party SDKs or frameworks is necessary. More information here.
Codeblocks is not installed by default in IGEP SDK VM, because Eclipse IDE is full integrated with IGEP Firmware. If you don't like Eclipse IDE or you want to use Codeblocks anyway this How-to can be helpful to install, set up and use it.
|If you have any question, don't ask to ask at the IGEP Community Forum or the IGEP Community Chat|