GOAL - Generic Linux

GOAL - Generic Linux

generic_linux.png

Introduction

This page gives an overview about the usage of GOAL software package on generic Linux devices.

Tools

These software tools are required to build and run GOAL and its network protocol stacks.

Software Delivery

Extracting

The software comes in different versions, e.g. “0210_119_PROFINET_2.26.0_LINUX.zip”. Extract the package to your directory. Depending on the Platform, the GOAL delivery contains several pre-built example projects for Eclipse IDE. The delivery may contain a fully functional project generator, to build projects on your own.

Please keep the path length as short as possible and extract the GOAL delivery in for e.g. a root directory to ensure proper project functionality. This is important as some windows versions have a restriction regarding path sizes.

Generate projects with GOAL

Please refer to https://portgmbh.atlassian.net/wiki/x/G4AdT for Using the Project Generator with GOAL.

This step is optional as several pre-built example projects are provided within the delivery. This might be interesting, if you want to create your own projects.

Building from Command Line

The following example describes building of an example application provided by port for a generic Linux Device.

  1. Choose an appropriate project at the GOAL directory at command line

    user: ~ cd GOAL/projects/goal_pnio/01_simple_io/gcc
  2. Select a platform

    user: ~/GOAL/projects/goal_pnio/01_simple_io/gcc make select No platform selected, choose a platform - OR - press <CTRL+c> and set the PLATFORM environment variable. Choose platform: ... [ 2] linux_x64 (gcc) ... Choice [1-3]: 2 Selected platform: [ 2] linux_x64
  3. Optional: Activate Logging

    user: ~/GOAL/projects/goal_pnio/01_simple_io/gcc make log
  4. Invoke the Toolchain

    user: ~/GOAL/projects/goal_pnio/01_simple_io/gcc make Platform selected by .platform file: linux_x64 Build-System changed, rebuild from scratch... * Changed files: ... [LD] projects/goal_pnio/01_simple_io/gcc/build/linux_x64/goal_linux_x64.bin

If you want to cross compile for other platforms, use make CROSS=<PATH_TO_COMPILER> instead of make.

The created project file is located at the build specific directory in the project location, e.g. “GOAL/projects/<protocol>/<application>/gcc/build/<platform>/*.bin”.

The created binary can now be started.

Downloads

FAQ and Known Issues

No Known Issues.