LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2008, 05:47 PM   #1
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Installing Linux-UVC drivers in Slackware 12


I've discovered that my webcam (Creative Live! Cam Video IM Pro, aka 0x041e:0x4056) will work just fine with linux, provided the UVC kernel module is loaded. Retrieving the requisite files from SVN, I find the following errors upon a 'make':

Code:
root@poetics:~/defib/trunk/make
Building USB Video Class driver ...
make[1]: Entering directory `/usr/src/linux-2.6.21.5'
 Building modules, stage 2
 MODPOST 1 modules
WARNING: "video_device_release" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "video_usercopy" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "video_register_device" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "video_device_alloc" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "video_unregister_device" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "v4l_printk_ioctl" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "video_devdata" [/root/defib/trunk/uvcvideo.ko] undefined!
WARNING: "v4l_compat_ioctl32" [/root/defib/trunk/uvcvideo.ko] undefined!
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
Looking at the Makefile, it doesn't seem too complicated:

Code:
KERNEL_DIR      := /lib/modules/`uname -r`/build
INSTALL_MOD_DIR := usb/media
PWD             := $(shell pwd)
obj-m           := uvcvideo.o
uvcvideo-objs   := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o uvc_status.o uvc_isight.o
all: uvcvideo

uvcvideo:
  @echo "Building USB Video Class driver..."
  @(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)

install:
  @echo "Installing USB Video Class Driver..."
  @(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install)
  depmod -ae

clean:
  -rm -f *.o *.ko .*.cmd .*.flags *.mod.c Modules.symvers
After having done some extensive searching, I haven't yet been able to figure out what the next step is supposed to be. There are several references to "I changed the Makefile's path and then it worked!" but unfortunately that's not enough for me to go on yet.

Any help would be appreciated!
 
Old 02-04-2008, 06:45 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Do you have video4linux enabled in the kernel ? Also make sure it finds your kernel source, hopefully it is in '/usr/src/linux-2.6.21.5' or '/lib/modules/$(uname -r)/build' and '/lib/modules/$(uname -r)/source'.

It builds just fine for me.
 
Old 02-04-2008, 11:18 AM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
The source is present (in the correct directory), and I had thought v4l was enabled ... I'll have to check again. Good catch.

Edit: Looks like building v4l as a module let me build the UVC stuff without a hitch. When I get home tonight I should be able to test the webcam -- thanks for the suggestion!

Last edited by Poetics; 02-04-2008 at 12:26 PM. Reason: Update
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logitech Quickcam Pro 9000 UVC driver RVDowning Mandriva 11 11-14-2007 11:10 AM
Installing video drivers, slackware 10.0 Chimera1234 Linux - Hardware 10 11-06-2005 09:57 PM
installing slackware over nfs with madwifi drivers? TheOneAndOnlySM Slackware 0 06-25-2004 08:17 PM
Installing nVidia drivers on slackware 9 gtgoku Slackware 2 10-16-2003 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration