Справочник Пользователя для Sony XCI-SX1

Скачать
Страница из 28
XCI-SX1  SDK  / SDK Technical Manual 
 
2.4.2 Camera Driver 
 
The camera driver (smartcam.o) can now be added to the system.  
The camera driver module is installed in 
/lib/modules/2.4.18_mvl30-
pc_target/kernel/driver/smartcam
 directory.  Before using the 
camera driver, make sure to invoke the following commands first: 
1.  mknod /dev/video0 c 81 0 
creates the special file node used by the camera driver  
2.  ln –s /dev/video0 /dev/video 
this command is optional; it simply creates a symbolic 
link /dev/video0 to the /dev/video node  
To add the camera driver to the kernel, run modprobe smartcam.  The 
module should also be listed if lsmod command is issued. 
Appending the smartcam entry to the /etc/modules file enables the 
module to be loaded automatically during system start up.  Please note 
that videodevX should be loaded first before the smartcam module.   
The camera module source code is installed in 
/usr/smartcam/src/camera
 directory. Just make  to build 
smartcam.o. 
 
2.4.3 Flash Driver 
 
The flash driver (skxflash.o) has been created to provide a storage 
media for CDS, pedestal, and serial number setting where such values 
need to be stored in a non-volatile memory.   
The flash driver has been installed in /lib/modules/2.4.18_mvl30-
pc_target/kernel/driver/smartcam 
directory.  The flash driver 
uses the /dev/flash0 special file.  If initially not created, do the 
following commands to make the said node available: 
1.   mknod /dev/flash0 c 81 0 
creates the special file node used by the flash driver  
2.  ln –s /dev/flash0 /dev/flash 
this command is optional; it simply creates a symlink 
/dev/flash0
 to the /dev/flash node  
 
 
13