Ubuntu and OpenNSL installation guide

Similar documents
Procedure to Create and Duplicate Master LiveUSB Stick

The embedded Linux quick start guide lab notes

APPLICATION NOTE. How to build pylon applications for ARM

A technical whitepaper describing steps to setup a Private Cloud using the Eucalyptus Private Cloud Software and Xen hypervisor.

HOWTO configure Xinu under Virtual Box

Create a virtual machine at your assigned virtual server. Use the following specs

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

RocketRAID 2640/2642 SAS Controller Ubuntu Linux Installation Guide

How to install PowerChute Network Shutdown on VMware ESXi 3.5, 4.0 and 4.1

Setting up a Raspberry Pi as a WiFi access point

VLAN for DekTec Network Adapters

Backup of ESXi Virtual Machines using Affa

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

USB HSPA Modem. User Manual

SheevaPlug Development Kit README Rev. 1.2

Building a Penetration Testing Virtual Computer Laboratory

Getting started with ARM-Linux

Installation Guide for Basler pylon 2.3.x for Linux

USB Stick Driver Installation Instructions

RocketRAID 174x SATA Controller Ubuntu Linux Installation Guide

AlienVault. Unified Security Management x Offline Update and Software Restoration Procedures

Linux Terminal Server Project

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

PowerPanel Business Edition Installation Guide

How to Create, Setup, and Configure an Ubuntu Router with a Transparent Proxy.

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Linux Integration Services 3.4 for Hyper-V Readme

Using ESXi with PowerChute Business Edition

How to Restore a Linux Server Using Bare Metal Restore

Configuring Ubuntu Server as a Firewall and Reverse Proxy for OWA 2007 Configuration Guide

Partek Flow Installation Guide

CDH installation & Application Test Report

Virtual machine W4M- Galaxy: Installation guide

Version 1.0. File System. Network Settings

Ubuntu Professional Training Course Overview (E-learning, Ubuntu LTS)

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

HP Compaq Thin Client Imaging Tool HP Compaq Thin Client t5000 Series

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

BKM: Installing Ubuntu OS on the DE2i-150 Board

Linux Development Environment Description Based on VirtualBox Structure

TouchKit driver user guide for Linux

Utilizing MBARI s Software Infrastructure and Application for MOOS (SIAM) for NOAA s Real-time Environmental Coastal Observing Network (RECON)

System Area Manager. Remote Management

AdvLinux for i486sx User Manual V1.02

USB 2.0 Flash Drive User Manual

Future Technology Devices International Ltd. Mac OS X Installation Guide

Introduction. Created by Richard Bell 10/29/2014

Table of Contents. Overview Features Applications Hardware requirement Card dimensions Software Installation...

SI455 Advanced Computer Networking. Lab2: Adding DNS and Servers (v1.0) Due 6 Feb by start of class

RecoveryVault Express Client User Manual

System administration basics

Installing Proview on an Windows XP machine

Installing and configuring Ubuntu Linux 9.04

Massey University Follow Me Printer Setup for Linux systems

Administering Windows-based HP Thin Clients with System Center 2012 R2 Configuration Manager SP1

Abstract. Microsoft Corporation Published: August 2009

Online Backup Linux Client User Manual

PCIe AHCI-IP Demo Instruction Rev Jul-15

Online Backup Client User Manual

Getting Started Guide

USB Driver. Installation Guide for H5 Devices

PARALLELS SERVER 4 BARE METAL README

WES 9.2 DRIVE CONFIGURATION WORKSHEET

Configuring Virtual Blades

1. Product Information

Online Backup Client User Manual Linux

UPS MONITORING SOFTWARE USER MANUAL

CycleServer Grid Engine Support Install Guide. version 1.25

SETTING UP A LAMP SERVER REMOTELY

Newton2 Developers Guide

QOS 8 High-Speed RAID System Guide

Installing FEAR on Windows, Linux, and Mac Systems

SETTING UP RASPBERRY PI FOR TOPPY FTP ACCESS. (Draft 5)

Building a Private Cloud Cloud Infrastructure Using Opensource

Quick Start Guide. Quick Start Guide. taskit GmbH. for Portux920T EU / SW Portux Mini-PC Portux Panel-PC Panel-Card MoLUX Stamp

Matrix 510/520 User Guide

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Waspmote IDE. User Guide

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

Professional Xen Visualization

AWS Schema Conversion Tool. User Guide Version 1.0

===================================================================

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

Installing VMware Tools on Clearswift v4 Gateways

2. Boot using the Debian Net Install cd and when prompted to continue type "linux26", this will load the 2.6 kernel

PowerPanel for Linux Software

Using Network Attached Storage with Linux. by Andy Pepperdine

A candidate following a programme of learning leading to this unit will be able to:

SmartFiler Backup Appliance User Guide 2.0

Online Backup Client User Manual

Network Printing In Windows 95/98/ME

cloud NAS Service Manual

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

AWS Schema Conversion Tool. User Guide Version 1.0

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

VIA Fedora Linux Core 8 (x86&x86_64) VT8237R/VT8237A/VT8237S/VT8251/CX700/VX800 V-RAID V3.10 Driver Installation Guide

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

Abstract. Microsoft Corporation Published: November 2011

Transcription:

Table of Contents Ubuntu and OpenNSL installation guide 1. Ubuntu Installation Guide... 2 1.1. Install Ubuntu Server 14.04.4 LTS 64-Bit.... 2 1.2. Enable the console device.... 2 1.3. Install the Ethernet device driver for the management interface.... 3 2. How to Install OpenNSL Binary... 5 2.1. Building OpenNSL... 5 2.2. Building example Applications... 5 2.3. Downloading and running OpenNSL sample applications... 5 1

