How to install Gumstix UVC drivers
|
TORP - THE OPEN ROBOT PROJECT
The First Fully Open Mechanical, Electrical and Computational Cooperative Robotic Project
http://www.theopenrobotproject.org
The Open Robot Project is ruled by the GNU General Public License (GPL). Any person around the world can download or contribute to the improvement of the robot, as well as fully/partially replicate the project in his/her own country, laboratory or home for non-profit purposes.
|
||||||
![]() |
Sidebar... |
Installation instructionsThis post describes gumstix uvc driver installation for a Logitech QuickCam? Pro 9000. It follows this wikiIt requires that the steps in this wiki Firstly check-out the old driver sources from: svn co svn://svn.berlios.de/linux-uvc/linux-uvc/trunk After file checkout, one should change the Makefile. Change the KERNEL_DIR var to point to your gumstix kernel path, as in: KERNEL_DIR := /home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/ Define the CROSS_COMPILE var: CROSS_COMPILE := /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi- Change make lines so that they include your CROSS_COMPILE and ARCH=arm vars: From: @(make -C $(KERNEL_DIR) M=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules) to: @(make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules) And from: @(make -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install) to: @(make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install) Now, type make uvcvideo The file uvcvideo.ko is built. This file should be copied to /lib/modules/2.6.21/kernel/drivers/media/video/uvcvideo.ko Nevertheless, if you type make, you'll notice a message like: The USB Video Class driver has moved to http://linuxtv.org/. Using the Berlios SVN repository is now deprecated. Please check http://linux-uvc.berlios.de/ If you really want to compile this historical version, run 'make uvcvideo'. which tells us that we are using deprecated files for the driver. I've tried to use the latest drivers from the Mercurial clone repository, but I'm getting this error: "/home/developer/uvc-new/uvcvideo-90c7dc24fb4d/v4l/cx18-driver.h:65:4: error: #error "This driver requires kernel PCI support." " In order to build it, I've changed the root Makefile to: CROSS_COMPILE := /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi- install: $(MAKE) -C $(BUILD_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) install %:: $(MAKE) -C $(BUILD_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) $(MAKECMDGOALS) And the v4l/Makefile to: OUTDIR ?= /home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/image/lib/modules/2.6.21/build SRCDIR ?= /home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/image/lib/modules/2.6.21/source I've tried to issue some "make -i" command, but I doubt it will work. If you've made any progress with the new drivers, feel free to comment. The old drivers have worked pretty fine as well.
|
![]() |
|||
|
** The Open Robot Project (www.theopenrobotproject.org) **
|
||||||