
Intel
®
EP80579 Software Drivers for Embedded Applications on FreeBSD*
September 2009 GSG
Order Number: 320152-005US 21
Runtime Configuration—EP80579 Integrated Processor
5.0 Runtime Configuration
This chapter describes how to compile and install EP80579 drivers individually.
5.1 Controller Area Network Driver
5.1.1 FreeBSD Compilation Instructions
All source files for the FreeBSD* release of the Controller Area Network (CAN) driver
are located in the following directory within the FreeBSD compatible EP80579
embedded software drivers release:
/EP805XX_release/Embedded/src/CAN
Compilation of the FreeBSD CAN driver separately from the rest of the software
package is possible. Change to the /EP805XX_release/Embedded/src/CAN directory
and execute the following commands:
make clean
make
make install (this will install the driver for persistency)
The CAN driver compiles and the resulting can.ko file is placed in the
/EP805XX_release/Embedded/build directory.
5.1.2 FreeBSD Module Load/Unload Instructions
Note: This step is not necessary if the make install command above succeeded. This is only
necessary to understand how to load and unload this driver individually.
To load the FreeBSD CAN driver, execute the following command from the directory
where the compiled executable resides:
kldload ./can.ko
To unload the FreeBSD CAN driver execute the following command:
kldunload can.ko
The kldstat command may be used to confirm if a module has been loaded or unloaded.
kldstat | grep can
The output of the kldstat command lists all modules loaded in the system. Look for an
entry titled “can”.
Comentarios a estos manuales