Difference between revisions of "How to install the IBM Ultracam II driver"

From ThinkWiki
Jump to: navigation, search
Line 18: Line 18:
  
 
6. Activate the following Options as modules (set to <M>):
 
6. Activate the following Options as modules (set to <M>):
{{kernelconf|||Device Drivers|Multimedia devices|Video For Linux|<M>|}}
+
:{{kernelconf|||Device Drivers|Multimedia devices|Video For Linux|<M>|}}
{{kernelconf|||Device Drivers|USB support|Support for USB|<M>|}}
+
:{{kernelconf|||Device Drivers|USB support|Support for USB|<M>|}}
{{kernelconf|||Device Drivers|USB support|Preliminary USB device filesystem|[*]|}}
+
:{{kernelconf|||Device Drivers|USB support|Preliminary USB device filesystem|[*]|}}
{{kernelconf|||Device Drivers|USB support|UHCI Alternate Driver (JE) support|<M>|}}
+
:{{kernelconf|||Device Drivers|USB support|UHCI Alternate Driver (JE) support|<M>|}}
{{kernelconf|||Device Drivers|USB support|USB IBM Ultraport II Camera support|<M>|}}
+
:{{kernelconf|||Device Drivers|USB support|USB IBM Ultraport II Camera support|<M>|}}
 
: In case some of them should already be activated (<*> oder <M>), just let them as they are.
 
: In case some of them should already be activated (<*> oder <M>), just let them as they are.
 
: Exit the configuration and save your settings.
 
: Exit the configuration and save your settings.

Revision as of 10:27, 9 August 2005

1. First you have to get the kernel patch for the ultracam.

The patch is for Kernel 2.4.20, so if you are using any other 2.4 series kernel you might have to adjust the patch to work.
On 2.6 the structure of the usb source tree changed a lot, a patch is available for 2.6.10 at: http://marc.theaimsgroup.com/?l=linux-usb-devel&m=111802180804300&w=4

2. Change to the drivers directory in the kernel source tree: # cd /lib/modules/`uname -r`/build/drivers

3. Apply the patch: # patch -p0 -i <path to saved patch-file>

If the patch was successful, you should see the following:
patching file usb/Config.in
patching file usb/Makefile
patching file usb/ultracam.c
patching file usb/usbvideo.c

4. Go up one level to the kernel source root: # cd ..

5. Configure the kernel: # make menuconfig

6. Activate the following Options as modules (set to <M>):

<M> → Video For Linux → Multimedia devices → Device Drivers
<M> → Support for USB → USB support → Device Drivers
[*] → Preliminary USB device filesystem → USB support → Device Drivers
<M> → UHCI Alternate Driver (JE) support → USB support → Device Drivers
<M> → USB IBM Ultraport II Camera support → USB support → Device Drivers
In case some of them should already be activated (<*> oder <M>), just let them as they are.
Exit the configuration and save your settings.

7. Recompile the kernel modules: # make dep && make modules modules_install && depmod -ae.

NOTE!
If you are using non standard kernel modules they have to be recompiled afterwards as well.

8. Now you can do a # modprobe ultracam and launch "xawtv".

If everything works, you should see yourself now. The driver is quite unstable and you might have to unload and reload the ultracam module every now and then.