Hello,
On Thu, Oct 04, 2007 at 03:29:55AM -0500, Russell L. Harris wrote:
> I am confused. I am running Debian testing ("Lenny"), and, if
> possible, I would like to install the linux-uvc drivers in accordance
> with Debian protocol.
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> I used aptitude to install the Debian package linux-uvc-source. The
> installation provided the file /usr/src/linux-uvc.tar.bz2 , which is
> expanded with bunzip2 and tar, providing the following files:
>
> /usr/src/modules/linux-uvc/debian/rules
> /usr/src/modules/linux-uvc/Makefile
> /usr/src/modules/linux-uvc/uvcvideo.h
[...]
> It appears to me that, once I discover the proper Debian approach to
> installation of linux-uvc, I can update the drivers simply by copying
> into /usr/src/modules/linux-uvc/ the latest source files obtained via:
>
> # svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk linux-uvc
Hm, this might indeed work, but it's not really supported, so if upstream
makes fundamental changes, things could break. First try to get things
working with the Debian-supplied source - at the moment, the one in
testing/unstable is based on SVN revision 120, which is pretty recent.
Basically, there are two ways of having the driver compiled and turned into
a .deb for installation. Myself, I hardly ever use module-assistant, as I
compile my own kernels. I create the driver packages together with the
kernel package:
$ cd /usr/src/linux-2.6.22
$ make-kpkg --revision foobar.071004 kernel_image modules_image
(you may need to add an --initrd switch if you want an initrd kernel.)
The second way is module-assistant. It is important to note that in neither
case, a manual "make"/"make install" is needed by you, the tools do this
themselves.
> Second, the module uvcvideo.ko is to be removed from /lib/modules/ , so
> that the module is not loaded automatically. (This may be a problem with
> Debian, because /lib/modules/ has several subdirectories, and the
> structure of /lib/modules/ is not immediately apparent to me.)
If you choose to go with Debian packages, never do anything manually in
those directories (same goes for /etc/modprobe.conf)! When it is installed,
the package will take care of setting everything up, so that the driver is
loaded automatically when you plug in the camera.
> Adding to my confusion is the instruction given in the file
> /usr/src/modules/linux-uvc/debian/README.Debian , which states that
> the module-assistant tool should be used to install linux-uvc, using
> the commands:
>
> # module-assistant prepare
>
> # module-assistant auto-install linux-uvc
The idea with module-assistant is: You have installed a Debian kernel
package, but a particular driver is not available in pre-compiled form.
AFAIK, the two module-assistant commands above take care of *all* steps to
get this driver compiled and installed: Downloading and installing the
source code (in the form of the linux-uvc-source package), unpacking,
configuring, compiling, creating a .deb, installing that .deb.
Cheers,
Richard
--
__ _
|_) /| Richard Atterer | GnuPG key: 888354F7
| \/¯| http://atterer.net | 08A9 7B7D 3D13 3EF2 3D25 D157 79E6 F6DC 8883
54F7
¯ '` ¯
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel