OpenNSL API Guide and Reference Manual
Building OpenNSL

The sections below provide instructions for building OpenNSL sample applications.

Build Variables

The environment variables are set in the Makefile available in the opennsl_root/example directory.

Build Process

The package include pre-compiled binary tarballs for all the supported platforms. Use the following instructions to compile the source code, if needed:

  1. Download source tarball
  1. Extract source tarball. Example: tar -xf opennsl-3.4.1.3-odp.tar.bz2
  1. Change to opennsl_root/examples directory where sample applications resides and then issue 'make' to build the sample applications. This will generate the sample application executables.

Use the following commands to clean the builds

Supported Platforms

Wedge Network Switch Platform - x86/Trident2/Tomahawk

For Wedge Network Switch platforms, OpenNSL can be compiled on the Wedge Switch OR using offline UBUNTU build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Switch/Server.

Celestica Redstone-XP/Seastone-XP Switch - x86/Trident2

For Celestica Redstone-XP/Seastone-XP Switch, OpenNSL can be compiled on the Switch OR using offline UBUNTU build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Switch/Server.

Accton AS5712(x86/Trident2) or AS7712(x86/Tomahawk) Switches

For Accton AS5712/AS7712 Network Switch platform, OpenNSL can be compiled using offline build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Server.

Dell S6000 (x86/Trident2) or S6100 (x86/Tomahawk) Switch

For Dell S6000/S6100 Network Switch platforms, OpenNSL can be compiled using offline build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Server.

Agema AG7648 (x86/Trident2) Switch

For Agema AG7648 Network Switch platforms, OpenNSL can be compiled on the Switch OR using offline UBUNTU build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Switch/Server.

Agema AGC7648A (x86/Qumran) Switch

For Agema AGC7648A Network Switch platform, OpenNSL can be compiled using offline build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Server.

Arista 7260CX3(x86/Tomahawk2) Switch

For Arista 7260CX3 Network Switch platform, OpenNSL can be compiled using offline build server. The boot loader, kernel headers, toolchain are assumed to be pre-installed on the Server.

GPL Linux Kernel modules

OpenNSL includes source code for Linux kernel modules that handle low-level configuration of Broadcom network Switch silicon. For the supported platforms, pre-compiled binaries of the kernel modules are included in the OpenNSL package. Note that the kernel modules are compiled for a specific Linux kernel version as mentioned in the above section.

To re-compile the Linux kernel modules: