Code Monkey home page Code Monkey logo

docker-sfc's Introduction

docker-sfc

Solarflare Firmware and Driver in a container

Imaging Basics

Remove existing images:

docker images -q --filter "dangling=true" | xargs docker rmi
docker rmi greenpau/sfc

Create an image:

docker build --no-cache --rm=true --force-rm=true -t greenpau/sfc - < Dockerfile

Start a container with the image:

docker run --rm -i -t --name=sfc --privileged --cap-add all --net=host -v /tmp:/tmp  greenpau/sfc /bin/bash

Firmware Update

First, identify Solarflare cards:

# lspci | grep Solar
04:00.0 Ethernet controller: Solarflare Communications SFC9020 [Solarstorm]
04:00.1 Ethernet controller: Solarflare Communications SFC9020 [Solarstorm]
# 

Then, update the firmware on the card:

# sfupdate -y --write
Solarstorm firmware update utility [v4.6.6]
Copyright Solarflare Communications 2006-2014, Level 5 Networks 2002-2005 
eno49: updating controller firmware from 3.3.0.6275 to 3.3.1.1003
eno49: will be disabled during controller firmware update
eno49: writing controller firmware
[100%] Complete                                                              
[100%] Complete                                                              
eno49: updating Boot ROM from 3.3.1.6312 to 4.4.0.1002
eno49: writing Boot ROM
[100%] Complete                                                              
eno49: writing version information
eno50: writing version information                                           
[100%] Complete                                                              
[100%] Complete                                                              
# 

Lastly, verify the update by running sfupdate -V. Please note that the Boot ROM version of the network card changed:

    Boot ROM version:   v3.3.1.6312
    Boot ROM version:   v4.4.0.1002

Driver Update

First, unload existing sfc module from kernel:

rmmod sfc

Then, load updated sfc driver:

insmod /lib/modules/$(uname -r)/updates/sfc.ko

Driver Reports

A user may generate a network card report. The report is necessary to troubleshoot issues with SolarFlare support.

docker run --rm -i -t --name=sfc --privileged --cap-add all --net=host -v /tmp:/tmp greenpau/sfc sfupdate -V
docker run --rm -i -t --name=sfc --privileged --cap-add all --net=host -v /tmp:/tmp greenpau/sfc sfreport.pl /tmp/sfreport.pl.`hostname`.`date +"%Y%m%d.%H%M%S"`.html

docker-sfc's People

Watchers

 avatar  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.