Microsemi / switchtec-user

Userspace code for the Microsemi PCIe switch
MIT License
45 stars 48 forks source link

Switchtec Management CLI and Library

Summary

The code hosted here provides an easy to use CLI and C library for communicating with Microsemi's Switchtec management interface. It utilizes the switchtec kernel module which, with luck, will be upstream for 4.11. Otherwise it can be obtained from the switchtec-kernel github repository and compiled for other supported kernels.

Currently the following features are supported:

Detailed documentation for the project can be found on the [Github Pages] site.

Dependencies

This program has an optional build dependencies on the following libraries:

Installation

Installation is simple, with:

./configure
make
sudo make install

Building on Windows

MSYS2 should be used to build switchtec-user on windows seeing it provides a reasonably compatible compiler. (Visual C++ still is missing full support of C99.) To setup an environment:

  1. Install MSYS2 by following the instructions at: http://www.msys2.org/
  2. In an MSYS2 shell, run the following:
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain git
  1. Close the MSYS2 shell, open an MINGW64 shell, checkout the project and follow the above installation instructions as usual.

Demos

CLI Demo

asciicast

Firmware Demo

asciicast