GithubHelp home page GithubHelp logo

classicvalues / zhpe-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hewlettpackard/zhpe-driver

1.0 1.0 0.0 862 KB

License: Other

C 72.45% Emacs Lisp 0.02% Makefile 0.25% Python 27.29%

zhpe-driver's Introduction

This work has been supported in part by the U.S. Department of Energy under LLNS Subcontract B621301.

Support for the linux zhpe bridge device driver

1. Install dependencies

$ sudo -i apt-get install build-essential linux-headers-$(uname -r) cmake valgrind libudev-dev git wget flex
$ sudo -i apt-get build-dep openmpi libtool
$ sudo -i apt-get install librdmacm-dev # optional: not needed if OFED installed or verbs not required

2. Install libtool from source

$ wget http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
$ tar -xzf libtool-2.4.6.tar.gz
$ cd libtool-2.4.6
$ ./configure
$ make	
$ sudo make install

Make sure the new version of libtoolize is first in your PATH.

Building the driver and helper (using DKMS or manually)

DKMS method

This method has several advantages; it will manage building and installing the driver for multiple kernel versions, it automatically supplies driver parameters when the driver is loaded and handles all the driver build steps.

1. Install DKMS package

$ sudo -i apt-get install dkms

2. Clone zhpe-support into ${SRC_DIR}

$ cd ${SRC_DIR}
$ git clone https://github.hpe.com/zhpe-support.git

3. Register zhpe-support with DKMS (note driver version for build/install commands)

$ sudo -i dkms add ${PWD}/zhpe-support

4. Build and install driver

$ sudo -i dkms build zhpe/<driver_version> -k <kernel_version>
$ sudo -i dkms install zhpe/<driver_version> -k <kernel_version>

5. Load driver into kernel

$ sudo -i modprobe zhpe

6. Unload driver and uninstall

$ sudo -i modprobe -r zhpe
$ sudo -i dkms uninstall zhpe/<driver_version> -k <kernel_version>

7. Remove driver from DKMS

$ sudo -i dkms remove zhpe/<driver_version> -k <kernel_version>

Manual method (build into ${TEST_DIR})

NOTE: Builds in the zhpe-support tree currently install automatically into ${TEST_DIR}. This is not true for zhpe-libfabric and zhpe-ompi.

1. Clone zhpe-support into ${SRC_DIR}

$ cd ${SRC_DIR}
$ git clone https://github.com/HewlettPackard/zhpe-support.git

2. Generate makefiles and build and load driver.

$ cd ${SRC_DIR}/zhpe-support
$ make
$ sudo -i insmod ${TEST_DIR}/lib/modules/zhpe.ko

zhpe-driver's People

Contributors

jlbyrne-hpe avatar jmhull avatar hkuno avatar classicvalues avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.