OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
Tool Chain Installation

This section is for platforms that require the Broadcom Linux tool chain (Broadcom SVKs, Quanta LY2). For the Interface Masters x86 platform the Ubuntu supplied compiler should be used.

Building OF-DPA applications for some supported switch platforms requires use of tool chains that match the kernel running on the switch. These tool chains provide compiler tools and libraries for the development of OF-DPA applications.

Host Requirements

The tool chain tar ball contains a number of different tool chains for different CPU architectures including GTO, e500v1 and Keystone. Consult your Broadcom support representative to determine the correct tool chain to use for your platform.

Installation

Unpacking the Tool Chain

The tool chain is supplied as a compressed tar ball with a filename such as fp_7_toolchain.tar.bz2. The tools MUST be installed as follows:

  unix% su
  # cd /
  # rm -rf /projects/nwsoft-toolchains/brl
  # tar jxf <path>/fp_7_toolchain.tar.bz2

Updating the CROSS_COMPILE variable

The compile environment requires that the CROSS_COMPILE variable be set to the full path of the cross compiler you are using. For example, for the GTO cross compiler this should be set to /projects/nwsoft-toolchains/brl/brl_2.0/brl_2.0.1/gto/bin/powerpc-broadcom-linux-gnu-gcc. This can be done in one of two ways:

Updating the LD_LIBRARY_PATH variable

To ensure that the tool chain runs correctly you must update your LD_LIBRARY_PATH environment variable. Be careful to make sure this gets set up for each new shell that you use. For example:

  unix% export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/projects/nwsoft-toolchains/brl/brl_2.0/host-libs/x86_64/el5/lib

Updating the PATH variable

You must update your path to include the tools. Be careful to make sure that this gets set up for each new shell that you use. For example, if you are using the GTO CPU then:

  unix% export PATH=${PATH}:/projects/nwsoft-toolchains/brl/brl_2.0/brl_2.0.1/gto/bin

You are now ready to build your OF-DPA application.