
EP80579 Integrated Processor—Runtime Configuration
Intel
®
EP80579 Software Drivers for Embedded Applications on FreeBSD*
GSG September 2009
24 Order Number: 320152-005US
5.3.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 Watchdog Timer driver, execute the following command from the
directory where the compiled executable resides:
kldload ./iwdt.ko
To unload the FreeBSD Watchdog Timer driver execute the following command:
kldunload iwdt.ko
The kldstat command may be used to confirm if a module has been loaded or
unloaded:
kldstat | grep iwdt
The output of the kldstat command lists all modules loaded in the system. Look for an
entry titled “iwdt”.
5.3.3 FreeBSD Sample Codelet
A codelet is provided to demonstrate how a sample application interfaces with the
Watchdog Timer driver. This codelet is intended to run on an Intel
®
EP80579 Integrated
Processor with Intel
®
QuickAssist Technology Development Board with FreeBSD
installed. The EP80579 Embedded Software kernel should also be installed, but the
codelet works even if it is not. Run the codelet as follows:
1. Login as root. Root permissions are required for all operations.
2. Open a terminal window, change directory to /EP805XX_release/Embedded/
codelet/WDT and execute the bash script. Do not move the script to another
location.
[root@localhost ˜]# ./install.csh
The script checks that the Watchdog Timer driver is loaded, runs all of the
makefiles in the correct order, and runs the application.
The application output can be viewed in the terminal window.
3. For information about the WDT codelet, refer to the Readme document located at
/EP805XX_release/Embedded/codelet/WDT.
5.4 GPIO
5.4.1 FreeBSD Compilation Instructions
All source files for the FreeBSD release of General Purpose I/O (GPIO) driver are
located in the following directory within the FreeBSD compatible EP80579 embedded
software drivers release:
/EP805XX_release/Embedded/src/GPIO
Compilation of the FreeBSD GPIO driver separately from the rest of the software
package is possible. Enter the /EP805XX_release/Embedded/src/GPIO directory and
execute the following commands:
make clean
make
Comentarios a estos manuales