
Solarflare
Server
Adapter
User
Guide
Solarflare
Adapters
on
FreeBSD
Issue
20
©
Solarflare
Communications
2017
291
This
source
can
be
used:
•
To
compile
and
install
a
driver
on
a
development
machine.
The
development
machine
must
have
the
following
installed:
‐
development
tools
‐
the
ports
system,
and
its
Makefiles
‐
the
kernel
source.
•
To
create
a
binary
driver
package,
for
installing
on
other
target
machines.
A
target
machine:
‐
must
have
the
same
kernel
and
architecture
as
the
development
machine
that
built
the
package
‐
does
not
require
any
of
the
development
tools
or
source.
To
install
the
driver,
use
pkg
add
or
pkg_add
.
The
following
instructions
assume
that
the
source
package
has
been
downloaded
to
the
/tmp
directory.
1
Ensure
you
are
the
root
user.
If
not:
su
‐
2
To
avoid
using
the
previous
driver
that
is
distributed
with
the
OS,
rename
it:
mv
/boot/kernel/sfxge.ko
/boot/kernel/sfxge.ko_default
‐
If
desired,
it
can
instead
be
removed:
rm
/boot/kernel/sfxge.ko
3
Unpack
the
downloaded
source:
cd
/tmp
tar
xvf
sfxge
‐
freebsd
‐
<version_no>
.txz
For
example:
cd
/tmp
tar
xvf
sfxge
‐
freebsd
‐
4.5.3.1002.txz
4
Change
directory
into
the
source:
cd
sfxge
‐
freebsd
‐
<version_no>
For
example:
cd
sfxge
‐
freebsd
‐
4.5.3.1002
5
Build
the
package:
make
package
‐
If
you
do
not
have
the
ports
system
installed
you
will
see
this
error:
The
ports
system
must
be
installed
first.
‐
You
can
install
the
ports
system
by
running:
portsnap
fetch
extract