
Solarflare
Server
Adapter
User
Guide
Solarflare
Adapters
on
Linux
Issue
20
©
Solarflare
Communications
2017
65
3.7
Installing
DKMS
Driver
and
Utilities
on
Ubuntu/Debian
Servers
Solarflare
recommend
that
the
DKMS
driver
package
is
installed
on
the
Ubuntu
server
and
NOT
the
source
RPM
package.
Onload
users
only
need
to
install
the
Onload
distribution
which
includes
the
adapter
driver.
Remove
‘in
‐
tree’
Driver
The
‘in
‐
tree’
driver
is
the
Solarflare
driver
included
in
the
OS
distribution.
If
the
OS
‘in
‐
tree’
driver
is
installed
on
the
system.
This
can
be
removed
before
installing
a
newer
DKMS
driver.
1
To
identify
if
the
‘in
‐
tree’
driver
is
being
used:
#
ethtool
‐
i
<solarflare
interface>
driver:
sfc
version:
4.0
(this
might
also
be
the
4.1
driver)
2
To
remove
the
‘in
‐
tree’
driver
and
rebuild
the
initramfs
‐
so
that
the
‘in
‐
tree’
driver
does
not
automatically
reload
following
reboot:
#
find
/lib/modules/$(uname
‐
r)
‐
name
'sfc*.ko'
|
xargs
rm
–rf
#
rmmod
sfc
#
update
‐
initramfs
‐
u
‐
k
$(uname
‐
r)
Net
Driver
DKMS
NOTE:
dkms
must
be
installed
on
the
server.
To
check,
run
the
following
command:
#
dkms
‐
version
The
Solarflare
net
driver
DKMS
package
(SF
‐
104979
‐
LS)
is
available
from:
https://support.solarflare.com/
1
Download
the
DKMS
source
package
SF
‐
104979
‐
LS
and
unzip
on
the
target
server.
2
Create
the
.deb
file:
sudo
alien
‐
c
sfc
‐
dkms
‐
<version>.sf.1.noarch.rpm
This
command
generates
the
sfc
‐
dkms_<version>_all.deb
file.
The
‐
c
option
is
required
to
convert
source
scripts
and
build
the
driver.
3
Install
the
deb
file:
sudo
dpkg
–i
‐
dkms_<version>_all.deb
4
Reload
the
sfc
driver:
modprobe
–r
sfc
modprobe
sfc