← Back to Deploy

1. Introduction

In this section you will find all the instructions required to set up a cross development and debugging environment for applications on top of Open Enea Linux. Along with the instructions, you will have a series of video tutorials demonstrating each step.

2. Download Tool Suite

Download Enea Eclipse Tool Suite. Open a terminal (host):

$ mkdir ~/OEL_Dev_Tools
$ cd ~/OEL_Dev_Tools
$ wget http://www.openenealinux.org/repository/tools/Enea-Linux-Eclipse_4.0.tar.gz
$ tar -xvzf Enea-Linux-Eclipse_4.0.tar.gz

You can also download it here, if you prefer.

3. Cross-Development

3.1 Eclipse Start Up

Start Enea Linux Eclipse and select your workspace:

$ cd eclipse
$ ./eclipse &

Select your workspace and close the welcome tab.

3.2 Remote Connection

Now we are going to connect Eclipse to our target. Eclipse supports several types of remote connections: in Open Enea Linux, SSH connection is used. This type of connection requires that a corresponding service (openssh) is enabled and running on the target. Run the following command on target “smart install openssh” (as explained previously here).

This a demonstration of how to set up a remote connection.

1. Window → Open Perspective → Other → Remote System Explorer.
2. File → New → Other → Remote System Explorer → Connection → SSH
3. Enter Host Name (IP address of the target) and Connection Name → Finish

3.3 Create ADT Project

First you need to download the toolchain:

$ mkdir ~/OEL_Dev_Tools/toolchain
$ cd ~/OEL_Dev_Tools/toolchain
$ wget http://www.openenealinux.org/repository/sdk/oel-eglibc-x86_64-core-image-minimal-cortexa8hf-vfp-neon-toolchain-2014-01-01.sh

Then install it:

$ sudo chmod 775 oel-eglibc-x86_64-core-image-minimal-cortexa8hf-vfp-neon-toolchain-2014-01-01.sh
$ ./oel-eglibc-x86_64-core-image-minimal-cortexa8hf-vfp-neon-toolchain-2014-01-01.sh
Enter target directory for SDK (default: /opt/oel/2014-01-01): /opt/oel-beagle/

Alternatively you can also get it from here.

Watch this video tutorial about how to set up an Application Development Toolkit (ADT) project

Window → Preferences → Yocto Project ADT → Cross Compiler Options:
- Standalone pre-built toolchain
- Toolchain Root Location: /opt/oel-beagle/
- Sysroot Location: /opt/oel-beagle/sysroots/
- Target Architecture: Select “cortexa8hf-vfp-neon”

File → New → C Project → Select (Yocto Project ADT Autotools Project – Hello World ANSI C Autotools Project → Project Name: “Ping” → Author: Chuck Norris → Finish

3.4 Cross-Compiling & Remote Debugging

Once you have created an ADT project, download Ping program to be used as debug example:

$ mkdir ~/OEL_Dev_Tools/Ping
$ cd ~/OEL_Dev_Tools/Ping
$ wget http://www.openenealinux.org/downloads/ping.c

Now you are ready to watch Adrian’s demonstration of cross compiling and remote debugging:

Right click on project name (Ping in our case) → Reconfigure Project
Check for “Operation Successful” in Eclipse Console window.
Right click on project name → Build Project
Verify logs in Console to ensure it has built, and see resulting binaries in Project Explorer window
Run → Debug Configurations → Select resulting Debug Configuration: Ping_gdb_:
- Remote Absolute File Path for C/C++ Application: “~/OEL_Dev_Tools/Ping”
- Create a Connection, unless you already have one (see 3.2 Remote Connection). Select it.
- Arguments Tab → Add 127.0.0.1 as Program argument
- Click Debug
- Authenticate

3.5 Other

Want some more? Check out Enea’s latest development tools’ videos here.
Questions? Visit the mailing list archive.
↑ Go up