GithubHelp home page GithubHelp logo

davide125 / switchtec-user Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsemi/switchtec-user

0.0 1.0 0.0 4.96 MB

Userspace code for the Microsemi PCIe switch

License: MIT License

Shell 0.67% C 98.45% Makefile 0.75% M4 0.13%

switchtec-user's Introduction

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:

  • Show status for each port on all partitions
  • Measure bandwidth and latency for each port
  • Display and wait on event occurrances
  • Setup and show event counters for various types of events
  • Dump firmware logs
  • Send a hard reset command to the switch
  • Update and readback firmware as well as display image version and CRC info
  • A simple ncurses GUI that shows salient information for the switch
  • Display and configure manufacturing settings

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:

  • libncurses5-dev (without it, 'switchtec gui' will not work)
  • libssl-dev (without it, some of the commands in 'switchtec mfg' will not work)

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

switchtec-user's People

Contributors

lsgunth avatar xyan264 avatar kelvin-cao avatar wesleywesley avatar brian-mckenzie avatar sbates130272 avatar glimchb avatar vermilionink avatar bertusgreeff avatar chetana2791 avatar cjengel avatar mattc-pstg avatar mpiszczek avatar omermargolin 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.