Adding the r5u870 patch to the kernel

Sean Godsell sgodsell at hotmail.com
Tue Jul 8 16:50:49 UTC 2008


Hello everyone,

I noticed that you don't have the webcam driver for some of the hp and sony notebooks.  So I patched up the original code that was originally written by Sam Revitch.  If anyone would like to build the kernel with this driver then follow the instructions below.

If you want to build it the rpm way, then you are going to need the r5u870-2.6.25.9-76.patch.  Next go to the base of the rpm directories.  So you should see in the directory BUILD, RPMS, SOURCES, SPECS, SRPMS.  Next type in the following
  patch -p0 < /path_to_where_the_patch_is_sitting/r5u870-2.6.25-9-76.patch

Next type in 
  rpmbuild -bb SPECS/kernel.spec

Now type in
  cd BUILD/kernel-2.6.25/linux-2.6.25.i386/

Next you need to either use config of your choice.  There are plenty of them in the current path.  (To get a list of them type in 'ls -l config-*').  Another option is to use one of the configs from the /boot directory.  In this example I will copy /boot/config-2.6.25.9-76.fc9.i686 file and use that for my config file.  So type in the following:
  cp /boot/config-2.6.25.9-76.fc9.i686 .config

Now you need to add the r5u870 device to the configuration file.  You can add it with the following line:
  echo "CONFIG_USB_R5U870=m\n">> .config
or
  make menuconfig
     and go through the menus to find USB Ricoh Cameras
     Device Drivers
      -> Multimedia devices
         -> Video capture adapters
            -> V4L USB devices
                USB Ricoh Cameras

Naturally you can change any thing you like in the config (I like to change the processor to Core 2 now a days).  It is all up to you.  Once you have the configuration to your liking.  The the final step is to type in:
  make rpm

This will take some time.  But you should end up with a kernel in the RPMS directory.  I have included another patch for plain kernels, and does not update the spec file.

Good Luck, and have Fun!

Sean


_________________________________________________________________



More information about the kernel mailing list