README 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Ricoh R5U870 Linux Driver
  2. Version 2, 2021/05/02
  3. Requirements
  4. ============
  5. To build/install this driver, you must have a set of configuration and
  6. interface headers, or the complete build directory, for your running kernel,
  7. or the target kernel for which the driver is to be built. This should
  8. include most files in the include/linux directory, and specifically
  9. include/linux/autoconf.h and include/linux/version.h.
  10. The required interface headers are usually located at or symlinked from:
  11. /lib/modules/<version>/build
  12. Your kernel must be 4.9 or newer.
  13. Supported Hardware
  14. ==================
  15. This driver supports the following OEM webcams:
  16. 05ca:1810 HP Pavilion Webcam - UVC
  17. 05ca:1812 HP Pavilion Webcam (UVC - NO FW)
  18. 05ca:1830 Sony Visual Communication Camera VGP-VCC2 (for VAIO SZ)
  19. 05ca:1832 Sony Visual Communication Camera VGP-VCC3 (for VAIO UX)
  20. 05ca:1833 Sony Visual Communication Camera VGP-VCC2 (for VAIO AR1)
  21. 05ca:1834 Sony Visual Communication Camera VGP-VCC2 (for VAIO AR2)
  22. 05ca:1835 Sony Visual Communication Camera VGP-VCC5 (for VAIO SZ)
  23. 05ca:1836 Sony Visual Communication Camera VGP-VCC4 (for VAIO FE)
  24. 05ca:1837 Sony Visual Communication Camera VGP-VCC4 (for VAIO FZ)
  25. 05ca:1839 Sony Visual Communication Camera VGP-VCC6 (for VAIO CR)
  26. 05ca:183a Sony Visual Communication Camera VGP-VCC7 (for VAIO SZ)
  27. 05ca:183b Sony Visual Communication Camera VGP-VCC8 (for VAIO FZ)
  28. 05ca:183e Sony VGP-VCC9
  29. 05ca:1841 Fujitsu F01
  30. 05ca:1870 HP Pavilion Webcam / HP Webcam 1000
  31. Installation Process
  32. ====================
  33. To attempt to build against the running kernel:
  34. make
  35. To build against a specific kernel:
  36. make KDIR=/path/to/kernel
  37. To install the modules to the appropriate location:
  38. make install
  39. -or-
  40. make install KDIR=/path/to/kernel
  41. Please note that these commands do not install firmware. You can manually
  42. copy the desired .fw file to /lib/firmware/ or run:
  43. make firmware_install
  44. to install all firmware files. Installed modules will be automatically
  45. probed for supported devices by the udev coldplug component at boot,
  46. and the driver should be automatically loaded on subsequent reboots.
  47. NOTE: Previous releases of this driver have produced modules named
  48. ry5u870.ko and r5u870.ko. With the current release, the module name was
  49. changed to r5u870v2.ko. Ensure that any old versions are deleted after
  50. installing a new version.
  51. Loading the Driver
  52. ==================
  53. If you installed the driver, you can just run:
  54. modprobe r5u870v2
  55. You must also copy the microcode files (r5u870_*.fw) to /lib/firmware.
  56. Driver Options
  57. ==============
  58. Below is a list of module parameters that may be used with the r5u870 module:
  59. dv1000 -- HP Webcam handling mode
  60. HP has done it again and used ID 05ca:1870 for two distinct pieces
  61. of hardware: the HP Webcam 1000, found in HP Pavilion dv1000 series
  62. machines, and the HP Pavilion Webcam, found in other HP Pavilion
  63. machines that don't have Microdia cameras, and don't have the
  64. 05ca:1810 Ricoh UVC camera -- which is not actually any different
  65. from the 05ca:1870 HP Pavilion webcam. These two devices have
  66. different image sensors and require different microcode.
  67. 0: Assume HP Pavilion Webcam
  68. 1: Assume HP Webcam 1000
  69. 2: Check DMI product name field (DEFAULT)
  70. Changes from r5u870
  71. ======================================
  72. * Total driver rework and update for work with modern kernels 4.9+
  73. * Two modules [usbcam] and [r5u870] have been combined into one [r5u870v2]
  74. * videobuf has been replaced with videobuf2
  75. * cam controls have been reworked and get more integration with v4l2
  76. * custom workqueue has been replaced with kernel implementation
  77. * urbstream get rework
  78. * some callbacks has been replaced with default helpers
  79. * many variables got friendly names
  80. Bugs
  81. ====
  82. Remember to submit in your bug report:
  83. * Kernel version (uname -a)
  84. * Distribution name & version
  85. * lsusb output
  86. * lsmod output
  87. * dmesg output after loading r5u870v2
  88. * if you're getting distorted images, a sample of the camera output
  89. Also remember to check if your bug has already been fixed!
  90. Copyright and License
  91. =====================
  92. r5u870
  93. Copyright (c) 2007-2008 Sam Revitch <samr7@cs.washington.edu>,
  94. Alexander Hixon <hixon.alexander@mediati.org>
  95. r5u870v2
  96. 64coreCPU 2021 <r5u870v2@gmail.com>
  97. This driver is licensed to you under the terms of the GNU GPL v2. See
  98. the included file 'COPYING'.
  99. The Makefile and Kbuild components are derived from the ivtv project.
  100. The files:
  101. r5u870_1810.fw
  102. r5u870_1812.fw
  103. r5u870_1830.fw
  104. r5u870_1832.fw
  105. r5u870_1833.fw
  106. r5u870_1834.fw
  107. r5u870_1835.fw
  108. r5u870_1836.fw
  109. r5u870_1839.fw
  110. r5u870_183a.fw
  111. r5u870_183b.fw
  112. r5u870_1841.fw
  113. r5u870_1870.fw
  114. r5u870_1870_1.fw
  115. were derived from usbsnoop/sniffusb tracing of various Windows drivers,
  116. including some named Mvc25u870.sys, 5U870CAP.sys, and R5U870FLx86.sys.
  117. Acknowledgements (r5u870)
  118. ================++++++++++
  119. Huge kudos to Sam Revitch for writing the driver. Cheers, mate. I owe you a
  120. beer (or two). :)
  121. Thanks to Albert Vilella for establishing an interest group for this type of
  122. webcam, for early VAIO SZ testing, and generally collecting a good set of
  123. resources for Linux on VAIO SZ laptops.
  124. Thanks to Geert Willems for extensive testing of HP Webcam support, general
  125. driver compatibility testing, and putting up with endless crazy requests for
  126. more debug information. :-)
  127. Thanks to Mattia Dongili for taking usbsnoop traces of the VAIO UX50 webcam
  128. driver on Windows, and testing initial support in the Linux driver.
  129. Thanks to Beno�t Canet for updating this driver to work with the Sony VAIO AR
  130. webcam (05ca:1834).
  131. Thanks to Utz-Uwe Haus for getting the Sony VGP-VCC7 firmware extracted, and
  132. providing a patch against the original r5u870 driver, and providing the
  133. recode-fw.scm script.
  134. Some friendly folk on the Ubuntu Forums for providing extracted version of
  135. firmwares and their associated version numbers.
  136. Thanks to Francesco Palmisano for providing an updated version of 183b and Sony VGP-VCC8 driver, and testing.
  137. Thanks to Gonzalo Alvarez for testing the 1812 driver and providing usbsnoop
  138. traces of the device.