1. Ubuntu Installation Guide 1.1. Install Ubuntu Server 14.04.4 LTS 64-Bit. 1. Download the ISO image from Ubuntu official website: http://releases.ubuntu.com/trusty/ 2. Connect a USB thumb device to the front panel USB port. 3. Connect to the switch via serial console using standard settings: 4. Power on the switch and change the boot option to CD-ROM/USB thumb in BIOS. 5. Start installing Ubuntu and create default user with username/password as "admin/admin" during installation. 6. Disable automatic updates during installation. 7. After installation completes restart and boot from hard disk and log in using above username/password. 1.2. Enable the console device. 1. Create a console configuration file. sudo cp /etc/init/tty1.conf /etc/init/ttys1.conf 2. Edit the following text into /etc/init/ttys1.conf: # ttys1 - getty # # This service maintains a getty on ttys1 from the point the system is # started until it is shut down again. start on stopped rc or RUNLEVEL=[2345] 2

stop on runlevel [!2345] respawn exec /sbin/getty -L 115200 ttys1 vt102 3. Start the console device (This will get you access to console): sudo start ttys1 4. Modify the following text into /etc/default/grub to get access to Linux init console: GRUB_CMDLINE_LINUX="console=tty1 console=ttys1,115200n8" GRUB_TERMINAL=serial GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" 5. Update GRUB: sudo update-grub 6. Boot to Linux and type lspci and you should observe an entry for the switch chip. 01:00.0 Ethernet controller: Broadcom Corporation Device b960 (rev 01) 01:00.1 Ethernet controller: Broadcom Corporation Device b960 (rev 01) 1.3. Install the Ethernet device driver for the management interface. The management interface is using embedded Intel Atom MAC controller and PHY from Broadcom. 1. Use USB storage device to install make and gcc package. (The packages should be downloaded from the Ubuntu official website) sudo mkdir /media/usb sudo mount -t vfat /dev/sdb1 /media/usb cd /media/usb sudo dpkg -i binutils_2.22-6ubuntu1.3_amd64.deb sudo dpkg -i make_3.81-8.1ubuntu1.1_amd64.deb sudo dpkg -i libmpfr4_3.1.0-3ubuntu2_amd64.deb sudo dpkg -i libmpc2_0.9-4_amd64.deb sudo dpkg -i cpp-4.6_4.6.3-1ubuntu5_amd64.deb sudo dpkg -i cpp_4.6.3-1ubuntu5_amd64.deb sudo dpkg -i libgomp1_4.6.3-1ubuntu5_amd64.deb sudo dpkg -i libquadmath0_4.6.3-1ubuntu5_amd64.deb sudo dpkg -i gcc-4.6_4.6.3-1ubuntu5_amd64.deb sudo dpkg -i gcc_4.6.3-1ubuntu5_amd64.deb 2. Install the IGB device driver (the package is provided, please note that we use a customized driver) cd igb-5.0.6/src sudo make 3

sudo make install 3. Edit the following text into /etc/network/interfaces: # The primary network interface auto eth0 iface eth0 inet dhcp Now you can log into the installed Linux using ssh. 4

2. How to Install OpenNSL Binary Using the package we provide. 2.1. Building OpenNSL Source code for OpenNSL sample applications may be built on the switch. Use the following steps to compile OpenNSL including sample applications. 1. Extract the code tarball into the destination directory say opennsl_root. 2. Go to output directory. For Netberg Aurora platform, it is opennsl_root/opennsl/output/x86-ub14 3. Issue "make" to create an OpenNSL shared library object, linux kernel modules. 4. The deliverables folder : opennsl_root/opennsl/output/x86-ub14/build shall have the following files. a) Linux kernel module : linux-kernel-bde.ko b) Linux user module : linux-user-bde.ko c) KNET driver module : linux-bcm-knet.ko d) OpenNSL shared object library : libopennsl.so 2.2. Building example Applications This section is applicable only if the package includes example applications. Source code for OpenNSL sample applications may be built on the switch. The example applications are dynamically linked with the OpenNSL shared library. Use the following steps to compile example applications. 1. Go to output directory. For Netberg Aurora platform, it is opennsl_root/opennsl/output/x86-ub14. 2. Issue "make examples" to compile all the sample applications 2.3. Downloading and running OpenNSL sample applications 1. cd to target deliverables directory. For Netberg Aurora platform, it is opennsl_root/opennsl/output/x86-ub14/build. 5

2. Use the following commands to update the linux kernel modules Execute "lsmod" to list the installed linux kernel modules. Remove the linux kernel and user modules by using "rmmod" command. Install linux kernel modules built for OpenNSL platform by using the following commands. Please ensure that the modules are removed before inserting it using rmmod command. # mknod /dev/linux-kernel-bde c 127 0 # mknod /dev/linux-user-bde c 126 0 # mknod /dev/linux-bcm-knet c 122 0 # insmod linux-kernel-bde.ko # insmod linux-user-bde.ko # insmod linux-bcm-knet.ko 3. Install OpenNSL shared library. The destination directory to install the shared library depends on the host environment configuration. Install the library files in a location included in the system s library search path. # mv libopennsl.so.1 /usr/lib # cd /usr/lib # ln -sf libopennsl.so.1 libopennsl.so 4. cd to the target deliverables directory and run the sample application. # chmod +x sample_application #./sample_application 6