beautypg.com

Installation procedure, Driver installation, Loading the driver – Sensoray 616 Linux User Manual

Page 6: Using the driver from the command line

background image

6

2.1. Installation

Procedure

2.1.1. Driver Installation

o As root, enter the directory where the files have been installed.

o Type 'make clean'

--- This will remove any old object files.

o Type 'make'

--- Builds the driver.

o Type 'make install'

--- Installs the driver and makes the special files.

2.1.2. Loading the Driver


Model 516 notes: Before attempting to load the driver note the base address of your 516 (see hardware
documentation); this is not applicable to the 616. The base address (io) is a required driver parameter for
model 516, but should not be declared for model 616.

During loading process the driver registers itself as the first accessible entry in /dev/videoX name space,
where X is a digit.

example 1: type 'insmod sx16.ko' for any number of model 616 boards.

example 2: type 'insmod sx16.ko major=195' for 616 boards, using alternate major.

example 3: type 'insmod sx16.ko io=0xcc0' for a single 516.

example 4: type 'insmod sx16.ko io=0xc80,0xcc0' for two 516 boards.

example 5: type 'modprobe sx16'. This requires that you have made the appropriate entries into the
/etc/modules.conf file. See the modules.conf file.

Note: the name of driver’s module is sx16.ko in new versions of Linux and sx16.o in some older versions.

2.1.3. Using the Driver from the Command Line


After the driver is loaded, standard redirection, pipes etc., can be used.

Examples:

for encoding:

'cp /dev/video1 test1.mpg' (use ctrl-c to interrupt)
'cat /dev/video1 > test1.mpg'
etc...

for decoding:

This manual is related to the following products: