Configuration of USB Device Driver for Logitech Quickcam Pro 4000 in ORBIT Node:
Debian Linux flavour 2.6.12 running in ORBIT nodes have source code for USB. But the baseline image in ORBIT does not have the USB code integrated into kernel. So the first step is to configure the USB into kernel ( i.e., compiling the kernel with the USB code) .
Steps to do this are :
1) Go to /usr/src/linux-2.6.12 2) Do a ‘make menuconfig’. 3) Once the screen that resembles the one in Figure-1 opens up , scroll down and select ‘Device Drivers’.
4) Here scroll down to ‘USB Support’ . In the menu that follows, select: a) x x<*> EHCI HCD (USB 2.0) support x x b) x x<*> OHCI HCD support c) x x<*> UHCI HCD (most Intel and VIA) support 5) Then do a kernel compilation that includes the USB files ( selected through Step 4). node1-1:/usr/src/linux-2.6.12# make 6) Install the kernel image compiled from Step-5.
node1-1:/usr/src/linux-2.6.12# make install
7) Reboot the system to use the new kernel image installed in Step-6. node1-1:/usr/src/linux-2.6.12# reboot
Step -2: USB cameras use the Video4Linux interface. You need to set up a device node entry for the USB camera. Use the following command, if you have no other Video4Linux devices: a) mknod /dev/video0 c 81 0 b) ln –s /dev/video0 /dev/video
The kernel image that comes up has USB support built-in now. Now we need to install the device driver for the Web camera ( Logitech Quickpro 4000, in our case). A Philips Webcam device driver (pwc) is built for the purpose. More information on this is at : http://www.saillard.org/linux/pwc/. The best case here is to just select the right options in ‘make menuconfig’, rebuild the kernel, plug in the web camera to see if the Device is detected.
Enabling the Web camera:
a) node1-1:/usr/src/linux-2.6.12# make menuconfig
b) From the top level menu, select "Code maturity level options" item and enable "Prompt for development and/or incomplete code/drivers".
c) Goto Device Drivers → USB Support .
d) Select “USB Philips Cameras”, "USB Audio support".
e) Then do a make, make install, reboot.
f) Once the System boots up save the image. Plug the web camera and check using ‘dmesg’ if the device is detected.
Second option is , building a new module and later loading it is an easier option , if it works. Steps to do it can be found in : http://www.lavrsen.dk/twiki/bin/view/PWC/InstallationOfPWC.
If this does not work, you have to patch the existing files with the patch file http://www.saillard.org/linux/pwc/patches/linux-2.6.12-rc2_pwc-10.0.7.patch.bz2. Download this file to /root/.
a) node1-1:~# bzip2 -d linux-2.6.12-rc2_pwc-10.0.7.patch.bz2. b) node1-1:~# cd /usr/src/linux-2.6.12. c) node1-1:/usr/src/linux-2.6.12# patch -p1 < /root/linux-2.6.12-rc2_pwc-10.0.7.patch
Steps (a), (b) , © above can be tried if it is confirmed that the existing source files for pwc do not work for the web camera. Then proceed as indicated in ‘Enabling the Web camera’.
NOTE: The options that you select after a ‘make menuconfig’ can be selected as “modules” as well. However I didn’t try that option as yet.