Nstallation on, 2 dio installation on freebsd – Lanner Digital Input/Output User Manual
Page 8
![background image](https://www.manualsdir.com/files/820358/content/doc008.png)
Software User Manual
Version 1.0
6
Install
The installation procedures depend on the access mode that you have set by using the
above mentioned method.
If you have set DIRECT_IO_ACCESS=1, driver installation is not necessary. Proceed to
the next section on executing the Lanner DIO program.
If you have set DIRECT_IO_ACCESS=0, Lanner DIO driver needs to be installed. Install
the driver and create a node in the /dev directory as shown in the following example:
#insmod dio_drv.[k]o
#mknod /dev/dio_drv c 244 0
Note: For descriptions of the command, refer to the Readme file contained within the program.
2.2 DIO Installation on FreeBSD
Build
Use the script file Makefile.bsd to build the source code. After compiling, you will get
driver file dio_drv.[k]o and test file DIO_TST in the same folder.
1.
Copy the proper makefile from the Driver and Manual CD to your system
2.
Set the access mode with these two parameters by editing the Makefile.bsd
directly: DIRECT_IO_ACCESS= [0|1] (enter either 1 or 0) Refer to the next section on Install
for more details on access mode.
3.
Type make to build source code:
#make Makefile (Note: omit the file extensions)
4.
After the source code is compiled, the executable program s (DIO_TST) and the driver
(dio_drv[k]o) will appear in the bin sub-directory.